Package gnu.kawa.reflect
Class Invoke
- java.lang.Object
-
- gnu.mapping.PropertySet
-
- gnu.mapping.Procedure
-
- gnu.kawa.reflect.Invoke
-
-
Field Summary
Fields Modifier and Type Field Description static Invokeinvokestatic InvokeinvokeSpecialstatic InvokeinvokeStaticstatic Invokemake-
Fields inherited from class gnu.mapping.Procedure
applyMethodType, applyToConsumerDefault, applyToConsumerMethod, applyToObjectDefault, applyToObjectMethod, compilerKey, compilerXKey, inlineIfConstantSymbol, validateApplyKey, validateXApplyKey
-
Fields inherited from class gnu.mapping.PropertySet
nameKey
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static java.lang.ObjectapplyToObject(Procedure proc, CallContext ctx)static PrimProceduregetStaticMethod(ClassType type, java.lang.String name, Expression[] args)Deprecated.static java.lang.Objectinvoke$V(java.lang.Object[] args)static java.lang.ObjectinvokeStatic$V(java.lang.Object[] args)protected MethodProclookupMethods(ObjectType dtype, java.lang.Object name)static java.lang.Objectmake$V(java.lang.Object[] args)static ApplyExpmakeInvokeStatic(ClassType type, java.lang.String name, Expression... args)Return an ApplyExp that will call a method with given arguments.intnumArgs()ReturnminArgs()|(maxArgs<<12).-
Methods inherited from class gnu.mapping.Procedure
apply0, apply1, apply2, apply3, apply4, applyL, applyN, applyToConsumerDefault, applyToObjectDefault, checkArgCount, checkBadCode, getApplyMethod, getApplyToConsumerMethod, getApplyToObjectMethod, getReturnType, getSetter, getSourceLocation, isSideEffectFree, lookupApplyHandle, maxArgs, maxArgs, minArgs, minArgs, set0, set1, setN, setSetter, setSourceLocation, toString
-
Methods inherited from class gnu.mapping.PropertySet
getName, getProperty, getSymbol, removeProperty, setName, setProperty, setProperty, setSymbol
-
-
-
-
Constructor Detail
-
Invoke
public Invoke(java.lang.String name, char kind)
-
Invoke
public Invoke(java.lang.String name, char kind, Language language)
-
-
Method Detail
-
invoke$V
public static java.lang.Object invoke$V(java.lang.Object[] args) throws java.lang.Throwable- Throws:
java.lang.Throwable
-
invokeStatic$V
public static java.lang.Object invokeStatic$V(java.lang.Object[] args) throws java.lang.Throwable- Throws:
java.lang.Throwable
-
make$V
public static java.lang.Object make$V(java.lang.Object[] args) throws java.lang.Throwable- Throws:
java.lang.Throwable
-
applyToObject
public static java.lang.Object applyToObject(Procedure proc, CallContext ctx) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
numArgs
public int numArgs()
Description copied from class:ProcedureReturnminArgs()|(maxArgs<<12). We use a single virtual function to reduce the number of methods in the system, as well as the number of virtual method table entries. We shift by 12 so the number can normally be represented using a sipush instruction, without requiring a constant pool entry.
-
lookupMethods
protected MethodProc lookupMethods(ObjectType dtype, java.lang.Object name)
-
makeInvokeStatic
public static ApplyExp makeInvokeStatic(ClassType type, java.lang.String name, Expression... args)
Return an ApplyExp that will call a method with given arguments.- Parameters:
type- the class containing the method we want to call.name- the name of the method we want to callargs- the arguments to the call- Returns:
- an ApplyExp representing the call
-
getStaticMethod
@Deprecated public static PrimProcedure getStaticMethod(ClassType type, java.lang.String name, Expression[] args)
Deprecated.
-
-