|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectat.dms.classfile.Member
at.dms.classfile.FieldInfo
public class FieldInfo
VMS 4.5: Fields. Each field is described by this structure. Used to make up new field entries. Fields for a class can have an additional 'ConstantValue' attribute associated them, which the java compiler uses to represent things like static final int blah = foo;
Field Summary |
---|
Constructor Summary | |
---|---|
FieldInfo(DataInput in,
ConstantPool cp)
Constructs a field entry from a class file stream. |
|
FieldInfo(short modifiers,
String name,
String type,
Object value,
boolean deprecated,
boolean synthetic)
Constructs a field entry. |
Method Summary | |
---|---|
Object |
getConstantValue()
Returns the value of the this field |
String |
getName()
Returns the name of the this field |
String |
getSignature()
Returns the type of the this field |
void |
getSignature(String type)
Returns the type of the this field |
boolean |
isDeprecated()
Returns true if the field is deprecated |
boolean |
isSynthetic()
Returns true if the field is synthetic |
void |
setConstantValue(Object value)
Sets the value of the this field |
void |
setDeprecated(boolean deprecated)
Sets the deprecated attribute of this field |
void |
setName(String name)
Sets the name of the this field |
void |
setSynthetic(boolean synthetic)
Returns true if the field is synthetic |
Methods inherited from class at.dms.classfile.Member |
---|
getModifiers, setModifiers |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FieldInfo(short modifiers, String name, String type, Object value, boolean deprecated, boolean synthetic)
modifiers
- access permission to and properties of the fieldname
- the name of the fieldtype
- the type signaturevalue
- the value of a constant field that must be
(explicitly or implicitly) staticdeprecated
- is this field deprecated ?synthetic
- is this field synthesized by the compiler ?public FieldInfo(DataInput in, ConstantPool cp) throws IOException, ClassFileFormatException
in
- the stream to read fromcp
- the constant pool
IOException
- an io problem has occured
ClassFileFormatException
- attempt to read a bad classfileMethod Detail |
---|
public String getName()
getName
in class Member
public void setName(String name)
public String getSignature()
getSignature
in class Member
public void getSignature(String type)
public Object getConstantValue()
public void setConstantValue(Object value)
public boolean isDeprecated()
public void setDeprecated(boolean deprecated)
public boolean isSynthetic()
public void setSynthetic(boolean synthetic)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |