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
Fields inherited from class com.ibm.wala.cast.loader.AstClass
declaredFields, declaredMethods
Fields inherited from interface com.ibm.wala.shrike.shrikeCT.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
ConstructorDescriptionJavaClass
(String typeName, Collection<TypeName> superTypeNames, CAstSourcePositionMap.Position position, Collection<CAstQualifier> qualifiers, JavaSourceLoaderImpl loader, IClass enclosingClass, Collection<Annotation> annotations) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
addField
(CAstEntity fieldEntity) protected void
addMethod
(CAstEntity methodEntity, IClass owner) 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) get annotations, if anytoString()
Methods inherited from class com.ibm.wala.cast.loader.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:IClass
get annotations, if any -
getClassHierarchy
-
getSuperclass
- Specified by:
getSuperclass
in interfaceIClass
- Specified by:
getSuperclass
in classAstClass
- Returns:
- the superclass, or null if java.lang.Object
-
getDirectInterfaces
- Specified by:
getDirectInterfaces
in interfaceIClass
- Specified by:
getDirectInterfaces
in 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
-