|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.android.dx.rop.cst.Constant
public abstract class Constant
Base class for constants of all sorts.
| Constructor Summary | |
|---|---|
Constant()
|
|
| Method Summary | |
|---|---|
int |
compareTo(Constant other)
This compares in class-major and value-minor order. |
protected abstract int |
compareTo0(Constant other)
Compare the values of this and another instance, which are guaranteed to be of the same class. |
abstract boolean |
isCategory2()
Returns true if this instance is a category-2 constant,
meaning it takes up two slots in the constant pool, or
false if this instance is category-1. |
abstract String |
typeName()
Returns the human name for the particular type of constant this instance is. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.android.dx.util.ToHuman |
|---|
toHuman |
| Constructor Detail |
|---|
public Constant()
| Method Detail |
|---|
public abstract boolean isCategory2()
true if this instance is a category-2 constant,
meaning it takes up two slots in the constant pool, or
false if this instance is category-1.
true iff this instance is category-2public abstract String typeName()
non-null; the namepublic final int compareTo(Constant other)
compareTo in interface Comparable<Constant>protected abstract int compareTo0(Constant other)
other - non-null; the instance to compare to
-1, 0, or 1, as usual
for a comparison
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||