kmy.jint.parser
Class Parser.LocalVariableExpression

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

static class Parser.LocalVariableExpression
extends ExpressionNode

This is bogus expression node that expression parser returns when it encounters variable/member definition.


Field Summary
(package private)  MemberNode memb
           
 
Fields inherited from class kmy.jint.tree.ExpressionNode
clazz, NOT_CONST
 
Fields inherited from class kmy.jint.tree.BasicNode
attachment, filePos
 
Constructor Summary
Parser.LocalVariableExpression(int filePos, MemberNode memb)
           
 
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

memb

MemberNode memb
Constructor Detail

Parser.LocalVariableExpression

public Parser.LocalVariableExpression(int filePos,
                                      MemberNode memb)
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