Package com.ibm.wala.classLoader
Class JVMClass<T extends IClassLoader>
- java.lang.Object
-
- com.ibm.wala.classLoader.BytecodeClass<T>
-
- com.ibm.wala.classLoader.JVMClass<T>
-
- Type Parameters:
T
- type of classloader which loads this format of class.
- All Implemented Interfaces:
IClass
,IClassHierarchyDweller
- Direct Known Subclasses:
ShrikeClass
public abstract class JVMClass<T extends IClassLoader> extends BytecodeClass<T>
Note that classes from JVML have some features that are not present in all "bytecode" languages currently supported.
-
-
Field Summary
Fields Modifier and Type Field Description protected int
modifiers
JVM-level modifiers; cached here for efficiency-
Fields inherited from class com.ibm.wala.classLoader.BytecodeClass
allInterfaces, cha, hashCode, inheritCache, instanceFields, interfaceNames, loader, methodMap, staticFields, superClass, superclassComputed, superName, typeReference
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
JVMClass(T loader, IClassHierarchy cha)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IMethod
getClassInitializer()
int
getModifiers()
Return the integer that encodes the class's modifiers, as defined by the JVM specificationboolean
isAbstract()
boolean
isInterface()
Is this class a Java interface?boolean
isPrivate()
boolean
isPublic()
-
Methods inherited from class com.ibm.wala.classLoader.BytecodeClass
addFieldToList, computeAllInterfacesAsCollection, computeDeclaredMethods, computeMethodMapIfNeeded, findDeclaredField, getAllFields, getAllImplementedInterfaces, getAllInstanceFields, getAllMethods, getAllStaticFields, getAnnotations, getClassHierarchy, getClassLoader, getContainer, getDeclaredInstanceFields, getDeclaredMethods, getDeclaredStaticFields, getDirectInterfaces, getField, getField, getMethod, getName, getReference, getSource, getSourceFileName, getSuperclass, hashCode, isArrayClass, isReferenceType, populateFieldArrayFromList, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.ibm.wala.classLoader.IClass
getAnnotations
-
-
-
-
Constructor Detail
-
JVMClass
protected JVMClass(T loader, IClassHierarchy cha)
-
-
Method Detail
-
getModifiers
public int getModifiers()
Description copied from interface:IClass
Return the integer that encodes the class's modifiers, as defined by the JVM specification- Returns:
- the integer that encodes the class's modifiers, as defined by the JVM specification
-
isPublic
public boolean isPublic()
- Returns:
- true iff this class is public
-
isPrivate
public boolean isPrivate()
- Returns:
- true iff this class is private
-
isInterface
public boolean isInterface()
Description copied from interface:IClass
Is this class a Java interface?
-
isAbstract
public boolean isAbstract()
- Returns:
- true iff this class is abstract
-
getClassInitializer
public IMethod getClassInitializer()
- Returns:
- the method that is this class's initializer, or null if none
- See Also:
IClass.getClassInitializer()
-
-