public class AbstractVmNode extends AbstractNode implements VmNode
Modifier and Type | Field and Description |
---|---|
protected Token |
first |
protected int |
info |
protected boolean |
invalid |
protected Token |
last |
protected VmParser |
parser |
boolean |
state |
protected String |
templateName |
beginColumn, beginLine, children, endColumn, endLine, id, parent
Constructor and Description |
---|
AbstractVmNode(int i) |
AbstractVmNode(VmParser p,
int i) |
Modifier and Type | Method and Description |
---|---|
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) |
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, jjtGetId, jjtGetNumChildren, jjtGetParent, 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, jjtGetId, jjtGetNumChildren, jjtGetParent, jjtSetParent, setDataFlowNode, setImage, setUserData
protected VmParser parser
protected int info
public boolean state
protected boolean invalid
protected Token first
protected Token last
protected String templateName
public AbstractVmNode(int i)
i
- public AbstractVmNode(VmParser p, int i)
p
- i
- 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
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()
Copyright © 2002–2014 InfoEther. All rights reserved.