Class JavaSourceLoaderImpl
java.lang.Object
com.ibm.wala.classLoader.ClassLoaderImpl
com.ibm.wala.cast.java.loader.JavaSourceLoaderImpl
- All Implemented Interfaces:
IClassLoader
- Direct Known Subclasses:
ECJSourceLoaderImpl
,JDTSourceLoaderImpl
A
ClassLoaderImpl
that processes source file entities in the compile-time classpath.-
Nested Class Summary
Modifier and TypeClassDescriptionprotected class
DOMO representation of an abstract (body-less) method on a Java type that resides in a source fileclass
DOMO representation of a concrete method (which has a body) on a Java type that resides in a source filestatic class
class
WALA representation of a Java class residing in a source fileprotected class
Generic DOMO representation of a method on a Java type that resides in a source fileprotected static class
WALA representation of a field on a Java type that resides in a source file -
Field Summary
Modifier and TypeFieldDescriptionstatic boolean
protected static final JavaSourceLoaderImpl.InstructionFactory
Fields inherited from class com.ibm.wala.classLoader.ClassLoaderImpl
cha, DEBUG_LEVEL, loadedClasses
-
Constructor Summary
ConstructorDescriptionJavaSourceLoaderImpl
(boolean existsCommonSuperClass, ClassLoaderReference loaderRef, IClassLoader parent, IClassHierarchy cha) JavaSourceLoaderImpl
(ClassLoaderReference loaderRef, IClassLoader parent, IClassHierarchy cha) -
Method Summary
Modifier and TypeMethodDescriptionvoid
defineAbstractFunction
(CAstEntity n, IClass owner) void
defineField
(CAstEntity n, IClass owner) void
defineFunction
(CAstEntity n, IClass owner, AbstractCFG<?, ?> cfg, SymbolTable symtab, boolean hasCatchBlock, Map<IBasicBlock<SSAInstruction>, TypeReference[]> caughtTypes, boolean hasMonitorOp, AstTranslator.AstLexicalInformation lexicalInfo, AstMethod.DebuggingInformation debugInfo) defineType
(CAstEntity type, String typeName, CAstEntity owner) protected Collection
<Annotation> protected abstract SourceModuleTranslator
void
Initialize internal data structuresprotected void
loadAllSources
(Set<ModuleEntry> modules) Set up mapping from type name to Module Entrystatic int
mapToInt
(Collection<CAstQualifier> qualifiers) toString()
protected static TypeName
toWALATypeName
(CAstType type) Methods inherited from class com.ibm.wala.classLoader.ClassLoaderImpl
getLanguage, getName, getNumberOfClasses, getNumberOfMethods, getParent, getReference, getSource, getSource, getSourceFileName, getSourceFileName, iterateAllClasses, lookupClass, removeAll
-
Field Details
-
fTypeMap
-
deleteTypeMapAfterInit
public static volatile boolean deleteTypeMapAfterInit -
insts
-
-
Constructor Details
-
JavaSourceLoaderImpl
public JavaSourceLoaderImpl(boolean existsCommonSuperClass, ClassLoaderReference loaderRef, IClassLoader parent, IClassHierarchy cha) -
JavaSourceLoaderImpl
public JavaSourceLoaderImpl(ClassLoaderReference loaderRef, IClassLoader parent, IClassHierarchy cha)
-
-
Method Details
-
getAnnotations
-
mapToInt
-
getClassHierarchy
-
loadAllSources
Description copied from class:ClassLoaderImpl
Set up mapping from type name to Module Entry- Overrides:
loadAllSources
in classClassLoaderImpl
-
getTranslator
-
init
Description copied from class:ClassLoaderImpl
Initialize internal data structures- Specified by:
init
in interfaceIClassLoader
- Overrides:
init
in classClassLoaderImpl
- Throws:
IOException
-
defineFunction
public void defineFunction(CAstEntity n, IClass owner, AbstractCFG<?, ?> cfg, SymbolTable symtab, boolean hasCatchBlock, Map<IBasicBlock<SSAInstruction>, TypeReference[]> caughtTypes, boolean hasMonitorOp, AstTranslator.AstLexicalInformation lexicalInfo, AstMethod.DebuggingInformation debugInfo) -
defineAbstractFunction
-
defineField
-
toWALATypeName
-
defineType
-
toString
- Overrides:
toString
in classClassLoaderImpl
-
getInstructionFactory
- Specified by:
getInstructionFactory
in interfaceIClassLoader
- Overrides:
getInstructionFactory
in classClassLoaderImpl
-