Class ASTNegateNode
java.lang.Object
org.apache.velocity.runtime.parser.node.SimpleNode
org.apache.velocity.runtime.parser.node.ASTNegateNode
- All Implemented Interfaces:
Cloneable,Node,Renderable
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanevaluate(InternalContextAdapter context) init(InternalContextAdapter context, Object data) jjtAccept(StandardParserVisitor visitor, Object data) literal()value(InternalContextAdapter context) Methods inherited from class org.apache.velocity.runtime.parser.node.SimpleNode
childrenAccept, cleanupParserAndTokens, clone, clone, dump, dump, dump, execute, getColumn, getFirstToken, getFirstTokenImage, getInfo, getLastToken, getLastTokenImage, getLine, getLocation, getParser, getRuntimeServices, getTemplate, getTemplateName, getType, isInvalid, jjtAddChild, jjtClose, jjtGetChild, jjtGetNumChildren, jjtGetParent, jjtOpen, jjtSetParent, render, saveTokenImages, setFirstToken, setInfo, setInvalid, toString, toString
-
Field Details
-
strictMode
protected boolean strictMode
-
-
Constructor Details
-
ASTNegateNode
public ASTNegateNode(int i) -
ASTNegateNode
-
-
Method Details
-
init
- Specified by:
initin interfaceNode- Overrides:
initin classSimpleNode- Parameters:
context-data-- Returns:
- The init result.
- Throws:
TemplateInitException- See Also:
-
jjtAccept
- Specified by:
jjtAcceptin interfaceNode- Overrides:
jjtAcceptin classSimpleNode- Parameters:
visitor-data-- Returns:
- The Node execution result object.
- See Also:
-
evaluate
- Specified by:
evaluatein interfaceNode- Overrides:
evaluatein classSimpleNode- Parameters:
context-- Returns:
- The evaluation result.
- Throws:
MethodInvocationException- See Also:
-
value
- Specified by:
valuein interfaceNode- Overrides:
valuein classSimpleNode- Parameters:
context-- Returns:
- The node value.
- Throws:
MethodInvocationException- See Also:
-
literal
- Specified by:
literalin interfaceNode- Overrides:
literalin classSimpleNode- Returns:
- A literal.
- See Also:
-