|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jdo.impl.jdoql.scope.TypeNames
The table handling type names.
TBD:
Field Summary | |
protected java.lang.String |
currentPackage
The package of the class of the current compilation unit. |
protected java.util.Set |
importOnDemands
Collection of type-imports-on-demand. |
protected java.util.Map |
imports
Map of single-type-imports. |
protected TypeSupport |
typeSupport
The corresponding type table. |
Constructor Summary | |
TypeNames(TypeSupport typeSupport)
Creates a new TypeNames instance. |
Method Summary | |
java.lang.String |
declareImport(java.lang.String typeName)
Defines a single-type-import. |
void |
declareImportOnDemand(java.lang.String packageName)
Defines a type-import-on-demand. |
void |
init(java.lang.String compilationUnit)
This method initializes the TypeNames table. |
org.apache.jdo.model.java.JavaType |
resolve(java.lang.String name)
Resolves a type name. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected TypeSupport typeSupport
protected java.util.Map imports
protected java.util.Set importOnDemands
protected java.lang.String currentPackage
Constructor Detail |
public TypeNames(TypeSupport typeSupport)
Method Detail |
public void init(java.lang.String compilationUnit)
public java.lang.String declareImport(java.lang.String typeName)
typeName
- the fully qualified name of the type to be imported.public void declareImportOnDemand(java.lang.String packageName)
packageName
- the package name to be imported.public org.apache.jdo.model.java.JavaType resolve(java.lang.String name)
name
- a type name
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |