Class MemberRef.Handle
java.lang.Object
org.spongepowered.asm.mixin.struct.MemberRef
org.spongepowered.asm.mixin.struct.MemberRef.Handle
- Enclosing class:
- MemberRef
public static final class MemberRef.Handle extends 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
Constructors Constructor Description 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. -
Method Summary
Modifier and Type Method Description java.lang.StringgetDesc()Descriptor of this member.org.objectweb.asm.HandlegetMethodHandle()Gets a method handle for the member this is object is referring to.java.lang.StringgetName()Name of this member.intgetOpcode()The opcode of the invocation.java.lang.StringgetOwner()The internal name for the owner of this member.booleanisField()Whether this member is a field.voidsetDesc(java.lang.String desc)Changes the descriptor of this membervoidsetName(java.lang.String name)Rename this member.voidsetOpcode(int opcode)Set the opcode of the invocation.voidsetOwner(java.lang.String owner)Changes the owner of thisMethods inherited from class org.spongepowered.asm.mixin.struct.MemberRef
equals, hashCode, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
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
public java.lang.String getOwner()Description copied from class:MemberRefThe internal name for the owner of this member. -
setOwner
public void setOwner(java.lang.String owner)Description copied from class:MemberRefChanges the owner of this -
getName
public java.lang.String getName()Description copied from class:MemberRefName of this member. -
setName
public void setName(java.lang.String name)Description copied from class:MemberRefRename this member. -
getDesc
public java.lang.String getDesc()Description copied from class:MemberRefDescriptor of this member. -
setDesc
public void setDesc(java.lang.String desc)Description copied from class:MemberRefChanges the descriptor of this member
-