public abstract class AbstractJavaNode extends AbstractNode implements JavaNode
Modifier and Type | Field and Description |
---|---|
protected JavaParser |
parser |
beginColumn, beginLine, childIndex, children, endColumn, endLine, firstToken, id, lastToken, parent
Constructor and Description |
---|
AbstractJavaNode(int id) |
AbstractJavaNode(JavaParser parser,
int id) |
Modifier and Type | Method and Description |
---|---|
Object |
childrenAccept(JavaParserVisitor visitor,
Object data)
Accept the visitor.
|
Comment |
comment() |
void |
comment(Comment theComment) |
Scope |
getScope() |
Object |
jjtAccept(JavaParserVisitor visitor,
Object data)
Accept the visitor.
|
void |
jjtClose()
This method is called after all the child nodes have been
added.
|
void |
jjtOpen()
This method is called after the node has been made the current
node.
|
void |
setScope(Scope scope) |
String |
toString()
Subclasses should implement this method to return a name usable with
XPathRule for evaluating Element Names.
|
appendElement, findChildNodesWithXPath, findChildrenOfType, findDescendantsOfType, findDescendantsOfType, getAsDocument, getBeginColumn, getBeginLine, getDataFlowNode, getEndColumn, getEndLine, getFirstChildOfType, getFirstDescendantOfType, getFirstParentOfType, getImage, getNthParent, getParentsOfType, getUserData, hasDecendantOfAnyType, hasDescendantMatchingXPath, hasDescendantOfType, hasImageEqualTo, isFindBoundary, isSingleLine, jjtAddChild, jjtGetChild, jjtGetChildIndex, jjtGetFirstToken, jjtGetId, jjtGetLastToken, jjtGetNumChildren, jjtGetParent, jjtSetChildIndex, jjtSetFirstToken, jjtSetLastToken, jjtSetParent, setDataFlowNode, setImage, setUserData, testingOnly__setBeginColumn, testingOnly__setBeginLine, testingOnly__setEndColumn, testingOnly__setEndLine
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findChildNodesWithXPath, findChildrenOfType, findDescendantsOfType, findDescendantsOfType, getAsDocument, getBeginColumn, getBeginLine, getDataFlowNode, getEndColumn, getEndLine, getFirstChildOfType, getFirstDescendantOfType, getFirstParentOfType, getImage, getNthParent, getParentsOfType, getUserData, hasDescendantMatchingXPath, hasDescendantOfType, hasImageEqualTo, isFindBoundary, jjtAddChild, jjtGetChild, jjtGetChildIndex, jjtGetId, jjtGetNumChildren, jjtGetParent, jjtSetChildIndex, jjtSetParent, setDataFlowNode, setImage, setUserData
protected JavaParser parser
public AbstractJavaNode(int id)
public AbstractJavaNode(JavaParser parser, int id)
public void jjtOpen()
Node
jjtOpen
in interface Node
jjtOpen
in class AbstractNode
public void jjtClose()
Node
jjtClose
in interface Node
jjtClose
in class AbstractNode
public Object jjtAccept(JavaParserVisitor visitor, Object data)
public Object childrenAccept(JavaParserVisitor visitor, Object data)
childrenAccept
in interface JavaNode
public Scope getScope()
getScope
in interface JavaNode
getScope
in interface ScopedNode
public void comment(Comment theComment)
public Comment comment()
public String toString()
AbstractNode
toString
in class AbstractNode
Copyright © 2002–2017 InfoEther. All rights reserved.