public interface IClass extends IClassHierarchyDweller
| 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.
|
java.util.Collection<Annotation> |
getAnnotations()
get annotations, if any
|
IMethod |
getClassInitializer() |
IClassLoader |
getClassLoader()
Return the object that represents the defining class loader for this class.
|
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.
|
IField |
getField(Atom name,
TypeName type)
Finds a field, given a name and a type.
|
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
|
TypeName |
getName() |
TypeReference |
getReference() |
java.io.Reader |
getSource() |
java.lang.String |
getSourceFileName() |
IClass |
getSuperclass() |
boolean |
isAbstract() |
boolean |
isArrayClass() |
boolean |
isInterface()
Is this class a Java interface?
|
boolean |
isPrivate() |
boolean |
isPublic() |
boolean |
isReferenceType()
Does 'this' refer to a reference type? If not, then it refers to a primitive type.
|
boolean |
isSynthetic() |
getClassHierarchyIClassLoader getClassLoader()
boolean isInterface()
boolean isAbstract()
boolean isPublic()
boolean isPrivate()
boolean isSynthetic()
int getModifiers()
throws java.lang.UnsupportedOperationException
java.lang.UnsupportedOperationExceptionIClass getSuperclass()
java.lang.IllegalStateException - if there's some problem determining the superclassjava.util.Collection<? extends IClass> getDirectInterfaces()
java.util.Collection<IClass> getAllImplementedInterfaces()
IMethod getMethod(Selector selector)
selector - a method signatureIField getField(Atom name)
java.lang.IllegalStateException - if the class contains multiple fields with name name.IField getField(Atom name, TypeName type)
null if not found.TypeReference getReference()
java.lang.String getSourceFileName()
throws java.util.NoSuchElementException
java.util.NoSuchElementException - if this class was generated from more than one source file The
assumption that a class is generated from a single source file is java specific, and will
change in the future. In place of this API, use the APIs in IClassLoader. SJF .. we should
think about this deprecation. postponing deprecation for now.java.io.Reader getSource()
throws java.util.NoSuchElementException
java.util.NoSuchElementException - if this class was generated from more than one source file The
assumption that a class is generated from a single source file is java specific, and will
change in the future. In place of this API, use the APIs in IClassLoader. SJF .. we should
think about this deprecation. postponing deprecation for now.IMethod getClassInitializer()
boolean isArrayClass()
java.util.Collection<? extends IMethod> getDeclaredMethods()
java.util.Collection<IField> getAllInstanceFields()
java.util.Collection<IField> getAllStaticFields()
java.util.Collection<IField> getAllFields()
java.util.Collection<? extends IMethod> getAllMethods()
java.util.Collection<IField> getDeclaredInstanceFields()
java.util.Collection<IField> getDeclaredStaticFields()
TypeName getName()
boolean isReferenceType()
java.util.Collection<Annotation> getAnnotations()