| 
 |   | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
  |
  +--org.erights.e.elib.base.MethodNode
        |
        +--org.erights.e.elib.prim.OverloaderNode
Untamed: Wraps a set of JavaMemberNodes with the same message name and arity, and dispatches to the unique one for which the current arguments coerce to its parameter list.
If the current arguments coerce to none or more than one, throw an exception.
| Field Summary | |
| private  CallCounter | myCallCounter | 
| private  JavaMemberNode[] | myNodes | 
| Constructor Summary | |
| private  | OverloaderNode(JavaMemberNode[] nodes) | 
| Method Summary | |
|  void | addJavaMemberNodesToMap(FlexMap map)Enabled: Add all my nodes to the map | 
|  Object | execute(Object self,
        String aVerb,
        Object[] args)Enabled: | 
|  int | getArity()Enabled: | 
|  String | getDocComment()Enabled: | 
|  String | getOptTypedVerb()Enabled: | 
|  String | getVerb()Enabled: | 
| static MethodNode | make(JavaMemberNode[] nodes)Enabled: | 
|  Script | shorten(Object optSelf,
        String aVerb,
        Object[] args)Enabled: Returns the unique matching JavaMemberNodeor throw an exception. | 
|  void | subPrintOn(TextWriter out,
           int priority)Enabled: | 
|  String | toString()Suppressed: | 
| Methods inherited from class org.erights.e.elib.base.MethodNode | 
| makeMessageType, protocol, respondsTo | 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Field Detail | 
private final JavaMemberNode[] myNodes
private final CallCounter myCallCounter
| Constructor Detail | 
private OverloaderNode(JavaMemberNode[] nodes)
| Method Detail | 
public static MethodNode make(JavaMemberNode[] nodes)
public String getDocComment()
getDocComment in class MethodNodepublic String getVerb()
getVerb in class MethodNodepublic String getOptTypedVerb()
getOptTypedVerb in class MethodNodepublic int getArity()
getArity in class MethodNodepublic void addJavaMemberNodesToMap(FlexMap map)
addJavaMemberNodesToMap in class MethodNode
public Script shorten(Object optSelf,
                      String aVerb,
                      Object[] args)
JavaMemberNode or throw an exception.
optSelf - If present, then a script could shorten using
        instance-specific data.aVerb - Must be internedargs - Typically, only its arity is used. But OverloaderNode uses
             the types of the arguments to select among Java overloads.
public Object execute(Object self,
                      String aVerb,
                      Object[] args)
public void subPrintOn(TextWriter out,
                       int priority)
                throws IOException
IOExceptionpublic String toString()
toString in class Object| 
 |   | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
