ClassObj

A class or interface.

Methods
void addInstanceField(FieldObj field)
Add an instance field.
void addInstanceField(FieldObj field)
Add an instance field.
Parameters:
field - the field
void addMethod(MethodObj method)
Add a method.
void addMethod(MethodObj method)
Add a method.
Parameters:
method - the method
void addStaticField(FieldObj field)
Add a static field.
void addStaticField(FieldObj field)
Add a static field.
Parameters:
field - the field
boolean equals(Object other)
boolean equals(Object other)
FieldObj getField(String name)
Get the field with the given name.
FieldObj getField(String name)
Get the field with the given name.
Parameters:
name - the field name
Returns:
the field
MethodObj getMethod(String find, ArrayList args)
Get the method.
MethodObj getMethod(String find, ArrayList args)
Get the method.
Parameters:
find - the method name in the source code
args - the parameters
Returns:
the method
int hashCode()
int hashCode()
String toString()
String toString()

Fields
static Type baseType
static String className
static int id
static ArrayList imports
static LinkedHashMap instanceFields
static ArrayList interfaceNames
static boolean isInterface
static boolean isPrimitive
static boolean isPublic
static LinkedHashMap methods
static ArrayList nativeCode
static int primitiveType
static LinkedHashMap staticFields
static String superClassName

baseType

Get the base type of this class.

className

The fully qualified class name.

id

The class number.

imports

The imported classes.

instanceFields

The per-instance fields.

interfaceNames

The list of interfaces that this class implements.

isInterface

Whether this is an interface.

isPrimitive

Whether this is a primitive class (int, char,...)

isPublic

Whether this class is public.

methods

The methods.

nativeCode

The list of native statements.

primitiveType

The primitive type (higher types are more complex)

staticFields

The static fields of this class.

superClassName

The super class (null for java.lang.Object or primitive types).