kmy.jint.parser
Class Parser.LabelExpression

java.lang.Object
  |
  +--kmy.jint.tree.BasicNode
        |
        +--kmy.jint.tree.ExpressionNode
              |
              +--kmy.jint.parser.Parser.LabelExpression
Enclosing class:
Parser

static class Parser.LabelExpression
extends ExpressionNode

This is bogus expression node that expression parser returns when it encounters labeled statement.


Field Summary
(package private)  IdentifierNode label
           
 
Fields inherited from class kmy.jint.tree.ExpressionNode
clazz, NOT_CONST
 
Fields inherited from class kmy.jint.tree.BasicNode
attachment, filePos
 
Constructor Summary
(package private) Parser.LabelExpression(IdentifierNode label)
           
 
Method Summary
 java.lang.Object eval(Context context)
          Calls corresponding eval* method in the given Context.
 java.lang.String toString()
          Returns string representation of this node.
 
Methods inherited from class kmy.jint.tree.ExpressionNode
getConstValue
 
Methods inherited from class kmy.jint.tree.BasicNode
getAttachment, getFilePos, getLine, setAttachment, setFilePos
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Field Detail

label

IdentifierNode label
Constructor Detail

Parser.LabelExpression

Parser.LabelExpression(IdentifierNode label)
Method Detail

eval

public java.lang.Object eval(Context context)
Description copied from class: BasicNode
Calls corresponding eval* method in the given Context.
Overrides:
eval in class BasicNode

toString

public java.lang.String toString()
Description copied from class: BasicNode
Returns string representation of this node.
Overrides:
toString in class BasicNode