Package com.tonic.type
Class MethodHandle
- java.lang.Object
-
- com.tonic.type.MethodHandle
-
public class MethodHandle extends Object
A CONSTANT_MethodHandle target: a reference kind tag plus the member it points at.
-
-
Field Summary
Fields Modifier and Type Field Description static intH_GETFIELDstatic intH_GETSTATICstatic intH_INVOKEINTERFACEstatic intH_INVOKESPECIALstatic intH_INVOKESTATICstatic intH_INVOKEVIRTUALstatic intH_NEWINVOKESPECIALstatic intH_PUTFIELDstatic intH_PUTSTATIC
-
Constructor Summary
Constructors Constructor Description MethodHandle(int tag, String owner, String name, String descriptor)Creates a method handle whose owner is a class rather than an interface.MethodHandle(int tag, String owner, String name, String descriptor, boolean isInterface)Creates a method handle.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)StringgetDescriptor()StringgetName()StringgetOwner()intgetTag()inthashCode()booleanisInterface()StringtoString()
-
-
-
Field Detail
-
H_GETFIELD
public static final int H_GETFIELD
- See Also:
- Constant Field Values
-
H_GETSTATIC
public static final int H_GETSTATIC
- See Also:
- Constant Field Values
-
H_PUTFIELD
public static final int H_PUTFIELD
- See Also:
- Constant Field Values
-
H_PUTSTATIC
public static final int H_PUTSTATIC
- See Also:
- Constant Field Values
-
H_INVOKEVIRTUAL
public static final int H_INVOKEVIRTUAL
- See Also:
- Constant Field Values
-
H_INVOKESTATIC
public static final int H_INVOKESTATIC
- See Also:
- Constant Field Values
-
H_INVOKESPECIAL
public static final int H_INVOKESPECIAL
- See Also:
- Constant Field Values
-
H_NEWINVOKESPECIAL
public static final int H_NEWINVOKESPECIAL
- See Also:
- Constant Field Values
-
H_INVOKEINTERFACE
public static final int H_INVOKEINTERFACE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
MethodHandle
public MethodHandle(int tag, String owner, String name, String descriptor)Creates a method handle whose owner is a class rather than an interface.- Parameters:
tag- one of the H_ reference kindsowner- the internal name of the declaring classname- the member namedescriptor- the member descriptor
-
MethodHandle
public MethodHandle(int tag, String owner, String name, String descriptor, boolean isInterface)Creates a method handle.- Parameters:
tag- one of the H_ reference kindsowner- the internal name of the declaring classname- the member namedescriptor- the member descriptorisInterface- true if the owner is an interface
-
-