Class MemberRef.Handle
java.lang.Object
org.spongepowered.asm.mixin.struct.MemberRef
org.spongepowered.asm.mixin.struct.MemberRef.Handle
- Enclosing class:
MemberRef
A reference to a field or method backed by a method handle
-
Nested Class Summary
Nested classes/interfaces inherited from class org.spongepowered.asm.mixin.struct.MemberRef
MemberRef.Field, MemberRef.Handle, MemberRef.Method -
Constructor Summary
ConstructorsConstructorDescriptionHandle(org.objectweb.asm.Handle handle) Creates a member reference initially referring to the member referred to by the method handle and the invocation instruction of the method handle. -
Method Summary
Modifier and TypeMethodDescriptiongetDesc()Descriptor of this member.org.objectweb.asm.HandleGets a method handle for the member this is object is referring to.getName()Name of this member.intThe opcode of the invocation.getOwner()The internal name for the owner of this member.booleanisField()Whether this member is a field.voidChanges the descriptor of this membervoidvoidRename this member.voidsetOpcode(int opcode) Set the opcode of the invocation.voidChanges the owner of thisMethods inherited from class org.spongepowered.asm.mixin.struct.MemberRef
equals, hashCode, ownerIsMixin, toString
-
Constructor Details
-
Handle
public Handle(org.objectweb.asm.Handle handle) Creates a member reference initially referring to the member referred to by the method handle and the invocation instruction of the method handle.- Parameters:
handle- Initial method handle.
-
-
Method Details
-
getMethodHandle
public org.objectweb.asm.Handle getMethodHandle()Gets a method handle for the member this is object is referring to.- Returns:
- Method handle representing this object
-
isField
public boolean isField()Description copied from class:MemberRefWhether this member is a field. -
getOpcode
public int getOpcode()Description copied from class:MemberRefThe opcode of the invocation. -
setOpcode
public void setOpcode(int opcode) Description copied from class:MemberRefSet the opcode of the invocation. -
getOwner
Description copied from class:MemberRefThe internal name for the owner of this member. -
setOwner
Description copied from class:MemberRefChanges the owner of this -
getName
Description copied from class:MemberRefName of this member. -
setName
Description copied from class:MemberRefRename this member. -
getDesc
Description copied from class:MemberRefDescriptor of this member. -
setDesc
Description copied from class:MemberRefChanges the descriptor of this member -
setHandle
-