Class AstFunctionClass
java.lang.Object
com.ibm.wala.cast.loader.AstFunctionClass
- All Implemented Interfaces:
IClass, IClassHierarchyDweller, ClassConstants
- Direct Known Subclasses:
CAstAbstractModuleLoader.DynamicCodeBody
-
Field Summary
FieldsFields 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
ConstructorsModifierConstructorDescriptionprotectedAstFunctionClass(TypeReference reference, IClassLoader loader, CAstSourcePositionMap.Position sourcePosition) protectedAstFunctionClass(TypeReference reference, TypeReference superReference, IClassLoader loader, CAstSourcePositionMap.Position sourcePosition) -
Method Summary
Modifier 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.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.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.booleanisStatic()booleantoString()Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface IClass
getAnnotationsMethods inherited from interface IClassHierarchyDweller
getClassHierarchy
-
Field Details
-
functionBody
-
-
Constructor Details
-
AstFunctionClass
protected AstFunctionClass(TypeReference reference, TypeReference superReference, IClassLoader loader, CAstSourcePositionMap.Position sourcePosition) -
AstFunctionClass
protected AstFunctionClass(TypeReference reference, IClassLoader loader, CAstSourcePositionMap.Position sourcePosition)
-
-
Method Details
-
toString
-
getClassLoader
Description copied from interface:IClassReturn the object that represents the defining class loader for this class.- Specified by:
getClassLoaderin interfaceIClass- Returns:
- the object that represents the defining class loader for this class.
-
isInterface
public boolean isInterface()Description copied from interface:IClassIs this class a Java interface?- Specified by:
isInterfacein interfaceIClass
-
isAbstract
public boolean isAbstract()- Specified by:
isAbstractin interfaceIClass- Returns:
- true iff this class is abstract
-
isPublic
-
isPrivate
-
isStatic
public boolean isStatic() -
isSynthetic
public boolean isSynthetic()- Specified by:
isSyntheticin interfaceIClass- Returns:
- true iff this class is synthetic, i.e., compiler-generated
-
getModifiers
public int getModifiers()Description copied from interface:IClassReturn the integer that encodes the class's modifiers, as defined by the JVM specification- Specified by:
getModifiersin interfaceIClass- Returns:
- the integer that encodes the class's modifiers, as defined by the JVM specification
-
getSuperclass
- Specified by:
getSuperclassin interfaceIClass- Returns:
- the superclass, or null if java.lang.Object
-
getDirectInterfaces
- Specified by:
getDirectInterfacesin interfaceIClass- Returns:
- Collection of (IClass) interfaces this class directly implements. If this class is an interface, returns the interfaces it immediately extends.
-
getAllImplementedInterfaces
- Specified by:
getAllImplementedInterfacesin interfaceIClass- Returns:
- Collection of (IClass) interfaces this class implements, including all ancestors of interfaces immediately implemented. If this class is an interface, it returns all super-interfaces.
-
getAllAncestorInterfaces
-
getMethod
Description copied from interface:IClassFinds method matching signature. Delegates to superclass if not found. -
getField
-
getField
-
getReference
- Specified by:
getReferencein interfaceIClass- Returns:
- canonical TypeReference corresponding to this class
-
getSourcePosition
-
getSourceURL
-
getSourceFileName
- Specified by:
getSourceFileNamein interfaceIClass- Returns:
- String holding the name of the source file that defined this class, or null if none found
-
getSource
-
getClassInitializer
- Specified by:
getClassInitializerin interfaceIClass- Returns:
- the method that is this class's initializer, or null if none
-
isArrayClass
public boolean isArrayClass()- Specified by:
isArrayClassin interfaceIClass- Returns:
- true iff the class is an array class.
-
getDeclaredMethods
- Specified by:
getDeclaredMethodsin interfaceIClass- Returns:
- an Iterator of the IMethods declared by this class.
-
getDeclaredInstanceFields
Description copied from interface:IClassCompute the instance fields declared by this class.- Specified by:
getDeclaredInstanceFieldsin interfaceIClass- Returns:
- Collection of IFields
-
getDeclaredStaticFields
- Specified by:
getDeclaredStaticFieldsin interfaceIClass- Returns:
- Collection of IField
-
getAllInstanceFields
Description copied from interface:IClassCompute the instance fields declared by this class or any of its superclasses.- Specified by:
getAllInstanceFieldsin interfaceIClass
-
getAllStaticFields
Description copied from interface:IClassCompute the static fields declared by this class or any of its superclasses.- Specified by:
getAllStaticFieldsin interfaceIClass
-
getAllFields
Description copied from interface:IClassCompute the instance and static fields declared by this class or any of its superclasses.- Specified by:
getAllFieldsin interfaceIClass
-
getAllMethods
Description copied from interface:IClassCompute the methods declared by this class or any of its superclasses.- Specified by:
getAllMethodsin interfaceIClass
-
getName
-
isReferenceType
public boolean isReferenceType()Description copied from interface:IClassDoes 'this' refer to a reference type? If not, then it refers to a primitive type.- Specified by:
isReferenceTypein interfaceIClass
-
getCodeBody
-