Methods Summary |
---|
protected int | compareTo0(Constant other){@inheritDoc}
CstNat otherNat = (CstNat) other;
int cmp = name.compareTo(otherNat.name);
if (cmp != 0) {
return cmp;
}
return descriptor.compareTo(otherNat.descriptor);
|
public boolean | equals(java.lang.Object other){@inheritDoc}
if (!(other instanceof CstNat)) {
return false;
}
CstNat otherNat = (CstNat) other;
return name.equals(otherNat.name) &&
descriptor.equals(otherNat.descriptor);
|
public CstUtf8 | getDescriptor()Gets the descriptor.
return descriptor;
|
public com.android.dx.rop.type.Type | getFieldType()Gets the field type corresponding to this instance's descriptor.
This method is only valid to call if the descriptor in fact describes
a field (and not a method).
return Type.intern(descriptor.getString());
|
public CstUtf8 | getName()Gets the name.
return name;
|
public int | hashCode(){@inheritDoc}
return (name.hashCode() * 31) ^ descriptor.hashCode();
|
public boolean | isCategory2(){@inheritDoc}
return false;
|
public final boolean | isClassInit()Gets whether this instance has the name of a standard class
initialization method. This is just a convenient shorthand for
getName().getString().equals("<clinit>") .
return name.getString().equals("<clinit>");
|
public final boolean | isInstanceInit()Gets whether this instance has the name of a standard instance
initialization method. This is just a convenient shorthand for
getName().getString().equals("<init>") .
return name.getString().equals("<init>");
|
public java.lang.String | toHuman()Returns an unadorned but human-readable version of the name-and-type
value.
return name.toHuman() + ':" + descriptor.toHuman();
|
public java.lang.String | toString(){@inheritDoc}
return "nat{" + toHuman() + '}";
|
public java.lang.String | typeName(){@inheritDoc}
return "nat";
|