Class JavaSourceLoaderImpl.JavaClass
java.lang.Object
com.ibm.wala.cast.loader.AstClass
com.ibm.wala.cast.java.loader.JavaSourceLoaderImpl.JavaClass
- All Implemented Interfaces:
IClass, IClassHierarchyDweller, ClassConstants
- Enclosing class:
JavaSourceLoaderImpl
WALA representation of a Java class residing in a source file
- Author:
- rfuhrer
-
Field Summary
FieldsFields inherited from class AstClass
declaredFields, declaredMethodsFields inherited from interface ClassConstants
ACC_ABSTRACT, ACC_FINAL, ACC_INTERFACE, ACC_NATIVE, ACC_PRIVATE, ACC_PROTECTED, ACC_PUBLIC, ACC_STATIC, ACC_STRICT, ACC_SUPER, ACC_SYNCHRONIZED, ACC_TRANSIENT, ACC_VOLATILE, CONSTANT_Class, CONSTANT_Double, CONSTANT_FieldRef, CONSTANT_Float, CONSTANT_Integer, CONSTANT_InterfaceMethodRef, CONSTANT_InvokeDynamic, CONSTANT_Long, CONSTANT_MethodHandle, CONSTANT_MethodRef, CONSTANT_MethodType, CONSTANT_Module, CONSTANT_NameAndType, CONSTANT_Package, CONSTANT_String, CONSTANT_Utf8, MAGIC, REF_getField, REF_getStatic, REF_invokeInterface, REF_invokeSpecial, REF_invokeStatic, REF_invokeVirtual, REF_newInvokeSpecial, REF_putField, REF_putStatic -
Constructor Summary
ConstructorsConstructorDescriptionJavaClass(String typeName, Collection<TypeName> superTypeNames, CAstSourcePositionMap.Position position, Collection<CAstQualifier> qualifiers, JavaSourceLoaderImpl loader, IClass enclosingClass, Collection<Annotation> annotations) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddField(CAstEntity fieldEntity) protected voidaddMethod(CAstEntity methodEntity, IClass owner) protected voidaddMethod(CAstEntity methodEntity, IClass owner, AbstractCFG<?, ?> cfg, SymbolTable symtab, boolean hasCatchBlock, Map<IBasicBlock<SSAInstruction>, TypeReference[]> caughtTypes, boolean hasMonitorOp, AstTranslator.AstLexicalInformation lexicalInfo, AstMethod.DebuggingInformation debugInfo) get annotations, if anytoString()Methods inherited from class AstClass
getAllFields, getAllImplementedInterfaces, getAllInstanceFields, getAllMethods, getAllStaticFields, getClassInitializer, getClassLoader, getDeclaredInstanceFields, getDeclaredMethods, getDeclaredStaticFields, getField, getField, getMethod, getModifiers, getName, getReference, getSource, getSourceFileName, getSourcePosition, getSourceURL, isAbstract, isArrayClass, isInterface, isPrivate, isPublic, isReferenceType, isSynthetic
-
Field Details
-
enclosingClass
-
superTypeNames
-
-
Constructor Details
-
JavaClass
public JavaClass(String typeName, Collection<TypeName> superTypeNames, CAstSourcePositionMap.Position position, Collection<CAstQualifier> qualifiers, JavaSourceLoaderImpl loader, IClass enclosingClass, Collection<Annotation> annotations)
-
-
Method Details
-
getAnnotations
Description copied from interface:IClassget annotations, if any -
getClassHierarchy
-
getSuperclass
- Specified by:
getSuperclassin interfaceIClass- Specified by:
getSuperclassin classAstClass- Returns:
- the superclass, or null if java.lang.Object
-
getDirectInterfaces
- Specified by:
getDirectInterfacesin interfaceIClass- Specified by:
getDirectInterfacesin classAstClass- Returns:
- Collection of (IClass) interfaces this class directly implements. If this class is an interface, returns the interfaces it immediately extends.
-
addMethod
protected void addMethod(CAstEntity methodEntity, IClass owner, AbstractCFG<?, ?> cfg, SymbolTable symtab, boolean hasCatchBlock, Map<IBasicBlock<SSAInstruction>, TypeReference[]> caughtTypes, boolean hasMonitorOp, AstTranslator.AstLexicalInformation lexicalInfo, AstMethod.DebuggingInformation debugInfo) -
addMethod
-
addField
-
getEnclosingClass
-
toString
-