|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.ibm.wala.cast.loader.AstClass
public abstract class AstClass
| Field Summary | |
|---|---|
protected java.util.Map<Atom,IField> |
declaredFields
|
protected java.util.Map<Selector,IMethod> |
declaredMethods
|
| Fields inherited from interface com.ibm.wala.shrikeCT.ClassConstants |
|---|
ACC_ABSTRACT, ACC_FINAL, ACC_INTERFACE, ACC_NATIVE, ACC_PRIVATE, ACC_PROTECTED, ACC_PUBLIC, ACC_STATIC, ACC_STRICT, ACC_SUPER, ACC_SYNCHRONIZED, ACC_TRANSIENT, ACC_VOLATILE, CONSTANT_Class, CONSTANT_Double, CONSTANT_FieldRef, CONSTANT_Float, CONSTANT_Integer, CONSTANT_InterfaceMethodRef, CONSTANT_Long, CONSTANT_MethodRef, CONSTANT_NameAndType, CONSTANT_String, CONSTANT_Utf8, MAGIC |
| Constructor Summary | |
|---|---|
protected |
AstClass(CAstSourcePositionMap.Position sourcePosition,
TypeName typeName,
IClassLoader loader,
short modifiers,
java.util.Map<Atom,IField> declaredFields,
java.util.Map<Selector,IMethod> declaredMethods)
|
| Method Summary | |
|---|---|
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()
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<IMethod> |
getDeclaredMethods()
|
java.util.Collection<IField> |
getDeclaredStaticFields()
|
abstract 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 |
TypeName |
getName()
|
TypeReference |
getReference()
|
java.io.InputStream |
getSource()
|
java.lang.String |
getSourceFileName()
|
CAstSourcePositionMap.Position |
getSourcePosition()
|
java.net.URL |
getSourceURL()
|
abstract 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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.ibm.wala.ipa.cha.IClassHierarchyDweller |
|---|
getClassHierarchy |
| Field Detail |
|---|
protected final java.util.Map<Atom,IField> declaredFields
protected final java.util.Map<Selector,IMethod> declaredMethods
| Constructor Detail |
|---|
protected AstClass(CAstSourcePositionMap.Position sourcePosition,
TypeName typeName,
IClassLoader loader,
short modifiers,
java.util.Map<Atom,IField> declaredFields,
java.util.Map<Selector,IMethod> declaredMethods)
| Method Detail |
|---|
public boolean isInterface()
IClass
isInterface in interface IClasspublic boolean isAbstract()
isAbstract in interface IClasspublic boolean isPublic()
isPublic in interface IClasspublic boolean isPrivate()
isPrivate in interface IClasspublic boolean isReferenceType()
IClass
isReferenceType in interface IClasspublic boolean isArrayClass()
isArrayClass in interface IClasspublic int getModifiers()
IClass
getModifiers in interface IClasspublic CAstSourcePositionMap.Position getSourcePosition()
public java.net.URL getSourceURL()
public java.lang.String getSourceFileName()
getSourceFileName in interface IClasspublic java.io.InputStream getSource()
getSource in interface IClasspublic TypeName getName()
getName in interface IClasspublic TypeReference getReference()
getReference in interface IClasspublic IClassLoader getClassLoader()
IClass
getClassLoader in interface IClasspublic abstract IClass getSuperclass()
getSuperclass in interface IClasspublic abstract java.util.Collection<IClass> getDirectInterfaces()
getDirectInterfaces in interface IClasspublic java.util.Collection<IClass> getAllImplementedInterfaces()
getAllImplementedInterfaces in interface IClasspublic IMethod getClassInitializer()
getClassInitializer in interface IClasspublic IMethod getMethod(Selector selector)
IClass
getMethod in interface IClassselector - a method signature
public IField getField(Atom name)
IClass
getField in interface IClasspublic java.util.Collection<IMethod> getDeclaredMethods()
getDeclaredMethods in interface IClasspublic java.util.Collection<IField> getDeclaredInstanceFields()
IClass
getDeclaredInstanceFields in interface IClasspublic java.util.Collection<IField> getDeclaredStaticFields()
getDeclaredStaticFields in interface IClasspublic java.util.Collection<IField> getAllInstanceFields()
IClass
getAllInstanceFields in interface IClasspublic java.util.Collection<IField> getAllStaticFields()
IClass
getAllStaticFields in interface IClasspublic java.util.Collection<IField> getAllFields()
IClass
getAllFields in interface IClasspublic java.util.Collection<IMethod> getAllMethods()
IClass
getAllMethods in interface IClass
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||