public class field
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
stringobj |
classname
The string object representing the class name.
|
private boolean |
isInnerClassReference |
java.lang.String |
name
The name of the field.
|
fieldtype |
type
The type of the field.
|
Constructor and Description |
---|
field(fieldtype type,
java.lang.String name)
Constructor for simple fields.
|
field(fieldtype type,
java.lang.String name,
stringobj classname)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getJavaType()
Get a string representing the type for this field in Java (the language)
format.
|
boolean |
isInnerClassReference()
Tells whether or not this class is an inner class reference.
|
void |
setIsInnerClassReference(boolean nis)
Sets the flag that denotes whether this class is an inner class reference.
|
void |
setReferenceTypeName(java.lang.String newname)
Changes the name of an object reference to the name specified.
|
void |
validate(java.lang.String jt) |
public fieldtype type
public java.lang.String name
public stringobj classname
private boolean isInnerClassReference
public field(fieldtype type, java.lang.String name, stringobj classname) throws ValidityException
type
- the field typename
- the field nameclassname
- the class nameValidityException
public field(fieldtype type, java.lang.String name) throws ValidityException
type
- the field typename
- the field nameValidityException
public boolean isInnerClassReference()
public void setIsInnerClassReference(boolean nis)
nis
- the value to set; true iff the class is an inner class reference.public java.lang.String getJavaType() throws java.io.IOException
java.io.IOException
- if a validity or I/O error occurspublic void setReferenceTypeName(java.lang.String newname) throws ValidityException
newname
- the fully-qualified classValidityException
- if the field isn't a reference type, or another
validity error occurspublic void validate(java.lang.String jt) throws ValidityException
ValidityException