Class LanguageImpl
java.lang.Object
com.ibm.wala.classLoader.LanguageImpl
- All Implemented Interfaces:
Language
- Direct Known Subclasses:
JavaLanguage
-
Field Summary
Fields inherited from interface Language
JAVAModifier and TypeFieldDescriptionstatic final JavaLanguageThe canonicalLanguageimplementation for Java -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanIf this language is "derived" from some other langauge, which one?inthashCode()makeInducedCFG(SSAInstruction[] instructions, IMethod method, Context context) booleanvoidYuck? Languages are mutable?toString()Methods inherited from interface Language
getArrayInterfaces, getConstantType, getFakeRootMethod, getMetadataToken, getName, getPointerType, getPrimitive, getRootType, getStringType, getThrowableType, inferInvokeExceptions, instructionFactory, isBooleanType, isCharType, isDoubleType, isFloatType, isIntType, isLongType, isMetadataType, isNullType, isStringType, isVoidType, lookupPrimitiveType, makeModVisitor, makeRefVisitor, methodsHaveDeclaredParameterTypesModifier and TypeMethodDescriptionget the interfaces implemented by all arrays in the languageGiven a Java constant o, return the appropriate language type to associate with the constant.getFakeRootMethod(IClassHierarchy cha, AnalysisOptions options, IAnalysisCacheView cache) getMetadataToken(Object value) Get the representation of the meta-data corresponding to value.getName()What is the name of the language?getPointerType(TypeReference pointee) getPrimitive(TypeReference reference) get the abstraction of a primitive type to be used for type inferenceWhat is the root type in a type hierarchy for this language? e.g.What is the root type of exceptions in this language? e.g.inferInvokeExceptions(MethodReference target, IClassHierarchy cha) determine the set of possible exception types a call to target may throwbooleanbooleanbooleanbooleanbooleanbooleanbooleanIs t a "metadata" type for the language, i.e., a type describing some other type (e.g., java.lang.Class for Java)?booleanIs t the type of the language's null value? Should return true ift == null(?).booleanbooleanlookupPrimitiveType(String name) Given a source-level primitive type name, get the corresponding "low-level" type name, e.g., the corresponding character to use in a Java method descriptor<T extends InstanceKey>
ModRef.ModVisitor<T, ? extends ExtendedHeapModel> makeModVisitor(CGNode n, Collection<PointerKey> result, PointerAnalysis<T> pa, ExtendedHeapModel h, boolean ignoreAllocHeapDefs) <T extends InstanceKey>
ModRef.RefVisitor<T, ? extends ExtendedHeapModel> makeRefVisitor(CGNode n, Collection<PointerKey> result, PointerAnalysis<T> pa, ExtendedHeapModel h) booleando MethodReference objects have declared parameter types?
-
Constructor Details
-
LanguageImpl
public LanguageImpl() -
LanguageImpl
-
-
Method Details
-
getBaseLanguage
Description copied from interface:LanguageIf this language is "derived" from some other langauge, which one?- Specified by:
getBaseLanguagein interfaceLanguage
-
getDerivedLanguages
- Specified by:
getDerivedLanguagesin interfaceLanguage
-
registerDerivedLanguage
Description copied from interface:LanguageYuck? Languages are mutable?- Specified by:
registerDerivedLanguagein interfaceLanguage
-
hashCode
-
equals
-
toString
-
makeInducedCFG
- Specified by:
makeInducedCFGin interfaceLanguage
-
modelConstant
- Specified by:
modelConstantin interfaceLanguage
-