public interface ITypeUsesMap extends Serializable
| Modifier and Type | Method and Description |
|---|---|
void |
addToDefaultTypeUses(String strQualifiedType)
Add the specified type to the set of default types.
|
void |
addToSpecialTypeUses(String strType) |
void |
addToTypeUses(IUsesStatement usesStmt)
Adds a type to the current set of types.
|
void |
addToTypeUses(String strType)
Adds a type to the current set of types.
|
void |
clearNonDefaultTypeUses()
Clears all types not in the default set of types;
|
boolean |
containsType(String qualifiedName) |
ITypeUsesMap |
copy()
Returns a shallow copy of this map.
|
ITypeUsesMap |
copyLocalScope()
Copies the type uses map but alias the global map from this.
|
Set<String> |
getNamespaces()
Returns the set of strings representing the namespaces that are currently
used by this parser.
|
Set<String> |
getTypeUses()
Returns the set of strings representing the types that are currently
used by this parser.
|
Set<IUsesStatement> |
getUsesStatements()
Return the set of uses-statements that participate in this map.
|
boolean |
isSupportRelativePackageResolution() |
ITypeUsesMap |
lock()
Locks this ITypeUsesMap so that it cannot be mutated in the future
|
INamespaceType |
resolveRelativeNamespaceInAllNamespaces(String strRelativeName) |
IType |
resolveType(String strRelativeName)
Resolve the type of a relative name via the type uses.
|
void |
setSupportRelativePackageResolution(boolean bSupportRelativePackageResolution) |
Set<String> getTypeUses()
Set<String> getNamespaces()
void addToTypeUses(String strType)
void addToTypeUses(IUsesStatement usesStmt)
Set<IUsesStatement> getUsesStatements()
void addToDefaultTypeUses(String strQualifiedType)
IType resolveType(String strRelativeName)
INamespaceType resolveRelativeNamespaceInAllNamespaces(String strRelativeName)
strRelativeName - A relative path name. E.g., "lang" is a relative package name of "java.lang"void clearNonDefaultTypeUses()
ITypeUsesMap copy()
ITypeUsesMap copyLocalScope()
ITypeUsesMap lock()
boolean containsType(String qualifiedName)
void addToSpecialTypeUses(String strType)
boolean isSupportRelativePackageResolution()
void setSupportRelativePackageResolution(boolean bSupportRelativePackageResolution)
Copyright © 2016. All rights reserved.