|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.pmd.lang.ast.AbstractNode
net.sourceforge.pmd.lang.vm.ast.AbstractVmNode
public class AbstractVmNode
Field Summary | |
---|---|
protected Token |
first
|
protected int |
info
|
protected boolean |
invalid
|
protected Token |
last
|
protected VmParser |
parser
|
boolean |
state
|
protected String |
templateName
|
Fields inherited from class net.sourceforge.pmd.lang.ast.AbstractNode |
---|
beginColumn, beginLine, childIndex, children, endColumn, endLine, id, parent |
Constructor Summary | |
---|---|
AbstractVmNode(int i)
|
|
AbstractVmNode(VmParser p,
int i)
|
Method Summary | |
---|---|
Object |
childrenAccept(VmParserVisitor visitor,
Object data)
Accept the visitor. |
void |
dump(String prefix,
boolean recurse,
Writer writer)
Override this method if you want to customize how the node dumps out its children. |
int |
getColumn()
|
Token |
getFirstToken()
|
int |
getInfo()
|
Token |
getLastToken()
|
int |
getLine()
|
String |
getTemplateName()
|
int |
getType()
|
boolean |
isInvalid()
|
Object |
jjtAccept(VmParserVisitor 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. |
String |
literal()
|
void |
setFirstToken(Token t)
|
void |
setInfo(int info)
|
void |
setInvalid()
|
String |
toString()
Subclasses should implement this method to return a name usable with XPathRule for evaluating Element Names. |
String |
toString(String prefix)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface net.sourceforge.pmd.lang.ast.Node |
---|
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 |
Field Detail |
---|
protected VmParser parser
protected int info
public boolean state
protected boolean invalid
protected Token first
protected Token last
protected String templateName
Constructor Detail |
---|
public AbstractVmNode(int i)
i
- public AbstractVmNode(VmParser p, int i)
p
- i
- Method Detail |
---|
public void jjtOpen()
Node
jjtOpen
in interface Node
jjtOpen
in class AbstractNode
org.apache.velocity.runtime.parser.node.Node#jjtOpen()
public void jjtClose()
Node
jjtClose
in interface Node
jjtClose
in class AbstractNode
org.apache.velocity.runtime.parser.node.Node#jjtClose()
public void setFirstToken(Token t)
t
- public Token getFirstToken()
org.apache.velocity.runtime.parser.node.Node#getFirstToken()
public Token getLastToken()
org.apache.velocity.runtime.parser.node.Node#getLastToken()
public Object jjtAccept(VmParserVisitor visitor, Object data)
VmNode
jjtAccept
in interface VmNode
org.apache.velocity.runtime.parser.node.Node#jjtAccept(org.apache.velocity.runtime.parser.node.VmParserVisitor,
java.lang.Object)
public Object childrenAccept(VmParserVisitor visitor, Object data)
VmNode
childrenAccept
in interface VmNode
org.apache.velocity.runtime.parser.node.Node#childrenAccept(org.apache.velocity.runtime.parser.node.VmParserVisitor,
java.lang.Object)
public String toString()
AbstractNode
toString
in class AbstractNode
public String toString(String prefix)
prefix
-
public void dump(String prefix, boolean recurse, Writer writer)
prefix
- public String literal()
org.apache.velocity.runtime.parser.node.Node#literal()
public int getType()
org.apache.velocity.runtime.parser.node.Node#getType()
public void setInfo(int info)
org.apache.velocity.runtime.parser.node.Node#setInfo(int)
public int getInfo()
org.apache.velocity.runtime.parser.node.Node#getInfo()
public void setInvalid()
org.apache.velocity.runtime.parser.node.Node#setInvalid()
public boolean isInvalid()
org.apache.velocity.runtime.parser.node.Node#isInvalid()
public int getLine()
org.apache.velocity.runtime.parser.node.Node#getLine()
public int getColumn()
org.apache.velocity.runtime.parser.node.Node#getColumn()
public String getTemplateName()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |