org.richfaces.cdk.templatecompiler.el.node
Interface ITreeNode

All Known Implementing Classes:
AbstractBinaryOperationTreeNode, AbstractMethodTreeNode, AbstractTreeNode, AstBracketSuffixTreeNode, AstChoiceTreeNode, AstDeferredOrDynamicExpressionTreeNode, AstEmptyTreeNode, AstFloatingPointTreeNode, AstFunctionTreeNode, AstIdentifierTreeNode, AstIntegerTreeNode, AstLiteralTreeNode, AstMethodSuffixTreeNode, AstNegativeTreeNode, AstNotTreeNode, AstPropertySuffixTreeNode, AstStringTreeNode, AstValueTreeNode, BinaryArithmeticIntegerOperationTreeNode, BinaryArithmeticOperationTreeNode, BinaryBooleanOperationTreeNode, BinaryBooleanResultOperationTreeNode, ConstantValueTreeNode, EqualityTestTreeNode

public interface ITreeNode

Interface for all wrappers of org.jboss.el.parser.Node class.

Author:
amarkhel

Method Summary
 ITreeNode getChild(int index, ELVisitor visitor)
          Return child of wrapped node by specified index
 int getChildrenCount()
          Returns count of children for this node
 org.jboss.el.parser.Node getNode()
          Return node of current wrapper.
 void visit(java.lang.StringBuilder sb, ELVisitor visitor)
          Visit current node.
 

Method Detail

getNode

org.jboss.el.parser.Node getNode()
Return node of current wrapper.

Returns:
instance of org.jboss.el.parser.Node

visit

void visit(java.lang.StringBuilder sb,
           ELVisitor visitor)
           throws ParsingException
Visit current node. Generate Java code, that represent current node.

Parameters:
visitor - - ELVisitor
stringBuilder - instance to collect information.
Throws:
ParsingException - - if error occurred during parsing process.

getChild

ITreeNode getChild(int index,
                   ELVisitor visitor)
                   throws ParsingException
Return child of wrapped node by specified index

Parameters:
index - - index of child.
visitor - TODO
Returns:
wrapper for child
Throws:
ParsingException - - if error occurred(child not found).

getChildrenCount

int getChildrenCount()
Returns count of children for this node

Returns:
children count


Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.