|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface DisconnectedField
This interface represents the set of information needed to fully describe a Java class' field. A
DisconnectedField is used to "extract" a field definition from a Java class in
order to inject it into another Java class, modifying the receiving class behaviour.
| Method Summary | |
|---|---|
void |
addAttribute(Attribute attr)
This method allows adding a class-level attribute to this disconnected structure. |
void |
addField(FieldInfoStructure fi)
Adds a new FiledInfoStructure to the set of fields. |
void |
addInnerClass(java.lang.String fqn,
Dna innerDna)
This method adds a new inner Dna to the disconnected data-structure. |
AttributesTable |
getAttributes()
Returns the whole list of added attributes by reference, or null. |
ConstantPoolTable |
getConstantPoolTable()
Gets the ConstantPoolTable instance containing all the cp_infos
required by both the fields stored in the current DisconnectedField instance. |
FieldsTable |
getFields()
Gets the FieldsTable instance containing all the extracted fields. |
java.util.HashMap<java.lang.String,Dna> |
getInnerClasses()
Returns the map of inner Dnas indexed by their fully qualified class names. |
java.lang.String |
getSrcClassFqn()
This method returns the FQN of the Java class this structure belonged to. |
void |
setConstantPoolTable(ConstantPoolTable cpt)
Sets the ConstantPoolTable instance containing all the cp_infos
required by both the fields stored in the current DisconnectedField instance. |
void |
setFields(FieldsTable ft)
Sets the FieldsTable instance containing all the extracted fields. |
void |
setSrcClassFqn(java.lang.String fqn)
This method sets the FQN of the Java class this structure belonged to. |
| Method Detail |
|---|
void setConstantPoolTable(ConstantPoolTable cpt)
ConstantPoolTable instance containing all the cp_infos
required by both the fields stored in the current DisconnectedField instance.
cpt - The ConstantPoolTable instanceConstantPoolTable getConstantPoolTable()
ConstantPoolTable instance containing all the cp_infos
required by both the fields stored in the current DisconnectedField instance.
ConstantPoolTable instancevoid setFields(FieldsTable ft)
FieldsTable instance containing all the extracted fields.
ft - The FieldsTable instanceFieldsTable getFields()
FieldsTable instance containing all the extracted fields.
DisconnectedMethod instance.
FieldsTable instance
void addField(FieldInfoStructure fi)
throws InstantiatorException
FiledInfoStructure to the set of fields.
fi - The FiledInfoStructure
InstantiatorExceptionvoid setSrcClassFqn(java.lang.String fqn)
fqn - The source Java class FQNjava.lang.String getSrcClassFqn()
void addAttribute(Attribute attr)
throws InstantiatorException
attr - The attribute to add
InstantiatorExceptionAttributesTable getAttributes()
null.
null
void addInnerClass(java.lang.String fqn,
Dna innerDna)
fqn - innerDna - java.util.HashMap<java.lang.String,Dna> getInnerClasses()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||