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, declaredMethodsModifier and TypeFieldDescriptionFields 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_putStaticModifier and TypeFieldDescriptionstatic final shortstatic final shortstatic final shortstatic final shortstatic final shortstatic final shortstatic final shortstatic final shortstatic final shortstatic final shortstatic final shortstatic final shortstatic final shortstatic final bytestatic final bytestatic final bytestatic final bytestatic final bytestatic final bytestatic final bytestatic final bytestatic final bytestatic final bytestatic final bytestatic final bytestatic final bytestatic final bytestatic final bytestatic final bytestatic final intstatic final bytestatic final bytestatic final bytestatic final bytestatic final bytestatic final bytestatic final bytestatic final bytestatic final byte -
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>, Set<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, isSyntheticModifier and TypeMethodDescriptionCompute the instance and static fields declared by this class or any of its superclasses.Compute the instance fields declared by this class or any of its superclasses.Collection<? extends IMethod> Compute the methods declared by this class or any of its superclasses.Compute the static fields declared by this class or any of its superclasses.Return the object that represents the defining class loader for this class.Compute the instance fields declared by this class.Collection<? extends IMethod> Finds a field.Finds a field, given a name and a type.Finds method matching signature.intReturn the integer that encodes the class's modifiers, as defined by the JVM specificationgetName()booleanbooleanbooleanIs this class a Java interface?booleanbooleanisPublic()booleanDoes 'this' refer to a reference type? If not, then it refers to a primitive type.boolean
-
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>, Set<TypeReference>> caughtTypes, boolean hasMonitorOp, AstTranslator.AstLexicalInformation lexicalInfo, AstMethod.DebuggingInformation debugInfo) -
addMethod
-
addField
-
getEnclosingClass
-
toString
-