|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.AbstractMap<K,V>
java.util.HashMap<java.lang.String,Information>
emn.fr.ascola.extractor.TypesTable
public class TypesTable
Table for storing informations about the types.
| Constructor Summary | |
|---|---|
TypesTable(java.util.Vector<org.eclipse.jdt.core.IType> vt)
Constructor. |
|
| Method Summary | |
|---|---|
void |
addType(java.lang.String fn,
Information it)
Add a new entry and its information. |
java.util.Vector<java.lang.String> |
checkCycle()
Compute the component type which have a cyclic structure. |
java.util.Vector<java.lang.String> |
checkPublicFields()
Compute the list of component which have a public fields TODO check it here not an interface ! |
java.util.Vector<java.lang.String> |
findCycle(java.lang.String node,
java.util.Vector<java.lang.String> history)
Recursive function to find cyclic component type. |
int |
getComponentNumber()
Compute the number of component type. |
java.util.Vector<java.lang.String> |
getCycles()
Compute the list of component type which have a cycle structure. |
int |
getDatatypeNumber()
Compute the number of data type. |
Fields |
getStructure(java.lang.String fullname)
Get the structure stored in the table. |
java.util.Vector<java.lang.String> |
getUndefined()
Compute the list of undefined types. |
boolean |
hasFields(java.lang.String fn)
Test fields existence. |
boolean |
inheritsFromData(java.lang.String sub,
java.lang.String sup)
test if sub inherits directly or not from sup IF sup is external we consider it is true |
boolean |
isDataType(java.lang.String fn)
Check if it is flagged as a data type. |
boolean |
isOfInterest(java.lang.String fn)
Check the existence of such a type. |
boolean |
isResolved(java.lang.String fn)
Check if the type name is resolved Require this.isOfInterest() |
void |
propagateDATA()
For each entry flagged DATA then direct subclasses are also flagged as DATA. |
void |
setComponentType(java.lang.String bn)
Set that name is a component type. |
void |
setDataType(java.lang.String bn)
Set that name is a data type. |
void |
setRoot(java.lang.String bn)
Set as THE root name. |
void |
setType(java.lang.String bn)
Setting default null information. |
void |
setType(java.lang.String bn,
MyIType it)
Set the information type for a name. |
void |
setUndefinedInterfaces()
Set the undefined interfaces to component types. |
java.lang.String |
toString()
String description. |
| Methods inherited from class java.util.HashMap |
|---|
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values |
| Methods inherited from class java.util.AbstractMap |
|---|
equals, hashCode |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.Map |
|---|
equals, hashCode |
| Constructor Detail |
|---|
public TypesTable(java.util.Vector<org.eclipse.jdt.core.IType> vt)
vt - | Method Detail |
|---|
public boolean isOfInterest(java.lang.String fn)
fn -
public boolean isDataType(java.lang.String fn)
fn -
public boolean isResolved(java.lang.String fn)
fn -
public boolean hasFields(java.lang.String fn)
fn -
public void setDataType(java.lang.String bn)
bn - binary namepublic void setComponentType(java.lang.String bn)
bn - binary namepublic void setRoot(java.lang.String bn)
bn -
public void addType(java.lang.String fn,
Information it)
fn - it -
public void setType(java.lang.String bn,
MyIType it)
bn - it -
public boolean inheritsFromData(java.lang.String sub,
java.lang.String sup)
sub - full name of type in the tablesup - full name of any type
public void propagateDATA()
public java.util.Vector<java.lang.String> checkPublicFields()
public java.util.Vector<java.lang.String> checkCycle()
public java.util.Vector<java.lang.String> findCycle(java.lang.String node,
java.util.Vector<java.lang.String> history)
node - history -
public void setType(java.lang.String bn)
bn - public Fields getStructure(java.lang.String fullname)
fullname -
public java.lang.String toString()
toString in class java.util.AbstractMap<java.lang.String,Information>public int getComponentNumber()
public int getDatatypeNumber()
public java.util.Vector<java.lang.String> getCycles()
public java.util.Vector<java.lang.String> getUndefined()
public void setUndefinedInterfaces()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||