|
|||||||||||
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.JavaMemberNode | +--org.erights.e.elib.prim.SugarMethodNode
Untamed: How a static method of a sugar class is made to appear as an instance method of an instance of the class being sugarred.
Field Summary | |
private boolean |
printOkFlag
|
Fields inherited from class org.erights.e.elib.prim.JavaMemberNode |
myMember |
Constructor Summary | |
SugarMethodNode(java.lang.reflect.Method method)
Enabled: |
Method Summary | |
static void |
defineMembers(VTable vTable,
Class clazz)
Enabled: |
String |
explain(String args)
Enabled: |
String |
getDocComment()
Enabled: |
Object |
innerExecute(Object self,
Object[] args)
Enabled: |
void |
lnPrintOn(TextWriter out,
int priority)
Enabled: |
Class[] |
parameterTypes()
Enabled: |
Class |
receiverType()
Enabled: |
Class |
returnType()
Enabled: |
void |
subPrintOn(TextWriter out,
int priority)
Enabled: If the printOkFlag is not set, then suppress printing of this method node. |
Methods inherited from class org.erights.e.elib.prim.JavaMemberNode |
addJavaMemberNodesToMap, execute, getArity, getOptTypedVerb, getVerb, makeMessageType, member, optCoerceArgs, shorten, toString, traceOn |
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 |
private final boolean printOkFlag
Constructor Detail |
public SugarMethodNode(java.lang.reflect.Method method)
Method Detail |
public static void defineMembers(VTable vTable, Class clazz) throws AlreadyDefinedException
AlreadyDefinedException
public String explain(String args)
explain
in class JavaMemberNode
public Object innerExecute(Object self, Object[] args) throws IllegalAccessException, IllegalArgumentException, java.lang.reflect.InvocationTargetException
innerExecute
in class JavaMemberNode
IllegalArgumentException
- if the number of actual and formal
parameters differ, or if an unwrapping or method
invocation conversion fails.
IllegalAccessException
java.lang.reflect.InvocationTargetException
public void lnPrintOn(TextWriter out, int priority) throws IOException
IOException
public Class receiverType()
receiverType
in class JavaMemberNode
public String getDocComment()
getDocComment
in class MethodNode
public Class[] parameterTypes()
parameterTypes
in class JavaMemberNode
public Class returnType()
returnType
in class JavaMemberNode
public void subPrintOn(TextWriter out, int priority) throws IOException
subPrintOn
in class JavaMemberNode
IOException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |