com.sun.squawk
Class ClassFileConstantField
java.lang.Object
com.sun.squawk.ClassFileMember
com.sun.squawk.ClassFileField
com.sun.squawk.ClassFileConstantField
public final class ClassFileConstantField
- extends ClassFileField
An instance of ClassFileConstantField
encapsulates all the
symbolic information of a field declaration in a class file that has a
ConstantValue attribute.
This class is provided for a subsystem (such as the translator) that
loads a class definition from a class file.
Constructor Summary |
ClassFileConstantField(String name,
int modifiers,
Klass type,
long constantValue)
Creates a new ClassFileConstantField instance for a field with a
primitive ConstantValue attribute. |
ClassFileConstantField(String name,
int modifiers,
Klass type,
String constantValue)
Creates a new ClassFileConstantField instance for a field with a
String ConstantValue attribute. |
ClassFileConstantField
public ClassFileConstantField(String name,
int modifiers,
Klass type,
long constantValue)
- Creates a new
ClassFileConstantField
instance for a field with a
primitive ConstantValue attribute.
- Parameters:
name
- the name of the fieldmodifiers
- the modifiers of the fieldtype
- the type of the fieldconstantValue
- the primitive constant value (as a long)
ClassFileConstantField
public ClassFileConstantField(String name,
int modifiers,
Klass type,
String constantValue)
- Creates a new
ClassFileConstantField
instance for a field with a
String ConstantValue attribute.
- Parameters:
name
- the name of the fieldmodifiers
- the modifiers of the fieldtype
- the type of the fieldconstantValue
- the string constant value
"For updated information see the Java FRC site"