Class NodeChoice
java.lang.Object
EDU.purdue.jtb.parser.syntaxtree.NodeChoice
- All Implemented Interfaces:
INode, Serializable
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe real nodeintThe total number of choicesintThe "which" choice indicator -
Constructor Summary
ConstructorsConstructorDescriptionNodeChoice(INode node) Constructs theNodeChoicewith a given node and non standard (-1) which choice and total number of choices.NodeChoice(INode node, int whichChoice, int totalChoices) Constructs theNodeChoicewith a given node, a which choice and a total (not controlled). -
Method Summary
Modifier and TypeMethodDescriptionintaccept(IIntVisitor vis) Accepts aIIntVisitorvisitor with user return data.voidaccept(IVoidVisitor vis) Accepts aIVoidVisitorvisitor} visitor with user return data.
-
Field Details
-
choice
The real node -
which
public int whichThe "which" choice indicator -
total
public int totalThe total number of choices
-
-
Constructor Details
-
NodeChoice
Constructs theNodeChoicewith a given node and non standard (-1) which choice and total number of choices.- Parameters:
node- - the node
-
NodeChoice
Constructs theNodeChoicewith a given node, a which choice and a total (not controlled).- Parameters:
node- - the nodewhichChoice- - the which choicetotalChoices- - the total number of choices
-
-
Method Details
-
accept
Accepts aIIntVisitorvisitor with user return data. -
accept
Accepts aIVoidVisitorvisitor} visitor with user return data.
-