public abstract class Constant extends java.lang.Object implements ToHuman, java.lang.Comparable<Constant>
| Constructor and Description |
|---|
Constant() |
| Modifier and Type | Method and Description |
|---|---|
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 java.lang.String |
typeName()
Returns the human name for the particular type of constant
this instance is.
|
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 java.lang.String typeName()
non-null; the namepublic final int compareTo(Constant other)
compareTo in interface java.lang.Comparable<Constant>protected abstract int compareTo0(Constant other)
other - non-null; the instance to compare to-1, 0, or 1, as usual
for a comparisonCopyright © 2020. All Rights Reserved.