public class MappingMethod extends java.lang.Object implements IMapping<MappingMethod>
IMapping.Type| Constructor and Description |
|---|
MappingMethod(java.lang.String fullyQualifiedName,
java.lang.String desc) |
MappingMethod(java.lang.String owner,
java.lang.String simpleName,
java.lang.String desc) |
| Modifier and Type | Method and Description |
|---|---|
MappingMethod |
addPrefix(java.lang.String prefix)
Return a clone of this mapping with the supplied prefix added.
|
MappingMethod |
copy()
Create a clone of this mapping
|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getDesc()
Get the descriptor of this member, for example the method descriptor or
field type.
|
java.lang.String |
getName()
Get the mapping name, for method mappings this includes the owner
|
java.lang.String |
getOwner()
Get the owner of this member, for fields and methods this is the class
name, for classes it is the package name, for packages it is undefined.
|
java.lang.String |
getSimpleName()
Get the base name of this member, for example the bare field, method or
class name
|
MappingMethod |
getSuper()
Get the next most immediate super-implementation of this mapping.
|
IMapping.Type |
getType()
Get the mapping type (field, method, class, package)
|
int |
hashCode() |
boolean |
isConstructor() |
MappingMethod |
move(java.lang.String newOwner)
Create a clone of this mapping with a new owner
|
MappingMethod |
remap(java.lang.String newName)
Create a clone of this mapping with a new name
|
java.lang.String |
serialise()
Get a representation of this mapping for serialisation.
|
java.lang.String |
toString() |
MappingMethod |
transform(java.lang.String newDesc)
Create a clone of this mapping with a new descriptor
|
public MappingMethod(java.lang.String fullyQualifiedName,
java.lang.String desc)
public MappingMethod(java.lang.String owner,
java.lang.String simpleName,
java.lang.String desc)
public IMapping.Type getType()
IMappinggetType in interface IMapping<MappingMethod>public java.lang.String getName()
IMappinggetName in interface IMapping<MappingMethod>public java.lang.String getSimpleName()
IMappinggetSimpleName in interface IMapping<MappingMethod>public java.lang.String getOwner()
IMappinggetOwner in interface IMapping<MappingMethod>public java.lang.String getDesc()
IMappinggetDesc in interface IMapping<MappingMethod>public MappingMethod getSuper()
IMappinggetSuper in interface IMapping<MappingMethod>public boolean isConstructor()
public MappingMethod move(java.lang.String newOwner)
IMappingmove in interface IMapping<MappingMethod>newOwner - new ownerpublic MappingMethod remap(java.lang.String newName)
IMappingremap in interface IMapping<MappingMethod>newName - new namepublic MappingMethod transform(java.lang.String newDesc)
IMappingtransform in interface IMapping<MappingMethod>newDesc - new descriptorpublic MappingMethod copy()
IMappingcopy in interface IMapping<MappingMethod>public MappingMethod addPrefix(java.lang.String prefix)
prefix - prefix to prependpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String serialise()
IMappingserialise in interface IMapping<MappingMethod>public java.lang.String toString()
toString in class java.lang.Object