Class ECJSourceLoaderImpl
java.lang.Object
com.ibm.wala.classLoader.ClassLoaderImpl
com.ibm.wala.cast.java.loader.JavaSourceLoaderImpl
com.ibm.wala.cast.java.translator.jdt.ecj.ECJSourceLoaderImpl
- All Implemented Interfaces:
IClassLoader
-
Nested Class Summary
Nested classes/interfaces inherited from class JavaSourceLoaderImpl
JavaSourceLoaderImpl.AbstractJavaMethod, JavaSourceLoaderImpl.ConcreteJavaMethod, JavaSourceLoaderImpl.InstructionFactory, JavaSourceLoaderImpl.JavaClass, JavaSourceLoaderImpl.JavaEntityMethod, JavaSourceLoaderImpl.JavaFieldModifier and TypeClassDescriptionprotected classDOMO representation of an abstract (body-less) method on a Java type that resides in a source fileclassDOMO representation of a concrete method (which has a body) on a Java type that resides in a source filestatic classclassWALA representation of a Java class residing in a source fileprotected classGeneric DOMO representation of a method on a Java type that resides in a source fileprotected static classWALA representation of a field on a Java type that resides in a source file -
Field Summary
FieldsFields inherited from class JavaSourceLoaderImpl
deleteTypeMapAfterInit, fTypeMap, instsModifier and TypeFieldDescriptionstatic booleanprotected static final JavaSourceLoaderImpl.InstructionFactoryFields inherited from class ClassLoaderImpl
cha, DEBUG_LEVEL, loadedClassesModifier and TypeFieldDescriptionprotected final IClassHierarchyGoverning class hierarchystatic final intA mapping from class name (TypeName) to IClass -
Constructor Summary
ConstructorsConstructorDescriptionECJSourceLoaderImpl(ClassLoaderReference loaderRef, IClassLoader parent, IClassHierarchy cha) ECJSourceLoaderImpl(ClassLoaderReference loaderRef, IClassLoader parent, IClassHierarchy cha, boolean dump) -
Method Summary
Methods inherited from class JavaSourceLoaderImpl
defineAbstractFunction, defineField, defineFunction, defineType, getAnnotations, getClassHierarchy, getInstructionFactory, init, loadAllSources, mapToInt, toString, toWALATypeNameModifier and TypeMethodDescriptionvoiddefineAbstractFunction(CAstEntity n, IClass owner) voiddefineField(CAstEntity n, IClass owner) voiddefineFunction(CAstEntity n, IClass owner, AbstractCFG<?, ?> cfg, SymbolTable symtab, boolean hasCatchBlock, Map<IBasicBlock<SSAInstruction>, Set<TypeReference>> caughtTypes, boolean hasMonitorOp, AstTranslator.AstLexicalInformation lexicalInfo, AstMethod.DebuggingInformation debugInfo) defineType(CAstEntity type, String typeName, CAstEntity owner) protected Collection<Annotation> voidInitialize internal data structuresprotected voidloadAllSources(Set<ModuleEntry> modules) Set up mapping from type name to Module Entrystatic intmapToInt(Collection<CAstQualifier> qualifiers) toString()protected static TypeNametoWALATypeName(CAstType type) Methods inherited from class ClassLoaderImpl
getLanguage, getName, getNumberOfClasses, getNumberOfMethods, getParent, getReference, getSource, getSource, getSourceFileName, getSourceFileName, iterateAllClasses, lookupClass, removeAllModifier and TypeMethodDescriptiongetName()intintMethod getParent.Return the ClassLoaderReference for this class loader.getSourceFileName(IClass klass) getSourceFileName(IMethod method, int offset) lookupClass(TypeName className) Find and return the IClass defined by this class loader that corresponds to the given class name.voidremoveAll(Collection<IClass> toRemove) blow away references to any classes in the set
-
Field Details
-
dump
protected final boolean dump
-
-
Constructor Details
-
ECJSourceLoaderImpl
public ECJSourceLoaderImpl(ClassLoaderReference loaderRef, IClassLoader parent, IClassHierarchy cha) -
ECJSourceLoaderImpl
public ECJSourceLoaderImpl(ClassLoaderReference loaderRef, IClassLoader parent, IClassHierarchy cha, boolean dump)
-
-
Method Details
-
getTranslator
- Specified by:
getTranslatorin classJavaSourceLoaderImpl
-