|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.transjvm.MemberID net.sf.transjvm.MethodID
public abstract class MethodID
A class representing a method identifier.
Method Summary | |
---|---|
static MethodID |
_interface(TypeID enclosing,
TypeID returnType,
java.lang.String name)
Returns a MethodID for interface dispatch, with no parameters. |
static MethodID |
_interface(TypeID enclosing,
TypeID returnType,
java.lang.String name,
TypeID... params)
Returns a MethodID for interface dispatch, with several parameters. |
static MethodID |
_interface(TypeID enclosing,
TypeID returnType,
java.lang.String name,
TypeID param)
Returns a MethodID for interface dispatch, with one parameter. |
static MethodID |
_interface(TypeID enclosing,
TypeID returnType,
java.lang.String name,
TypeID param0,
TypeID param1)
Returns a MethodID for interface dispatch, with two parameters. |
static MethodID |
_static(TypeID enclosing,
TypeID returnType,
java.lang.String name)
Returns a MethodID for static dispatch, with no parameters. |
static MethodID |
_static(TypeID enclosing,
TypeID returnType,
java.lang.String name,
TypeID... params)
Returns a MethodID for static dispatch, with several parameters. |
static MethodID |
_static(TypeID enclosing,
TypeID returnType,
java.lang.String name,
TypeID param)
Returns a MethodID for static dispatch, with one parameter. |
static MethodID |
_static(TypeID enclosing,
TypeID returnType,
java.lang.String name,
TypeID param0,
TypeID param1)
Returns a MethodID for static dispatch, with two parameters. |
Expression |
call(Expression object)
Returns a call expression with no arguments. |
Expression |
call(Expression object,
Expression... arguments)
Returns a call expression with one or more arguments. |
boolean |
equals(java.lang.Object o)
|
java.lang.String |
getName()
Returns the name of this MethodID. |
TypeID[] |
getParameters()
Returns the parameter types of this method. |
abstract MethodID |
getProxy(TypeID proxyHolder)
|
TypeID |
getReturnType()
|
int |
hashCode()
|
static MethodID |
virtual(TypeID enclosing,
TypeID returnType,
java.lang.String name)
Returns a MethodID for virtual dispatch, with no parameters. |
static MethodID |
virtual(TypeID enclosing,
TypeID returnType,
java.lang.String name,
TypeID... params)
Returns a MethodID for virtual dispatch, with several parameters. |
static MethodID |
virtual(TypeID enclosing,
TypeID returnType,
java.lang.String name,
TypeID param)
Returns a MethodID for virtual dispatch, with one parameter. |
static MethodID |
virtual(TypeID enclosing,
TypeID returnType,
java.lang.String name,
TypeID param0,
TypeID param1)
Returns a MethodID for virtual dispatch, with two parameters. |
Methods inherited from class net.sf.transjvm.MemberID |
---|
getOwningClass, getRef |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public boolean equals(java.lang.Object o)
equals
in class MemberID
public int hashCode()
hashCode
in class MemberID
public java.lang.String getName()
public abstract MethodID getProxy(TypeID proxyHolder)
public TypeID getReturnType()
public TypeID[] getParameters()
public static MethodID virtual(TypeID enclosing, TypeID returnType, java.lang.String name)
enclosing
- Class enclosing this method.name
- Name of this method.returnType
- Return type of this method.public static MethodID virtual(TypeID enclosing, TypeID returnType, java.lang.String name, TypeID param)
enclosing
- Class enclosing this method.name
- Name of this method.param
- Parameter type of this method.returnType
- Return type of this method.public static MethodID virtual(TypeID enclosing, TypeID returnType, java.lang.String name, TypeID param0, TypeID param1)
enclosing
- Class enclosing this method.name
- Name of this method.param0
- First parameter type of this method.param1
- Second parameter type of this method.returnType
- Return type of this method.public static MethodID virtual(TypeID enclosing, TypeID returnType, java.lang.String name, TypeID... params)
enclosing
- Class enclosing this method id.name
- Name of this method id.params
- Parameter types of this method id.returnType
- Return type of this method id.public static MethodID _static(TypeID enclosing, TypeID returnType, java.lang.String name)
enclosing
- Class enclosing this method.name
- Name of this method.returnType
- Return type of this method.public static MethodID _static(TypeID enclosing, TypeID returnType, java.lang.String name, TypeID param)
enclosing
- Class enclosing this method.name
- Name of this method.param
- Parameter type of this method.returnType
- Return type of this method.public static MethodID _static(TypeID enclosing, TypeID returnType, java.lang.String name, TypeID param0, TypeID param1)
enclosing
- Class enclosing this method.name
- Name of this method.param0
- First parameter type of this method.param1
- Second parameter type of this method.returnType
- Return type of this method.public static MethodID _static(TypeID enclosing, TypeID returnType, java.lang.String name, TypeID... params)
enclosing
- Class enclosing this method id.name
- Name of this method id.params
- Parameter types of this method id.returnType
- Return type of this method id.public static MethodID _interface(TypeID enclosing, TypeID returnType, java.lang.String name)
enclosing
- Class enclosing this method.name
- Name of this method.returnType
- Return type of this method.public static MethodID _interface(TypeID enclosing, TypeID returnType, java.lang.String name, TypeID param)
enclosing
- Class enclosing this method.name
- Name of this method.param
- Parameter type of this method.returnType
- Return type of this method.public static MethodID _interface(TypeID enclosing, TypeID returnType, java.lang.String name, TypeID param0, TypeID param1)
enclosing
- Class enclosing this method.name
- Name of this method.param0
- First parameter type of this method.param1
- Second parameter type of this method.returnType
- Return type of this method.public static MethodID _interface(TypeID enclosing, TypeID returnType, java.lang.String name, TypeID... params)
enclosing
- Class enclosing this method id.name
- Name of this method id.params
- Parameter types of this method id.returnType
- Return type of this method id.public Expression call(Expression object)
object
- The object owning the method, ignored if method is static.
java.lang.NullPointerException
- If object is null and method is non-static.public Expression call(Expression object, Expression... arguments)
object
- The object owning the method, ignored if method is static.arguments
- The arguments.
java.lang.NullPointerException
- If object is null and method is non-static.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |