|
|||||||||
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>
testjdt3.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 |
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. |
Fields |
getStructure(java.lang.String fullname)
Get the structure stored in the table. |
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 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. |
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>
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |