Class SyntheticClass
java.lang.Object
com.ibm.wala.classLoader.SyntheticClass
- All Implemented Interfaces:
IClass, IClassHierarchyDweller
- Direct Known Subclasses:
AndroidModelClass, BypassSyntheticClass, FakeRootClass, LambdaSummaryClass, PhantomClass
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanget annotations, if anyBy default, a synthetic class is "loaded" by the primordial loader.we assume synthetic classes do not need to have multiple fields with the same name.getName()inthashCode()booleanbooleanbooleanIs this class a Java interface?booleanMethods inherited from class Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface IClass
getAllFields, getAllImplementedInterfaces, getAllInstanceFields, getAllMethods, getAllStaticFields, getClassInitializer, getDeclaredInstanceFields, getDeclaredMethods, getDeclaredStaticFields, getDirectInterfaces, getField, getMethod, getModifiers, getSuperclass, isPrivate, isPublic, isReferenceType
-
Constructor Details
-
SyntheticClass
- Parameters:
T- type reference describing this class
-
-
Method Details
-
hashCode
-
equals
-
getClassLoader
By default, a synthetic class is "loaded" by the primordial loader. Subclasses may override as necessary.- 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
-
isSynthetic
public boolean isSynthetic()- Specified by:
isSyntheticin interfaceIClass- Returns:
- true iff this class is synthetic, i.e., compiler-generated
-
getReference
- Specified by:
getReferencein interfaceIClass- Returns:
- canonical TypeReference corresponding to this class
-
getSourceFileName
- Specified by:
getSourceFileNamein interfaceIClass- Returns:
- String holding the name of the source file that defined this class, or null if none found
-
getSource
-
isArrayClass
public boolean isArrayClass()- Specified by:
isArrayClassin interfaceIClass- Returns:
- true iff the class is an array class.
-
getClassHierarchy
- Specified by:
getClassHierarchyin interfaceIClassHierarchyDweller
-
getName
-
getField
-
getAnnotations
Description copied from interface:IClassget annotations, if any- Specified by:
getAnnotationsin interfaceIClass
-