kmy.jint.tree
Class MethodNode

java.lang.Object
  |
  +--kmy.jint.tree.BasicNode
        |
        +--kmy.jint.tree.StatementNode
              |
              +--kmy.jint.tree.DefinitionNode
                    |
                    +--kmy.jint.tree.MethodNode

public class MethodNode
extends DefinitionNode


Field Summary
 StatementNode[] body
           
 IdentifierNode[] exceptions
           
 IdentifierNode name
           
 ParameterNode[] params
           
 IdentifierNode type
           
 
Fields inherited from class kmy.jint.tree.DefinitionNode
flags
 
Fields inherited from class kmy.jint.tree.BasicNode
attachment, filePos
 
Constructor Summary
MethodNode(IdentifierNode type, IdentifierNode name, ParameterNode[] params, IdentifierNode[] exceptions, StatementNode[] body)
           
 
Method Summary
 java.lang.Object eval(Context context)
          Calls corresponding eval* method in the given Context.
 
Methods inherited from class kmy.jint.tree.DefinitionNode
addFlags, fromJVMModifiers, getFlags
 
Methods inherited from class kmy.jint.tree.BasicNode
getAttachment, getFilePos, getLine, setAttachment, setFilePos, toString
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Field Detail

type

public IdentifierNode type

name

public IdentifierNode name

params

public ParameterNode[] params

exceptions

public IdentifierNode[] exceptions

body

public StatementNode[] body
Constructor Detail

MethodNode

public MethodNode(IdentifierNode type,
                  IdentifierNode name,
                  ParameterNode[] params,
                  IdentifierNode[] exceptions,
                  StatementNode[] body)
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