public abstract class AbstractConstantDefinition<C extends AbstractConstantDefinition<C>>
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected org.objectweb.asm.Type |
descriptor |
protected java.lang.String |
name |
protected java.lang.String |
owner |
protected java.lang.Object |
value |
| Constructor and Description |
|---|
AbstractConstantDefinition(java.lang.String owner,
java.lang.String name)
Constructs an instance of AbstractConstantDefinition that will
have its value and descriptor lazily resolved.
|
AbstractConstantDefinition(java.lang.String owner,
java.lang.String name,
org.objectweb.asm.Type descriptor,
java.lang.String valueString)
Constructs an instance of AbstractConstantDefinition with the
specified value and descriptor.
|
| Modifier and Type | Method and Description |
|---|---|
org.objectweb.asm.Type |
getDescriptor() |
java.lang.String |
getDescriptorString() |
java.lang.String |
getName() |
java.lang.String |
getOwner() |
java.lang.Object |
getValue() |
protected java.lang.Object |
parseValue(java.lang.String valueString) |
protected final java.lang.String owner
protected final java.lang.String name
protected org.objectweb.asm.Type descriptor
protected java.lang.Object value
public AbstractConstantDefinition(java.lang.String owner,
java.lang.String name)
owner - the internal name of the class that owns
the represented constant.name - the name of the represented constant.public AbstractConstantDefinition(java.lang.String owner,
java.lang.String name,
org.objectweb.asm.Type descriptor,
java.lang.String valueString)
owner - the internal name of the class that owns
the represented constant.name - the name of the represented constant.descriptor - the descriptor of the represented constant.valueString - the value of the the represented constant, as a String.protected java.lang.Object parseValue(java.lang.String valueString)
public java.lang.String getOwner()
public java.lang.String getName()
public org.objectweb.asm.Type getDescriptor()
public java.lang.String getDescriptorString()
public java.lang.Object getValue()