public class GosuClassTypeLoader extends SimpleTypeLoader
| Modifier and Type | Field and Description |
|---|---|
protected Set<String> |
_namespaces |
static String[] |
ALL_EXTS |
static Set<String> |
ALL_EXTS_SET |
static String |
BLOCK_POSTFIX |
static String |
BLOCK_PREFIX |
static Set<String> |
EXTENSIONS |
static String |
GOSU_CLASS_FILE_EXT |
static String |
GOSU_ENHANCEMENT_FILE_EXT |
static String |
GOSU_PROGRAM_FILE_EXT |
static String |
GOSU_RULE_EXT |
static String |
GOSU_RULE_SET_EXT |
static String |
GOSU_TEMPLATE_FILE_EXT |
static String |
INNER_BLOCK_PREFIX |
_module, _typeNamesNO_TYPES| Constructor and Description |
|---|
GosuClassTypeLoader(IGosuClassRepository repository) |
GosuClassTypeLoader(IModule module,
IGosuClassRepository repository) |
getNamespaceForDirectory, getTypesForFile, handlesDirectory, handlesFile, refreshedFileclearTypeNames, deleteIndexFile, getAllTypeNames, getModule, getTypeNames, loadTypeNames, refreshed, refreshedTypes, saveTypeNames, shouldCacheTypeNames, showTypeNamesInIDE, shutdown, toStringpublic static final String GOSU_CLASS_FILE_EXT
public static final String GOSU_ENHANCEMENT_FILE_EXT
public static final String GOSU_PROGRAM_FILE_EXT
public static final String GOSU_TEMPLATE_FILE_EXT
public static final String GOSU_RULE_EXT
public static final String GOSU_RULE_SET_EXT
public static final String[] ALL_EXTS
public static final String BLOCK_PREFIX
public static final String INNER_BLOCK_PREFIX
public static final String BLOCK_POSTFIX
public GosuClassTypeLoader(IGosuClassRepository repository)
public GosuClassTypeLoader(IModule module, IGosuClassRepository repository)
public static GosuClassTypeLoader getDefaultClassLoader()
public static GosuClassTypeLoader getDefaultClassLoader(IModule module)
public IGosuClassRepository getRepository()
public IEnhancementIndex getEnhancementIndex()
public boolean isCaseSensitive()
isCaseSensitive in interface ITypeLoaderisCaseSensitive in class TypeLoaderBasepublic ICompilableType getType(String strFullyQualifiedName)
ITypeLoaderIf the type can be successfully resolved by the typeloader, it will be returned, otherwise it will return null. The sole exception to this rule is the top-level TypeLoaderAccess, which will throw a
ClassNotFoundException if none of its composite typeloaders can load the type.There is a global lock in TypeLoaderAccess that is acquired when this method is called. Basically one type at a time can be loaded from the system. This method is free to release that lock during this call. This is needed to deal with reentrant type loaders. It is the responsibility of this method to make sure the lock is reacquired before this method returns. Type loader access will guarentee that no duplicate types are put into the type loader.
strFullyQualifiedName - the fully qualified name of the typepublic Set<String> getAllNamespaces()
ITypeLoaderpublic void refreshedNamespace(String namespace, IDirectory dir, RefreshKind kind)
public URL getResource(String name)
ITypeLoaderThe name of a resource is a '/'-separated path name that identifies the resource.
getResource in interface ITypeLoadergetResource in class TypeLoaderBasename - The resource namepublic void refreshedImpl()
refreshedImpl in class TypeLoaderBasepublic boolean handlesNonPrefixLoads()
public IGosuClass makeNewClass(ISourceFileHandle sourceFile)
public IGosuClass makeNewClass(ISourceFileHandle sourceFile, ISymbolTable programSymTable)
protected boolean isValidSourceFileHandle(ISourceFileHandle sourceFile)
protected String[] getAllExtensions()
protected ITypeUsesMap getTypeUsesMap()
public void refreshedTypesImpl(RefreshRequest request)
refreshedTypesImpl in class TypeLoaderBasepublic boolean shouldKeepDebugInfo(IGosuClass gsClass)
public Set<String> getExtensions()
getExtensions in class SimpleTypeLoaderpublic Set<TypeName> getTypeNames(String namespace)
getTypeNames in interface ITypeLoadergetTypeNames in class TypeLoaderBasepublic boolean hasNamespace(String namespace)
Copyright © 2022. All rights reserved.