org.eclipse.jet.compiler
Class JavaElement

java.lang.Object
  extended by org.eclipse.jet.compiler.JET2ASTElement
      extended by org.eclipse.jet.compiler.JavaElement
Direct Known Subclasses:
JET2Declaration, JET2Expression, JET2Scriptlet

public abstract class JavaElement
extends JET2ASTElement

Abstract representation of JET2 AST elements that contain Java code


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.compiler.JET2ASTElement
accept, 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
 

Method Detail

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

Copyright 2006 IBM Corporation and others.
All Rights Reserved.