|
|||||||||||
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
Untamed: An element of a VTable
org.erights.e.elib.prim.VTable
Constructor Summary | |
protected |
MethodNode()
|
Method Summary | |
abstract void |
addJavaMemberNodesToMap(FlexMap map)
Enabled: If this MethodNode is or consists of JavaMemberNodes, add these JavaMemberNodes to map indexed by their optTypedVerb (their flat signature). |
abstract int |
getArity()
Enabled: E Polymorphism is based on verb & arity alone. |
abstract String |
getDocComment()
Enabled: |
abstract String |
getOptTypedVerb()
Enabled: Returns null or an interned string containing the parameter type signature in canonical "flat signature" form. |
abstract String |
getVerb()
Enabled: Returns a message selector string (not necessarily interned). |
MessageDesc |
makeMessageType(String verb)
Enabled: Returns a description of the message this method responds to. |
void |
protocol(Object optSelf,
FlexList mTypes)
Enabled: |
boolean |
respondsTo(Object optSelf,
String aVerb,
int anArity)
Enabled: |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.erights.e.elib.base.Script |
execute, shorten |
Constructor Detail |
protected MethodNode()
Method Detail |
public abstract String getDocComment()
public abstract String getVerb()
public abstract String getOptTypedVerb()
Used to allow the invocation of Java methods that are overloaded by type.
public abstract int getArity()
public abstract void addJavaMemberNodesToMap(FlexMap map)
public MessageDesc makeMessageType(String verb)
public void protocol(Object optSelf, FlexList mTypes)
protocol
in interface Script
optSelf
- If non-null, and if this script has a match clause, then
delegate an __allegedType query to optSelf via the match
clause so it can add further elements to mTypes.
Since 'null' is normally a valid value for a 'self', this use of 'null' depends on our knowledge that 'null''s script does not have its own match clause.
mTypes
- message descriptions.public boolean respondsTo(Object optSelf, String aVerb, int anArity)
respondsTo
in interface Script
optSelf
- If non-null, and if this script has a match clause,
and if this script doesn't have a directly matching
method, then delegate the respondsTo question to
optSelf via the match clause to see if it responds.
Since 'null' is normally a valid value for a 'self', this use of 'null' depends on our knowledge that 'null''s script does not have its own match clause.
aVerb
- anArity
-
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |