Class BypassSyntheticClass
java.lang.Object
com.ibm.wala.classLoader.SyntheticClass
com.ibm.wala.ipa.summaries.BypassSyntheticClass
-
Constructor Summary
ConstructorDescriptionBypassSyntheticClass
(IClass realType, IClassLoader loader, IClassHierarchy cha) -
Method Summary
Modifier and TypeMethodDescriptionboolean
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.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.get annotations, if anyBy default, a synthetic class is "loaded" by the primordial loader.Compute the instance fields declared by this class.Collection
<? extends IMethod> Finds a field.Finds method matching signature.int
Return the integer that encodes the class's modifiers, as defined by the JVM specificationstatic TypeName
int
hashCode()
boolean
boolean
isPublic()
boolean
Does 'this' refer to a reference type? If not, then it refers to a primitive type.boolean
toString()
Methods inherited from class com.ibm.wala.classLoader.SyntheticClass
getClassHierarchy, getField, getName, getReference, isAbstract, isArrayClass, isInterface, isSynthetic
-
Constructor Details
-
BypassSyntheticClass
public BypassSyntheticClass(IClass realType, IClassLoader loader, IClassHierarchy cha) throws NullPointerException, NullPointerException - Throws:
NullPointerException
-
-
Method Details
-
getName
- Parameters:
T
- a type reference- Returns:
- a synthetic class name to represent the synthetic form of this type
- Throws:
IllegalArgumentException
- if T is null
-
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.
- See Also:
-
getSuperclass
- Returns:
- the superclass, or null if java.lang.Object
- 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.
- 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.
- See Also:
-
getField
-
getSourceFileName
- Specified by:
getSourceFileName
in interfaceIClass
- Overrides:
getSourceFileName
in classSyntheticClass
- Returns:
- String holding the name of the source file that defined this class, or null if none found
- See Also:
-
getClassInitializer
- Returns:
- the method that is this class's initializer, or null if none
- See Also:
-
getDeclaredMethods
- Returns:
- an Iterator of the IMethods declared by this class.
- See Also:
-
getDeclaredInstanceFields
Description copied from interface:IClass
Compute the instance fields declared by this class.- Returns:
- Collection of IFields
- See Also:
-
getDeclaredStaticFields
- Returns:
- Collection of IField
- See Also:
-
isSyntheticImplentor
public boolean isSyntheticImplentor()- See Also:
-
toString
-
getRealType
-
equals
- Overrides:
equals
in classSyntheticClass
-
hashCode
public int hashCode()- Overrides:
hashCode
in classSyntheticClass
-
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:
UnimplementedError
- 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:
UnimplementedError
- 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
-
getAnnotations
Description copied from interface:IClass
get annotations, if any- Specified by:
getAnnotations
in interfaceIClass
- Overrides:
getAnnotations
in classSyntheticClass
-