Class SyntheticClass
java.lang.Object
com.ibm.wala.classLoader.SyntheticClass
- All Implemented Interfaces:
IClass
,IClassHierarchyDweller
- Direct Known Subclasses:
AndroidModelClass
,BypassSyntheticClass
,FakeRootClass
,LambdaSummaryClass
,PhantomClass
An
IClass
that exists nowhere in bytecode.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
get 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()
int
hashCode()
boolean
boolean
boolean
Is this class a Java interface?boolean
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.ibm.wala.classLoader.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:
getClassLoader
in interfaceIClass
- Returns:
- the object that represents the defining class loader for this class.
-
isInterface
public boolean isInterface()Description copied from interface:IClass
Is this class a Java interface?- Specified by:
isInterface
in interfaceIClass
-
isAbstract
public boolean isAbstract()- Specified by:
isAbstract
in interfaceIClass
- Returns:
- true iff this class is abstract
-
isSynthetic
public boolean isSynthetic()- Specified by:
isSynthetic
in interfaceIClass
- Returns:
- true iff this class is synthetic, i.e., compiler-generated
-
getReference
- Specified by:
getReference
in interfaceIClass
- Returns:
- canonical TypeReference corresponding to this class
-
getSourceFileName
- Specified by:
getSourceFileName
in 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:
isArrayClass
in interfaceIClass
- Returns:
- true iff the class is an array class.
-
getClassHierarchy
- Specified by:
getClassHierarchy
in interfaceIClassHierarchyDweller
-
getName
-
getField
-
getAnnotations
Description copied from interface:IClass
get annotations, if any- Specified by:
getAnnotations
in interfaceIClass
-