public class FakeRootClass extends SyntheticClass
| Constructor and Description |
|---|
FakeRootClass(ClassLoaderReference clr,
IClassHierarchy cha) |
FakeRootClass(TypeReference typeRef,
IClassHierarchy cha) |
| Modifier and Type | Method and Description |
|---|---|
void |
addMethod(IMethod m) |
void |
addStaticField(Atom name,
TypeReference fieldType) |
static TypeReference |
fakeRootClass(ClassLoaderReference clr) |
java.util.Collection<IClass> |
getAllAncestorInterfaces() |
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<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() |
IClassLoader |
getClassLoader()
By default, a synthetic class is "loaded" by the primordial loader.
|
java.util.Collection<IField> |
getDeclaredInstanceFields()
Compute the instance fields declared by this class.
|
java.util.Collection<IMethod> |
getDeclaredMethods() |
java.util.Collection<IField> |
getDeclaredStaticFields() |
java.util.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
|
java.io.Reader |
getSource() |
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, getField, getName, getReference, getSourceFileName, hashCode, isAbstract, isArrayClass, isInterface, isSyntheticpublic FakeRootClass(ClassLoaderReference clr, IClassHierarchy cha)
public FakeRootClass(TypeReference typeRef, IClassHierarchy cha)
public static final TypeReference fakeRootClass(ClassLoaderReference clr)
public IClassLoader getClassLoader()
SyntheticClassgetClassLoader in interface IClassgetClassLoader in class SyntheticClasspublic void addMethod(IMethod m)
public void addStaticField(Atom name, TypeReference fieldType)
public int getModifiers()
throws java.lang.UnsupportedOperationException
IClassjava.lang.UnsupportedOperationExceptionpublic IClass getSuperclass() throws java.lang.UnsupportedOperationException
java.lang.UnsupportedOperationExceptionpublic java.util.Collection<IClass> getAllImplementedInterfaces() throws java.lang.UnsupportedOperationException
java.lang.UnsupportedOperationExceptionpublic java.util.Collection<IClass> getAllAncestorInterfaces() throws java.lang.UnsupportedOperationException
java.lang.UnsupportedOperationExceptionpublic IMethod getMethod(Selector selector) throws java.lang.UnsupportedOperationException
IClassselector - a method signaturejava.lang.UnsupportedOperationExceptionpublic IMethod getClassInitializer() throws com.ibm.wala.util.debug.UnimplementedError
com.ibm.wala.util.debug.UnimplementedErrorpublic java.util.Collection<IMethod> getDeclaredMethods() throws java.lang.UnsupportedOperationException
java.lang.UnsupportedOperationExceptionpublic java.util.Collection<IField> getDeclaredInstanceFields() throws java.lang.UnsupportedOperationException
IClassjava.lang.UnsupportedOperationExceptionpublic java.util.Collection<IField> getDeclaredStaticFields()
public boolean isReferenceType()
IClasspublic java.util.Collection<IClass> getDirectInterfaces() throws java.lang.UnsupportedOperationException
java.lang.UnsupportedOperationExceptionpublic java.util.Collection<IField> getAllInstanceFields()
IClasspublic java.util.Collection<IField> getAllStaticFields()
IClasspublic java.util.Collection<IMethod> getAllMethods()
IClasspublic java.util.Collection<IField> getAllFields()
IClasspublic boolean isPublic()
public boolean isPrivate()
public java.io.Reader getSource()
getSource in interface IClassgetSource in class SyntheticClass