Class FakeRootClass
java.lang.Object
com.ibm.wala.classLoader.SyntheticClass
com.ibm.wala.ipa.callgraph.impl.FakeRootClass
- All Implemented Interfaces:
IClass
,IClassHierarchyDweller
A synthetic class for the fake root method.
-
Constructor Summary
ConstructorDescriptionFakeRootClass
(ClassLoaderReference clr, IClassHierarchy cha) FakeRootClass
(TypeReference typeRef, IClassHierarchy cha) -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
addStaticField
(Atom name, TypeReference fieldType) static final TypeReference
Compute 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.By default, a synthetic class is "loaded" by the primordial loader.Compute the instance fields declared by this class.Finds a field.Finds method matching signature.int
Return the integer that encodes the class's modifiers, as defined by the JVM specificationboolean
boolean
isPublic()
boolean
Does 'this' refer to a reference type? If not, then it refers to a primitive type.Methods inherited from class com.ibm.wala.classLoader.SyntheticClass
equals, getAnnotations, getClassHierarchy, getField, getName, getReference, getSourceFileName, hashCode, isAbstract, isArrayClass, isInterface, isSynthetic
-
Constructor Details
-
FakeRootClass
-
FakeRootClass
-
-
Method Details
-
fakeRootClass
-
getClassLoader
Description copied from class:SyntheticClass
By default, a synthetic class is "loaded" by the primordial loader. Subclasses may override as necessary.- Specified by:
getClassLoader
in interfaceIClass
- Overrides:
getClassLoader
in classSyntheticClass
- Returns:
- the object that represents the defining class loader for this class.
-
addMethod
-
addStaticField
-
getModifiers
Description copied from interface:IClass
Return the integer that encodes the class's modifiers, as defined by the JVM specification- Returns:
- the integer that encodes the class's modifiers, as defined by the JVM specification
- Throws:
UnsupportedOperationException
- See Also:
-
getSuperclass
- Returns:
- the superclass, or null if java.lang.Object
- Throws:
UnsupportedOperationException
- See Also:
-
getAllImplementedInterfaces
- 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.
- Throws:
UnsupportedOperationException
- See Also:
-
getAllAncestorInterfaces
- Throws:
UnsupportedOperationException
- See Also:
-
getMethod
Description copied from interface:IClass
Finds method matching signature. Delegates to superclass if not found.- Parameters:
selector
- a method signature- Returns:
- IMethod from this class matching the signature; null if not found in this class or any superclass.
- Throws:
UnsupportedOperationException
- See Also:
-
getField
-
getClassInitializer
- Returns:
- the method that is this class's initializer, or null if none
- Throws:
UnimplementedError
- See Also:
-
getDeclaredMethods
- Returns:
- an Iterator of the IMethods declared by this class.
- Throws:
UnsupportedOperationException
- See Also:
-
getDeclaredInstanceFields
Description copied from interface:IClass
Compute the instance fields declared by this class.- Returns:
- Collection of IFields
- Throws:
UnsupportedOperationException
- See Also:
-
getDeclaredStaticFields
- Returns:
- Collection of IField
- See Also:
-
isReferenceType
public boolean isReferenceType()Description copied from interface:IClass
Does 'this' refer to a reference type? If not, then it refers to a primitive type.- See Also:
-
getDirectInterfaces
- Returns:
- Collection of (IClass) interfaces this class directly implements. If this class is an interface, returns the interfaces it immediately extends.
- Throws:
UnsupportedOperationException
- See Also:
-
getAllInstanceFields
Description copied from interface:IClass
Compute the instance fields declared by this class or any of its superclasses.- See Also:
-
getAllStaticFields
Description copied from interface:IClass
Compute the static fields declared by this class or any of its superclasses.- See Also:
-
getAllMethods
Description copied from interface:IClass
Compute the methods declared by this class or any of its superclasses.- See Also:
-
getAllFields
Description copied from interface:IClass
Compute the instance and static fields declared by this class or any of its superclasses.- See Also:
-
isPublic
public boolean isPublic()- Returns:
- true iff this class is public
-
isPrivate
public boolean isPrivate()- Returns:
- true iff this class is private
-
getSource
- Specified by:
getSource
in interfaceIClass
- Overrides:
getSource
in classSyntheticClass
- Returns:
- String representing the source file holding this class, or null if not found
-