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, isInterface
public 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
IClass
UnsupportedOperationException
public IClass getSuperclass() throws UnsupportedOperationException
UnsupportedOperationException
public Collection<IClass> getAllImplementedInterfaces() throws UnsupportedOperationException
UnsupportedOperationException
public Collection<IClass> getAllAncestorInterfaces() throws UnsupportedOperationException
UnsupportedOperationException
public IMethod getMethod(Selector selector) throws UnsupportedOperationException
IClass
selector
- a method signatureUnsupportedOperationException
public IMethod getClassInitializer() throws UnimplementedError
UnimplementedError
public Collection<IMethod> getDeclaredMethods() throws UnsupportedOperationException
UnsupportedOperationException
public Collection<IField> getDeclaredInstanceFields() throws UnsupportedOperationException
IClass
UnsupportedOperationException
public Collection<IField> getDeclaredStaticFields()
public boolean isReferenceType()
IClass
public Collection<IClass> getDirectInterfaces() throws UnsupportedOperationException
UnsupportedOperationException
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