|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.rit.classfile.FieldReference
edu.rit.classfile.FieldDescription
edu.rit.classfile.SynthesizedFieldDescription
edu.rit.classfile.SynthesizedInterfaceFieldDescription
public class SynthesizedInterfaceFieldDescription
Class SynthesizedInterfacefieldDescription is used to synthesize a field description for some actual field that is part of an interface. All interface fields are public, static, and final. To synthesize an interface field:
OR
In the documentation below, the term "described field" means "the synthesized interface field described by this synthesized interface field description object."
To synthesize a class field, see class SynthesizedClassFieldDescription
. To
synthesize a class constant field, see class SynthesizedClassConstantFieldDescription
.
Constructor Summary | |
---|---|
SynthesizedInterfaceFieldDescription(SynthesizedInterfaceDescription theInterfaceDescription,
String theFieldName,
boolean theValue)
Construct a new synthesized interface field description object with the given interface, field name, and boolean constant value. |
|
SynthesizedInterfaceFieldDescription(SynthesizedInterfaceDescription theInterfaceDescription,
String theFieldName,
byte theValue)
Construct a new synthesized interface field description object with the given interface, field name, and byte constant value. |
|
SynthesizedInterfaceFieldDescription(SynthesizedInterfaceDescription theInterfaceDescription,
String theFieldName,
char theValue)
Construct a new synthesized interface field description object with the given interface, field name, and character constant value. |
|
SynthesizedInterfaceFieldDescription(SynthesizedInterfaceDescription theInterfaceDescription,
String theFieldName,
double theValue)
Construct a new synthesized interface field description object with the given interface, field name, and double constant value. |
|
SynthesizedInterfaceFieldDescription(SynthesizedInterfaceDescription theInterfaceDescription,
String theFieldName,
float theValue)
Construct a new synthesized interface field description object with the given interface, field name, and float constant value. |
|
SynthesizedInterfaceFieldDescription(SynthesizedInterfaceDescription theInterfaceDescription,
String theFieldName,
int theValue)
Construct a new synthesized interface field description object with the given interface, field name, and integer constant value. |
|
SynthesizedInterfaceFieldDescription(SynthesizedInterfaceDescription theInterfaceDescription,
String theFieldName,
long theValue)
Construct a new synthesized interface field description object with the given interface, field name, and long constant value. |
|
SynthesizedInterfaceFieldDescription(SynthesizedInterfaceDescription theInterfaceDescription,
String theFieldName,
short theValue)
Construct a new synthesized interface field description object with the given interface, field name, and short constant value. |
|
SynthesizedInterfaceFieldDescription(SynthesizedInterfaceDescription theInterfaceDescription,
String theFieldName,
String theValue)
Construct a new synthesized interface field description object with the given interface, field name, and string constant value. |
|
SynthesizedInterfaceFieldDescription(SynthesizedInterfaceDescription theInterfaceDescription,
String theFieldName,
TypeReference theFieldType)
Construct a new synthesized interface field description object with the given interface, field name, and field type. |
Method Summary |
---|
Methods inherited from class edu.rit.classfile.FieldDescription |
---|
getConstantValue, isFinal, isPackageScoped, isPrivate, isProtected, isPublic, isStatic, isTransient, isVolatile |
Methods inherited from class edu.rit.classfile.FieldReference |
---|
equals, getClassReference, getFieldDescriptor, getFieldName, getFieldType, hashCode, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SynthesizedInterfaceFieldDescription(SynthesizedInterfaceDescription theInterfaceDescription, String theFieldName, TypeReference theFieldType) throws ListFullException
theInterfaceDescription
- Interface containing this field.theFieldName
- Field name.theFieldType
- Field type.
NullPointerException
- (unchecked exception) Thrown if theInterfaceDescription is
null, theFieldName is null, or theFieldType is
null.
IllegalArgumentException
- (unchecked exception) Thrown if theFieldName is zero length.
ListFullException
- Thrown if theInterfaceDescription's field list is full
(i.e., contains 65535 fields).public SynthesizedInterfaceFieldDescription(SynthesizedInterfaceDescription theInterfaceDescription, String theFieldName, String theValue) throws ListFullException
theInterfaceDescription
- Interface containing this field.theFieldName
- Field name.theValue
- String constant value.
NullPointerException
- (unchecked exception) Thrown if theInterfaceDescription is
null, theFieldName is null, or theValue is null.
IllegalArgumentException
- (unchecked exception) Thrown if theFieldName is zero length.
ListFullException
- Thrown if the requisite constant pool entries could not be added
because the constant pool is full. Also thrown if
theInterfaceDescription's field list is full (i.e., contains
65535 fields).public SynthesizedInterfaceFieldDescription(SynthesizedInterfaceDescription theInterfaceDescription, String theFieldName, int theValue) throws ListFullException
theInterfaceDescription
- Interface containing this field.theFieldName
- Field name.theValue
- Integer constant value.
NullPointerException
- (unchecked exception) Thrown if theInterfaceDescription is
null or theFieldName is null.
IllegalArgumentException
- (unchecked exception) Thrown if theFieldName is zero length.
ListFullException
- Thrown if the requisite constant pool entries could not be added
because the constant pool is full. Also thrown if
theInterfaceDescription's field list is full (i.e., contains
65535 fields).public SynthesizedInterfaceFieldDescription(SynthesizedInterfaceDescription theInterfaceDescription, String theFieldName, short theValue) throws ListFullException
theInterfaceDescription
- Interface containing this field.theFieldName
- Field name.theValue
- Short constant value.
NullPointerException
- (unchecked exception) Thrown if theInterfaceDescription is
null or theFieldName is null.
IllegalArgumentException
- (unchecked exception) Thrown if theFieldName is zero length.
ListFullException
- Thrown if the requisite constant pool entries could not be added
because the constant pool is full. Also thrown if
theInterfaceDescription's field list is full (i.e., contains
65535 fields).public SynthesizedInterfaceFieldDescription(SynthesizedInterfaceDescription theInterfaceDescription, String theFieldName, char theValue) throws ListFullException
theInterfaceDescription
- Interface containing this field.theFieldName
- Field name.theValue
- Character constant value.
NullPointerException
- (unchecked exception) Thrown if theInterfaceDescription is
null or theFieldName is null.
IllegalArgumentException
- (unchecked exception) Thrown if theFieldName is zero length.
ListFullException
- Thrown if the requisite constant pool entries could not be added
because the constant pool is full. Also thrown if
theInterfaceDescription's field list is full (i.e., contains
65535 fields).public SynthesizedInterfaceFieldDescription(SynthesizedInterfaceDescription theInterfaceDescription, String theFieldName, byte theValue) throws ListFullException
theInterfaceDescription
- Interface containing this field.theFieldName
- Field name.theValue
- Byte constant value.
NullPointerException
- (unchecked exception) Thrown if theInterfaceDescription is
null or theFieldName is null.
IllegalArgumentException
- (unchecked exception) Thrown if theFieldName is zero length.
ListFullException
- Thrown if the requisite constant pool entries could not be added
because the constant pool is full. Also thrown if
theInterfaceDescription's field list is full (i.e., contains
65535 fields).public SynthesizedInterfaceFieldDescription(SynthesizedInterfaceDescription theInterfaceDescription, String theFieldName, boolean theValue) throws ListFullException
theInterfaceDescription
- Interface containing this field.theFieldName
- Field name.theValue
- Boolean constant value.
NullPointerException
- (unchecked exception) Thrown if theInterfaceDescription is
null or theFieldName is null.
IllegalArgumentException
- (unchecked exception) Thrown if theFieldName is zero length.
ListFullException
- Thrown if the requisite constant pool entries could not be added
because the constant pool is full. Also thrown if
theInterfaceDescription's field list is full (i.e., contains
65535 fields).public SynthesizedInterfaceFieldDescription(SynthesizedInterfaceDescription theInterfaceDescription, String theFieldName, float theValue) throws ListFullException
theInterfaceDescription
- Interface containing this field.theFieldName
- Field name.theValue
- Float constant value.
NullPointerException
- (unchecked exception) Thrown if theInterfaceDescription is
null or theFieldName is null.
IllegalArgumentException
- (unchecked exception) Thrown if theFieldName is zero length.
ListFullException
- Thrown if the requisite constant pool entries could not be added
because the constant pool is full. Also thrown if
theInterfaceDescription's field list is full (i.e., contains
65535 fields).public SynthesizedInterfaceFieldDescription(SynthesizedInterfaceDescription theInterfaceDescription, String theFieldName, long theValue) throws ListFullException
theInterfaceDescription
- Interface containing this field.theFieldName
- Field name.theValue
- Long constant value.
NullPointerException
- (unchecked exception) Thrown if theInterfaceDescription is
null or theFieldName is null.
IllegalArgumentException
- (unchecked exception) Thrown if theFieldName is zero length.
ListFullException
- Thrown if the requisite constant pool entries could not be added
because the constant pool is full. Also thrown if
theInterfaceDescription's field list is full (i.e., contains
65535 fields).public SynthesizedInterfaceFieldDescription(SynthesizedInterfaceDescription theInterfaceDescription, String theFieldName, double theValue) throws ListFullException
theInterfaceDescription
- Interface containing this field.theFieldName
- Field name.theValue
- Double constant value.
NullPointerException
- (unchecked exception) Thrown if theInterfaceDescription is
null or theFieldName is null.
IllegalArgumentException
- (unchecked exception) Thrown if theFieldName is zero length.
ListFullException
- Thrown if the requisite constant pool entries could not be added
because the constant pool is full. Also thrown if
theInterfaceDescription's field list is full (i.e., contains
65535 fields).
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |