org.mvel2.templates.res
Class IfNode

java.lang.Object
  extended by org.mvel2.templates.res.Node
      extended by org.mvel2.templates.res.IfNode
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
CompiledIfNode

public class IfNode
extends Node

See Also:
Serialized Form

Field Summary
protected  Node elseNode
           
protected  Node trueNode
           
 
Fields inherited from class org.mvel2.templates.res.Node
begin, cEnd, contents, cStart, end, name, next, terminus
 
Constructor Summary
IfNode(int begin, String name, char[] template, int start, int end)
           
 
Method Summary
 boolean demarcate(Node terminatingNode, char[] template)
           
 Object eval(TemplateRuntime runtime, TemplateOutputStream appender, Object ctx, VariableResolverFactory factory)
           
 Node getElseNode()
           
 Node getTrueNode()
           
 void setElseNode(ExpressionNode elseNode)
           
 void setTrueNode(ExpressionNode trueNode)
           
 
Methods inherited from class org.mvel2.templates.res.Node
calculateContents, getBegin, getCEnd, getContents, getCStart, getEnd, getLength, getName, getNext, getTerminus, isOpenNode, setBegin, setCEnd, setContents, setCStart, setEnd, setName, setNext, setTerminus
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

trueNode

protected Node trueNode

elseNode

protected Node elseNode
Constructor Detail

IfNode

public IfNode(int begin,
              String name,
              char[] template,
              int start,
              int end)
Method Detail

getTrueNode

public Node getTrueNode()

setTrueNode

public void setTrueNode(ExpressionNode trueNode)

getElseNode

public Node getElseNode()

setElseNode

public void setElseNode(ExpressionNode elseNode)

demarcate

public boolean demarcate(Node terminatingNode,
                         char[] template)
Specified by:
demarcate in class Node

eval

public Object eval(TemplateRuntime runtime,
                   TemplateOutputStream appender,
                   Object ctx,
                   VariableResolverFactory factory)
Specified by:
eval in class Node


Copyright © 2011. All Rights Reserved.