|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.objectweb.jac.ide.TypeRepository
A repository for all the types that are not user-defined classes.
Constructor Summary | |
TypeRepository()
|
Method Summary | |
void |
addEnumeratedType(EnumeratedType type)
|
void |
addExtendedType(ExtendedType type)
|
void |
addExternalClass(Type type)
Add an external class in the repository. |
void |
addPrimitiveType(Type type)
Add a primitive type in the repository. |
boolean |
containsType(Type type)
Tells wether the repository contains a given type |
Type |
getBoolean()
|
Type |
getDouble()
|
Set |
getEnumeratedTypes()
|
Set |
getExtendedTypes()
|
Set |
getExternalClasses()
Get the external classes. |
Type |
getFloat()
|
Type |
getInt()
|
Type |
getLong()
|
Set |
getPrimitiveTypes()
Get all the primitive types. |
Type |
getVoid()
|
void |
removeEnumeratedType(EnumeratedType type)
|
void |
removeExtendedType(ExtendedType type)
|
void |
removeExternalClass(Type type)
Remove an external class from the repository. |
void |
removePrimitievType(Type type)
|
Type |
resolveType(String name)
Resolve a type from its name (use for primitive types only). |
Type |
resolveType(String name,
String path)
Resolve a type from its name and path. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TypeRepository()
Method Detail |
public Type resolveType(String name)
name
- the type name (e.g. int)public Type resolveType(String name, String path)
name
- the type name (e.g. Vector)path
- the type path (e.g. java.util)public Set getPrimitiveTypes()
public void addPrimitiveType(Type type)
type
- the primitive typepublic void removePrimitievType(Type type)
public Type getVoid()
public Type getInt()
public Type getLong()
public Type getBoolean()
public Type getDouble()
public Type getFloat()
public Set getExternalClasses()
public void addExternalClass(Type type)
type
- the external class's typepublic void removeExternalClass(Type type)
type
- the external class's typepublic Set getExtendedTypes()
public void addExtendedType(ExtendedType type)
public void removeExtendedType(ExtendedType type)
public Set getEnumeratedTypes()
public void addEnumeratedType(EnumeratedType type)
public void removeEnumeratedType(EnumeratedType type)
public boolean containsType(Type type)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |