|
|||||||||
| Home >> All >> com >> chaoswg >> xtc4y >> [ classdesc overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
com.chaoswg.xtc4y.classdesc
Class NameDescriptorInfo

java.lang.Objectcom.chaoswg.xtc4y.classdesc.NameDescriptorInfo
- Direct Known Subclasses:
- FieldInfo, MethodInfo
- public abstract class NameDescriptorInfo
- extends java.lang.Object
This class describes the information for a filed
| Field Summary | |
private AccessFlags |
access
|
private java.util.Vector |
attributes
|
private java.lang.String |
descriptor
|
private java.lang.String |
name
|
| Constructor Summary | |
|
NameDescriptorInfo(AccessFlags access,
java.lang.String name,
java.lang.String descriptor)
Construct a new field with a given the name and the descriptor |
protected |
NameDescriptorInfo(java.io.DataInputStream dis,
ConstantPool cp)
Creates a NameDescriptorInfo and initializes it from a DataInputStream |
| Method Summary | |
void |
addAttribute(AttributeInfo attribute)
Add an attribute to this class |
AccessFlags |
getAccessFlags()
|
protected abstract AccessFlags |
getAccessFlags(short access)
|
AttributeInfo[] |
getAttributes()
|
java.lang.String |
getDescriptor()
|
java.lang.String |
getName()
|
void |
removeAttribute(AttributeInfo attribute)
Remove an attribute from the current class |
void |
setDescriptor(java.lang.String descriptor)
Set the new field descriptor |
void |
setName(java.lang.String name)
Set a new name for this field |
java.lang.String |
toString()
Write in a readable way |
protected void |
write(java.io.DataOutputStream dos,
ConstantPool cp)
Write the constant pool information into a DataOutputStream |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
name
private java.lang.String name
descriptor
private java.lang.String descriptor
attributes
private java.util.Vector attributes
access
private AccessFlags access
| Constructor Detail |
NameDescriptorInfo
protected NameDescriptorInfo(java.io.DataInputStream dis, ConstantPool cp) throws java.io.IOException
- Creates a NameDescriptorInfo and initializes it from a DataInputStream
NameDescriptorInfo
public NameDescriptorInfo(AccessFlags access, java.lang.String name, java.lang.String descriptor)
- Construct a new field with a given the name and the
descriptor
| Method Detail |
getAccessFlags
protected abstract AccessFlags getAccessFlags(short access)
write
protected void write(java.io.DataOutputStream dos, ConstantPool cp) throws java.io.IOException
- Write the constant pool information into a DataOutputStream
getName
public java.lang.String getName()
getDescriptor
public java.lang.String getDescriptor()
setName
public void setName(java.lang.String name)
- Set a new name for this field
setDescriptor
public void setDescriptor(java.lang.String descriptor)
- Set the new field descriptor
addAttribute
public void addAttribute(AttributeInfo attribute)
- Add an attribute to this class
getAttributes
public AttributeInfo[] getAttributes()
removeAttribute
public void removeAttribute(AttributeInfo attribute)
- Remove an attribute from the current class
getAccessFlags
public AccessFlags getAccessFlags()
toString
public java.lang.String toString()
- Write in a readable way
|
|||||||||
| Home >> All >> com >> chaoswg >> xtc4y >> [ classdesc overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
com.chaoswg.xtc4y.classdesc.NameDescriptorInfo