public class PhantomClass extends SyntheticClass
| Constructor and Description |
|---|
PhantomClass(TypeReference T,
IClassHierarchy cha) |
| Modifier and Type | Method and Description |
|---|---|
java.util.Collection<IField> |
getAllFields()
Compute the instance and static fields declared by this class or any of its superclasses.
|
java.util.Collection<IClass> |
getAllImplementedInterfaces() |
java.util.Collection<IField> |
getAllInstanceFields()
Compute the instance fields declared by this class or any of its superclasses.
|
java.util.Collection<? extends IMethod> |
getAllMethods()
Compute the methods declared by this class or any of its superclasses.
|
java.util.Collection<IField> |
getAllStaticFields()
Compute the static fields declared by this class or any of its superclasses.
|
IMethod |
getClassInitializer() |
java.util.Collection<IField> |
getDeclaredInstanceFields()
Compute the instance fields declared by this class.
|
java.util.Collection<? extends IMethod> |
getDeclaredMethods() |
java.util.Collection<IField> |
getDeclaredStaticFields() |
java.util.Collection<? extends 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
|
IClass |
getSuperclass() |
boolean |
isPrivate() |
boolean |
isPublic() |
boolean |
isReferenceType()
Does 'this' refer to a reference type? If not, then it refers to a primitive type.
|
equals, getAnnotations, getClassHierarchy, getClassLoader, getField, getName, getReference, getSource, getSourceFileName, hashCode, isAbstract, isArrayClass, isInterface, isSyntheticpublic PhantomClass(TypeReference T, IClassHierarchy cha)
T - type reference describing this classpublic boolean isPublic()
public boolean isPrivate()
public int getModifiers()
throws java.lang.UnsupportedOperationException
IClassjava.lang.UnsupportedOperationExceptionpublic IClass getSuperclass()
public java.util.Collection<? extends IClass> getDirectInterfaces()
public java.util.Collection<IClass> getAllImplementedInterfaces()
public IMethod getMethod(Selector selector)
IClassselector - a method signaturepublic IMethod getClassInitializer()
public java.util.Collection<? extends IMethod> getDeclaredMethods()
public java.util.Collection<IField> getAllInstanceFields()
IClasspublic java.util.Collection<IField> getAllStaticFields()
IClasspublic java.util.Collection<IField> getAllFields()
IClasspublic java.util.Collection<? extends IMethod> getAllMethods()
IClasspublic java.util.Collection<IField> getDeclaredInstanceFields()
IClasspublic java.util.Collection<IField> getDeclaredStaticFields()
public boolean isReferenceType()
IClass