public class FakeRootClass extends SyntheticClass
| Modifier and Type | Field and Description |
|---|---|
static TypeReference |
FAKE_ROOT_CLASS |
| Constructor and Description |
|---|
FakeRootClass(IClassHierarchy cha) |
FakeRootClass(TypeReference typeRef,
IClassHierarchy cha) |
| Modifier and Type | Method and Description |
|---|---|
void |
addMethod(IMethod m) |
void |
addStaticField(Atom name,
TypeReference fieldType) |
Collection<IClass> |
getAllAncestorInterfaces() |
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.
|
IMethod |
getClassInitializer() |
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
|
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, getClassLoader, getField, getName, getReference, getSourceFileName, hashCode, isAbstract, isArrayClass, isInterfacepublic static final TypeReference FAKE_ROOT_CLASS
public FakeRootClass(IClassHierarchy cha)
public FakeRootClass(TypeReference typeRef, IClassHierarchy cha)
public void addMethod(IMethod m)
public void addStaticField(Atom name, TypeReference fieldType)
public int getModifiers()
throws UnsupportedOperationException
IClassUnsupportedOperationExceptionpublic IClass getSuperclass() throws UnsupportedOperationException
UnsupportedOperationExceptionpublic Collection<IClass> getAllImplementedInterfaces() throws UnsupportedOperationException
UnsupportedOperationExceptionpublic Collection<IClass> getAllAncestorInterfaces() throws UnsupportedOperationException
UnsupportedOperationExceptionpublic IMethod getMethod(Selector selector) throws UnsupportedOperationException
IClassselector - a method signatureUnsupportedOperationExceptionpublic IMethod getClassInitializer() throws com.ibm.wala.util.debug.UnimplementedError
com.ibm.wala.util.debug.UnimplementedErrorpublic Collection<IMethod> getDeclaredMethods() throws UnsupportedOperationException
UnsupportedOperationExceptionpublic Collection<IField> getDeclaredInstanceFields() throws UnsupportedOperationException
IClassUnsupportedOperationExceptionpublic Collection<IField> getDeclaredStaticFields()
public boolean isReferenceType()
IClasspublic Collection<IClass> getDirectInterfaces() throws UnsupportedOperationException
UnsupportedOperationExceptionpublic Collection<IField> getAllInstanceFields()
IClasspublic Collection<IField> getAllStaticFields()
IClasspublic Collection<IMethod> getAllMethods()
IClasspublic Collection<IField> getAllFields()
IClasspublic boolean isPublic()
public boolean isPrivate()
public Reader getSource()
getSource in interface IClassgetSource in class SyntheticClassCopyright © 2015. All rights reserved.