org.erights.e.elang.evm
Class EMethodNode

java.lang.Object
  |
  +--org.erights.e.elib.base.MethodNode
        |
        +--org.erights.e.elang.evm.EMethodNode
All Implemented Interfaces:
EStackItem, Script

public class EMethodNode
extends MethodNode
implements EStackItem

Safe:


Field Summary
private  int myArity
           
private  CallCounter myCallCounter
           
private  EMethod myMethod
           
private  String myOptTypeName
           
private  String myVerb
           
 
Constructor Summary
EMethodNode(EMethod method)
          Enabled:
EMethodNode(String verb, int arity, EMethod method)
          Enabled: The constructor interns the verb
 
Method Summary
 void addJavaMemberNodesToMap(FlexMap map)
          Enabled: Do nothing
 Object execute(Object self, String aVerb, Object[] args)
          Enabled:
 int getArity()
          Enabled:
 String getDocComment()
          Enabled:
 EMethod getMethod()
          Enabled:
 String getOptTypedVerb()
          Enabled:
 String getVerb()
          Enabled:
 MessageDesc makeMessageType(String verb)
          Enabled:
(package private)  void setTypeName(String typeName)
           
 Script shorten(Object optSelf, String aVerb, Object[] args)
          Enabled: Just returns this.
 String toString()
          Suppressed:
 void traceOn(TextWriter out)
          Enabled:
 
Methods inherited from class org.erights.e.elib.base.MethodNode
protocol, respondsTo
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

myOptTypeName

private String myOptTypeName

myVerb

private final String myVerb

myArity

private final int myArity

myMethod

private final EMethod myMethod

myCallCounter

private CallCounter myCallCounter
Constructor Detail

EMethodNode

public EMethodNode(String verb,
                   int arity,
                   EMethod method)
Enabled: The constructor interns the verb


EMethodNode

public EMethodNode(EMethod method)
Enabled:

Method Detail

shorten

public Script shorten(Object optSelf,
                      String aVerb,
                      Object[] args)
Enabled: Just returns this.

Specified by:
shorten in interface Script
Parameters:
optSelf - If present, then a script could shorten using instance-specific data.
aVerb - Must be interned
args - Typically, only its arity is used. But OverloaderNode uses the types of the arguments to select among Java overloads.
Returns:
The Script to use in lieu of this one. Note that it's always correct a Script to just return itself.

execute

public Object execute(Object self,
                      String aVerb,
                      Object[] args)
Enabled:

Specified by:
execute in interface Script

getDocComment

public String getDocComment()
Enabled:

Specified by:
getDocComment in class MethodNode

getVerb

public String getVerb()
Enabled:

Specified by:
getVerb in class MethodNode

getOptTypedVerb

public String getOptTypedVerb()
Enabled:

Specified by:
getOptTypedVerb in class MethodNode

getArity

public int getArity()
Enabled:

Specified by:
getArity in class MethodNode

getMethod

public EMethod getMethod()
Enabled:


addJavaMemberNodesToMap

public void addJavaMemberNodesToMap(FlexMap map)
Enabled: Do nothing

Specified by:
addJavaMemberNodesToMap in class MethodNode

makeMessageType

public MessageDesc makeMessageType(String verb)
Enabled:

Overrides:
makeMessageType in class MethodNode

setTypeName

void setTypeName(String typeName)

toString

public String toString()
Suppressed:

Overrides:
toString in class Object
Returns:
a string representation of the object.

traceOn

public void traceOn(TextWriter out)
             throws IOException
Enabled:

Specified by:
traceOn in interface EStackItem
IOException


comments?