|
org.eclipse.jet.core.parser.ast
Class JavaElement
java.lang.Object
org.eclipse.jet.core.parser.ast.JETASTElement
org.eclipse.jet.core.parser.ast.BodyElement
org.eclipse.jet.core.parser.ast.JavaElement
-
Direct Known Subclasses:
-
JavaDeclaration,
JavaExpression,
JavaScriptlet
-
public abstract class JavaElement
- extends
BodyElement
Abstract representation of JET AST elements that contain Java code
This class is not intended to be subclassed by clients
Method Summary
|
java.lang.String
|
getJavaContent
()
Return the Java content of the element |
int
|
getJavaEnd
()
The document relative offset of the first character after the Java code. |
int
|
getJavaStart
()
The document relative offset of the Java code within the element. |
Methods inherited from class org.eclipse.jet.core.parser.ast.
JETASTElement
|
accept,
accept0,
getAst,
getColumn,
getEnd,
getLine,
getNextElement,
getParent,
getPrevElement,
getStart,
removeLineWhenOtherwiseEmpty
|
Methods inherited from class java.lang.Object
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
|
getJavaStart
public final int getJavaStart()
- The document relative offset of the Java code within the element.
-
-
Returns:
- the start offset
getJavaEnd
public final int getJavaEnd()
- The document relative offset of the first character after the Java code.
-
-
Returns:
- the end offset
getJavaContent
public java.lang.String getJavaContent()
- Return the Java content of the element
-
-
Returns:
- the Java content
|
|