public class BypassSyntheticClass extends SyntheticClass
Constructor and Description |
---|
BypassSyntheticClass(IClass realType,
IClassLoader loader,
IClassHierarchy cha) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object arg0) |
Collection<IField> |
getAllFields()
Compute the instance and static fields declared by this class or any of its superclasses.
|
Collection<IClass> |
getAllImplementedInterfaces() |
Collection<IField> |
getAllInstanceFields()
Compute the instance fields declared by this class or any of its superclasses.
|
Collection<IMethod> |
getAllMethods()
Compute the methods declared by this class or any of its superclasses.
|
Collection<IField> |
getAllStaticFields()
Compute the static fields declared by this class or any of its superclasses.
|
Collection<Annotation> |
getAnnotations()
get annotations, if any
|
IMethod |
getClassInitializer() |
IClassLoader |
getClassLoader()
By default, a synthetic class is "loaded" by the primordial loader.
|
Collection<IField> |
getDeclaredInstanceFields()
Compute the instance fields declared by this class.
|
Collection<IMethod> |
getDeclaredMethods() |
Collection<IField> |
getDeclaredStaticFields() |
Collection<IClass> |
getDirectInterfaces() |
IField |
getField(Atom name)
Finds a field.
|
IMethod |
getMethod(Selector selector)
Finds method matching signature.
|
int |
getModifiers()
Return the integer that encodes the class's modifiers, as defined by the JVM specification
|
static TypeName |
getName(TypeReference T) |
IClass |
getRealType() |
Reader |
getSource() |
String |
getSourceFileName() |
IClass |
getSuperclass() |
int |
hashCode() |
boolean |
isPrivate() |
boolean |
isPublic() |
boolean |
isReferenceType()
Does 'this' refer to a reference type? If not, then it refers to a primitive type.
|
boolean |
isSyntheticImplentor() |
String |
toString() |
getClassHierarchy, getField, getName, getReference, isAbstract, isArrayClass, isInterface
public BypassSyntheticClass(IClass realType, IClassLoader loader, IClassHierarchy cha) throws NullPointerException, NullPointerException
NullPointerException
public static TypeName getName(TypeReference T)
T
- a type referenceIllegalArgumentException
- if T is nullpublic IClassLoader getClassLoader()
SyntheticClass
getClassLoader
in interface IClass
getClassLoader
in class SyntheticClass
IClass.getClassLoader()
public IClass getSuperclass()
public Collection<IClass> getAllImplementedInterfaces()
public IMethod getMethod(Selector selector)
IClass
selector
- a method signaturepublic String getSourceFileName()
getSourceFileName
in interface IClass
getSourceFileName
in class SyntheticClass
public IMethod getClassInitializer()
public Collection<IMethod> getDeclaredMethods()
public Collection<IField> getDeclaredInstanceFields()
IClass
public Collection<IField> getDeclaredStaticFields()
public boolean isSyntheticImplentor()
public IClass getRealType()
public boolean equals(Object arg0)
equals
in class SyntheticClass
public int hashCode()
hashCode
in class SyntheticClass
public int getModifiers() throws UnimplementedError
IClass
UnimplementedError
public boolean isReferenceType()
IClass
public Collection<IClass> getDirectInterfaces() throws UnimplementedError
UnimplementedError
public Collection<IField> getAllInstanceFields()
IClass
public Collection<IField> getAllStaticFields()
IClass
public Collection<IMethod> getAllMethods()
IClass
public Collection<IField> getAllFields()
IClass
public boolean isPublic()
public boolean isPrivate()
public Reader getSource()
getSource
in interface IClass
getSource
in class SyntheticClass
public Collection<Annotation> getAnnotations()
IClass
getAnnotations
in interface IClass
getAnnotations
in class SyntheticClass