|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.jet.core.parser.ast.JETASTElement
public abstract class JETASTElement
An abstract class representing common aspects of all JET AST elements.
This class is not intended to be subclassed by clients
Method Summary | |
---|---|
void |
accept(JETASTVisitor visitor)
Visit the AST and its contained elements. |
protected abstract void |
accept0(JETASTVisitor visitor)
Visit the AST and its contained elements. |
JETAST |
getAst()
Return the AST root object |
int |
getColumn()
Return the column number (one-based) at which the element starts. |
int |
getEnd()
The document relative offset of the first character after the element. |
int |
getLine()
Return the line (one-based) on which the element starts. |
JETASTElement |
getNextElement()
|
JETASTElement |
getParent()
|
JETASTElement |
getPrevElement()
|
int |
getStart()
The document relative offset of the start of the element. |
abstract boolean |
removeLineWhenOtherwiseEmpty()
Indicate whether the the surrounding whitespace, including the trailing new line should be removed from the template output. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public final JETASTElement getParent()
public final int getStart()
public final int getEnd()
public final void accept(JETASTVisitor visitor)
visitor
- protected abstract void accept0(JETASTVisitor visitor)
visitor
- public JETAST getAst()
public final int getLine()
public JETASTElement getNextElement()
public JETASTElement getPrevElement()
public final int getColumn()
public abstract boolean removeLineWhenOtherwiseEmpty()
false
, while element
that do should should return true
.
true
if the containing line should be removed if
otherwise empty.
|
Copyright 2006 IBM Corporation and others. All Rights Reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |