Package editor
Class PackageTypeLoader
java.lang.Object
gw.config.BaseService
gw.lang.reflect.TypeLoaderBase
editor.PackageTypeLoader
- All Implemented Interfaces:
IService
,ITypeLoader
,IPluginHost
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Map<CharSequence,
PackageType> private static final Map<IModule,
PackageTypeLoader> Fields inherited from class gw.lang.reflect.TypeLoaderBase
_module, _typeNames
Fields inherited from interface gw.lang.reflect.ITypeLoader
NO_TYPES
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate void
private PackageType
private PackageType
private PackageType
Set<? extends CharSequence>
Don't call this method unless you really know what you're doing.getIntrinsicTypeByFullName
(String fullyQualifiedName, boolean bSkipVerify) Gets a type based on a fully-qualified name.boolean
boolean
static PackageTypeLoader
instance()
private boolean
packageExists
(String strName) void
refreshedNamespace
(String s, IDirectory iDirectory, RefreshKind refreshKind) Methods inherited from class gw.lang.reflect.TypeLoaderBase
clearTypeNames, deleteIndexFile, getAllTypeNames, getModule, getNamespaceForDirectory, getResource, getTypeNames, getTypeNames, getTypesForFile, handlesDirectory, handlesFile, isCaseSensitive, loadTypeNames, refreshed, refreshedFile, refreshedImpl, refreshedTypes, refreshedTypesImpl, saveTypeNames, shouldCacheTypeNames, showTypeNamesInIDE, shutdown, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface gw.plugin.IPluginHost
getInterface
-
Field Details
-
INSTANCE_BY_MODULE
-
_mapTypeByName
-
-
Constructor Details
-
PackageTypeLoader
private PackageTypeLoader()
-
-
Method Details
-
instance
-
getType
Description copied from interface:ITypeLoader
Gets a type based on a fully-qualified name. This could either be the name of an entity, like "entity.User", the name of a typekey, like "typekey.SystemPermission", or a class name, like "java.lang.String". Names can have [] appended to them to create arrays, and multi-dimensional arrays are supported.ClassNotFoundException
if none of its composite typeloaders can load the type.- Parameters:
fullyQualifiedName
- the fully qualified name of the type- Returns:
- the corresponding IType or null
-
hasNamespace
-
computeTypeNames
-
getIntrinsicTypeByFullName
public IType getIntrinsicTypeByFullName(String fullyQualifiedName, boolean bSkipVerify) throws ClassNotFoundException - Throws:
ClassNotFoundException
-
getAllNamespaces
Description copied from interface:ITypeLoader
Don't call this method unless you really know what you're doing.- Returns:
- the set of package (aka namespace) names in which this loader's types reside.
-
clearCaches
private void clearCaches() -
getHandledPrefixes
-
handlesNonPrefixLoads
public boolean handlesNonPrefixLoads() -
refreshedNamespace
-
get
-
get
-
define
-
packageExists
-