| 
 | " 2013 FRC Java API" | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.squawk.Klass
public class Klass
The Klass class represents the types in the Squawk VM. The Squawk system uses a type hierarchy to simplify verification. The diagram below shows this hierarchy:
 
 The classes in the Java class hierarchy have the expected
 relationships with each other as specified by the standard Java API.
 For example, the getSuperclass() method returns null for
  java.lang.Object as well as for classes representing interfaces
 primitive types. The same Java API compliance holds for all the other
 standard API methods.
KlassMetadata| Field Summary | |
|---|---|
| static Klass | ADDRESSThe type for representing machine addresses. | 
| static Klass | ADDRESS_ARRAYThe type for representing an array of machine addresses. | 
| static boolean | ASSERTIONS_ENABLEDA flag that controls conditional features (mainly assertions). | 
| static Klass | BOOLEANThe type for boolean. | 
| static Klass | BOOLEAN_ARRAYThe type for boolean[]. | 
| static Klass | BYTEThe type for byte. | 
| static Klass | BYTE_ARRAYThe type for byte[]. | 
| static Klass | BYTECODEThe type for an element of a method. | 
| static Klass | BYTECODE_ARRAYThe type for an array of bytes that is a method. | 
| static Klass | CHARThe type for char. | 
| static Klass | CHAR_ARRAYThe type for char[]. | 
| static int | DATAMAP_ENTRIES_PER_WORDThe number of data map entries in a word. | 
| static int | DATAMAP_ENTRY_BITSThe size (in bits) of a data map entry. | 
| static int | DATAMAP_ENTRY_MASKThe mask used to extract a data map entry. | 
| static boolean | DEBUG_CODE_ENABLEDA flag that controls conditional features (mainly assertions). | 
| static Klass | DOUBLEThe type for double. | 
| static Klass | DOUBLE_ARRAYThe type for double[]. | 
| static Klass | DOUBLE2The type for the second word of a doublevalue. | 
| static Klass | FLOATThe type for float. | 
| static Klass | FLOAT_ARRAYThe type for float[]. | 
| static Klass | GLOBALThe type for a class state word. | 
| static Klass | GLOBAL_ARRAYThe type for a class state structure. | 
| static Klass | GLOBAL_ARRAYARRAYThe type for a table of class state structures. | 
| static int | ILLEGAL_METHOD_OFFSEToffset given to methods that are illegal to call, such as hosted methods. | 
| static Klass | INTThe type for int. | 
| static Klass | INT_ARRAYThe type for int[]. | 
| static Klass | KLASSThe type for com.sun.squawk.Klass. | 
| static Klass | LOCALThe type for a slot in a stack chunk. | 
| static Klass | LOCAL_ARRAYThe type for a stack chunk. | 
| static Klass | LONGThe type for long. | 
| static Klass | LONG_ARRAYThe type for long[]. | 
| static Klass | LONG2The type for the second word of a longvalue. | 
| static Klass | NATIVEUNSAFEContainer of methods for peeking and poking memory. | 
| static Klass[] | NO_CLASSESA zero length array of classes. | 
| static Klass | NULLThe type for null. | 
| static Klass | OBJECTThe type for java.lang.Object. | 
| static Klass | OBJECT_ARRAYThe type for java.lang.Object[]. | 
| static Klass | OFFSETThe type for representing the directed distance between two machine addresses. | 
| static Klass | ONE_WORDThe root of all single word types. | 
| static Klass | REFERENCEThe root type for all reference types. | 
| static Klass | SHORTThe type for short. | 
| static Klass | SHORT_ARRAYThe type for short[]. | 
| static boolean | SQUAWK_64A flag that controls conditional 64-bitness. | 
| static byte | STATE_CONVERTEDConstant denoting that a Klass has had its methods translated. | 
| static byte | STATE_CONVERTINGConstant denoting that a Klass is currently having its methods translated. | 
| static byte | STATE_DEFINEDConstant denoting the initial state of a Klass. | 
| static byte | STATE_ERRORConstant denoting that loading or converting a Klass cause a linkage error. | 
| static byte | STATE_LOADEDConstant denoting that a Klass is loaded. | 
| static byte | STATE_LOADINGConstant denoting that a Klass is currently loading. | 
| static Klass | STRINGThe type for java.lang.String. | 
| static Klass | STRING_ARRAYThe type for java.lang.String[]. | 
| static Klass | STRING_OF_BYTESThe type for com.sun.squawk.StringOfBytes. | 
| static Klass | THROWABLEThe type for java.lang.Class. | 
| static Klass | TOPThe root of the verification type hierarchy. | 
| static boolean | TRACING_ENABLEDA flag specifying whether the Tracerclass is available. | 
| static Klass | TWO_WORDThe root of all two word types. | 
| static Klass | UNINITIALIZEDThe root type for all uninitialized reference types. | 
| static Klass | UNINITIALIZED_NEWThe root of the types representing the result of the new bytecode before it has been passed to a constructor. | 
| static Klass | UNINITIALIZED_THISThe type for thisin a constructor before the call to
 the super constructor. | 
| static Klass | UWORDThe type for representing unsigned machine words. | 
| static Klass | UWORD_ARRAYThe type for representing an array of unsigned word addresses. | 
| static Klass | VOIDThe type for void. | 
| Constructor Summary | |
|---|---|
| protected  | Klass(String name,
      Klass superType)Only used by UninitializedObjectClass constructor. | 
| Method Summary | |
|---|---|
| static Class | asClass(Klass klass)Gets the Class instance corresponding to a given Klass instance, creating it first if necessary. | 
| static Klass | asKlass(Class c)Gets the Klass instance corresponding to a given Class instance. | 
|  void | changeState(byte state)Updates the state of this class. | 
|  boolean | equals(Object obj)For completeness, define identity equals(). | 
| static Klass | forName(String className)Returns the Klassobject associated with the class
 with the given string name. | 
| static Klass | getClass(String name,
         boolean isFieldDescriptor)Gets a class corresponding to a given name. | 
|  Klass | getComponentType()Returns the class representing the component type of an array. | 
|  int | getDataMapEntry(int index)Get the number of bytes a particular entry in the table uses. | 
|  int | getDataMapLength()Return the number of entries within the dataMap | 
|  int | getDataSize()Gets the data size (in bytes) of the type represented by this class. | 
|  int | getDefaultConstructorModifiers()Gets the modifiers of this class's default constructor. | 
|  Field | getField(int index,
         boolean isStatic)Gets a field declared by this class based on a given field table index. | 
|  int | getFieldCount(boolean isStatic)Gets the number of fields declared by this class. | 
|  Klass[] | getInterfaces()Gets the list of interfaces implemented by this class. | 
|  String | getInternalName()Gets the internal class name. | 
|  Method | getMethod(int index,
          boolean isStatic)Gets a method declared by this class based on a given method table index. | 
|  int | getMethodCount(boolean isStatic)Gets the number of methods declared by this class. | 
|  int | getMethodIndex(Object method,
               boolean isStatic)Looks up the method's index in the klass. | 
|  Object | getMethodObject(Method method)Gets the bytecode array for the given Method object | 
|  int | getModifiers()Returns the modifiers for this class or interface. | 
|  String | getName()Returns the name of this entity in the format expected by Class.getName(). | 
| static String | getNames(Klass[] klasses)Formats the names of a given array of classes into a single string with each class name separated by a space. | 
|  Object | getObject(int index)Get an object from the object table. | 
|  int | getObjectIndex(Object object)Gets the index of a given object in this object table of this class. | 
|  int | getRefStaticFieldsSize()Get the size (in words) of the static fields of this class that are of a non-primitive type. | 
|  InputStream | getResourceAsStream(String name)Finds a resource with a given name. | 
| static Klass | getSecondWordType(Klass type)Gets the type representing the second word of a double word type. | 
|  String | getSignature()Gets the JNI signature of this class. | 
| static char | getSignatureFirstChar(int systemID)Gets the first char of the name of a class when it is in signature form. | 
|  String | getSourceFileName()Get the source file from which the class was compiled. | 
|  int | getState()Gets the state of this class. | 
|  int | getStaticFieldsSize()Get the size (in words) of the static fields of this class. | 
|  Object[] | getStaticMethods()Gets the table of static methods for this class. | 
|  int | getSuiteID()Gets the suite identifier for this class. | 
|  Klass | getSuperclass()Returns the Classrepresenting the superclass of the entity
 (class, interface, primitive type or void) represented by thisClass. | 
|  Klass | getSuperType()Gets the class representing the super type of this class in the verification type hierarchy. | 
|  int | getSystemID()Gets the system wide unique ID for this class or a negative value if it doesn't have one. | 
|  Object[] | getVirtualMethods()Gets the vtable for virtual methods. | 
|  boolean | hasDefaultConstructor()Determines if this class has a default constructor. | 
|  boolean | hasGlobalStatics()Determines if the static fields of this class are VM global. | 
|  int | hashCode()Returns a hashcode for this class. | 
|  boolean | hasMain()Determines if this class has a void main(String[])method. | 
|  void | installMethodBody(MethodBody body,
                  boolean isStatic)Installs the method body for a given method in this class. | 
|  boolean | isAbstract()Determines if this is an abstract class. | 
|  boolean | isAccessibleFrom(Klass klass)Determines whether or not this class is accessible by a specified class. | 
| static boolean | isAccessibleFrom(Klass definingClass,
                 int modifiers,
                 Klass accessingKlass)Determines if a given field or method is accessible from a given klass. | 
| static boolean | isAccessibleFrom(Member member,
                 Klass klass)Determines if a given field or method is accessible from a given klass. | 
|  boolean | isArray()Determines if this Classobject represents an array class. | 
|  boolean | isAssignableFrom(Klass klass)Determines if the class or interface represented by this Classobject is either the same as, or is a superclass or
 superinterface of, the class or interface represented by the specifiedClassparameter. | 
|  boolean | isDoubleWord()Determines if this class represents a type whose values occupy two 32-bit words. | 
|  boolean | isFinal()Determines if this class can be subclassed. | 
|  boolean | isImplementorOf(Klass anInterface)Determine if this class implements a specified class. | 
|  boolean | isInitialized()Determines if this class is initialized. | 
|  boolean | isInSamePackageAs(Klass klass)Return true if a given class is in the same package as this class. | 
|  boolean | isInstance(Object obj)Determines if the specified Objectis assignment-compatible
 with the object represented by thisKlass. | 
|  boolean | isInstantiable()Return true if this class can be allocated (not abstract or interface, etc.) If true, there may be some object "obj" such that GC.getKlass(obj) == this class. | 
|  boolean | isInterface()Determines if the specified Classobject represents an
 interface type. | 
|  boolean | isInternalType()Determines if this class is only used by the VM internally and does not correspond to any Java source language type. | 
| static boolean | isMissingMethodObject(Object method,
                      boolean isStatic)Tests if the given method is the designated "missing method". | 
|  boolean | isPragma()Determines if this class is used to annotate a Java component (i.e. | 
|  boolean | isPrimitive()Determines if this class represents a primitive type (e.g. | 
|  boolean | isPublic()Determines if this is a public class. | 
|  boolean | isReferenceType()Determines whether or not this class is a reference type. | 
|  boolean | isSourceSynthetic()Determines if this class does not appear in any source code. | 
|  boolean | isSquawkArray()Determines if this Classobject represents an array class
 in the Squawk sense i.e. | 
|  boolean | isSquawkPrimitive()Determines if this Classobject represents a special class
 that the Squawk translator and compiler convert into a primitive type. | 
|  boolean | isSynthetic()Determines if this class is not defined by a class file. | 
|  Field | lookupField(String name,
            Klass type,
            boolean isStatic)Finds the Fieldobject representing a field in
 this class's hierarchy. | 
| static Klass | lookupKlass(String name)Look up klass in current suite or one of it's parents. | 
|  Method | lookupMethod(String name,
             Klass[] parameterTypes,
             Klass returnType,
             Klass currentClass,
             boolean isStatic)Finds the Methodobject representing a method in
 this class's hierarchy. | 
|  Method | lookupVirtualMethod(int offset)Finds the Methodobject representing a method in
 this class, given an index in the vtable. | 
|  void | main(String[] args)Call this class's public static void main(String[])method
 if it is defined. | 
|  boolean | mustClinit()Determines if class initialization must be performed for this class. | 
|  Object | newInstance()Creates a new instance of a class. | 
|  void | setClassFileDefinition(Klass superClass,
                       Klass[] interfaces,
                       ClassFileMethod[] virtualMethods,
                       ClassFileMethod[] staticMethods,
                       ClassFileField[] instanceFields,
                       ClassFileField[] staticFields,
                       String sourceFile)Completes the definition of this class (apart from its bytecodes) based on the information parsed from a class file. | 
|  void | setObjectTable(Object[] objects)Set the object table. | 
| protected  void | setSuperType(Klass superType)Sets the verification hierarchy super type of this class. | 
|  String | toString()Converts the object to a string. | 
| static String | toString(Member member,
         boolean showType)Gets a string representation of a given field or method. | 
|  void | updateModifiers(int modifiers)Updates the modifiers for this class by setting one or more modifier flags that are not currently set. | 
| Methods inherited from class java.lang.Object | 
|---|
| getClass, notify, notifyAll, wait, wait, wait | 
| Field Detail | 
|---|
public static final int ILLEGAL_METHOD_OFFSET
public static final Klass[] NO_CLASSES
public static final boolean DEBUG_CODE_ENABLED
public static final boolean ASSERTIONS_ENABLED
public static final boolean TRACING_ENABLED
Tracer class is available.
public static final boolean SQUAWK_64
public static final byte STATE_DEFINED
public static final byte STATE_LOADING
public static final byte STATE_LOADED
public static final byte STATE_CONVERTING
public static final byte STATE_CONVERTED
public static final byte STATE_ERROR
public static final int DATAMAP_ENTRY_BITS
public static final int DATAMAP_ENTRY_MASK
public static final int DATAMAP_ENTRIES_PER_WORD
public static Klass TOP
Klasspublic static Klass ONE_WORD
public static Klass TWO_WORD
public static Klass BOOLEAN
boolean.
public static Klass BYTE
byte.
public static Klass CHAR
char.
public static Klass SHORT
short.
public static Klass INT
int.
public static Klass FLOAT
float.
public static Klass LONG
long.
public static Klass LONG2
long value.
public static Klass DOUBLE
double.
public static Klass DOUBLE2
double value.
public static Klass VOID
void.
public static Klass REFERENCE
public static Klass UNINITIALIZED
public static Klass UNINITIALIZED_THIS
this in a constructor before the call to
 the super constructor.
public static Klass UNINITIALIZED_NEW
public static Klass NULL
null.
public static Klass OBJECT
java.lang.Object.
public static Klass STRING
java.lang.String.
public static Klass THROWABLE
java.lang.Class.
public static Klass KLASS
com.sun.squawk.Klass.
public static Klass OBJECT_ARRAY
java.lang.Object[].
public static Klass STRING_ARRAY
java.lang.String[].
public static Klass BOOLEAN_ARRAY
boolean[].
public static Klass BYTE_ARRAY
byte[].
public static Klass CHAR_ARRAY
char[].
public static Klass SHORT_ARRAY
short[].
public static Klass INT_ARRAY
int[].
public static Klass FLOAT_ARRAY
float[].
public static Klass LONG_ARRAY
long[].
public static Klass DOUBLE_ARRAY
double[].
public static Klass STRING_OF_BYTES
com.sun.squawk.StringOfBytes.
public static Klass LOCAL
public static Klass LOCAL_ARRAY
public static Klass GLOBAL
public static Klass GLOBAL_ARRAY
public static Klass GLOBAL_ARRAYARRAY
public static Klass BYTECODE
public static Klass BYTECODE_ARRAY
public static Klass ADDRESS
public static Klass ADDRESS_ARRAY
public static Klass UWORD
public static Klass UWORD_ARRAY
public static Klass OFFSET
public static Klass NATIVEUNSAFE
| Constructor Detail | 
|---|
protected Klass(String name,
                Klass superType)
name - the name of the classsuperType - must be UNINITIALIZED_NEW| Method Detail | 
|---|
public static Class asClass(Klass klass)
klass - the Klass object
public static Klass asKlass(Class c)
c - the Class object
public static Klass forName(String className)
                     throws ClassNotFoundException
Klass object associated with the class
 with the given string name.
className - the class name to lookup
ClassNotFoundExceptionpublic final Object newInstance()
has a default constructor.
InstantiationException
IllegalAccessException
public final int getModifiers()
                       throws AllowInlinedPragma
AllowInlinedPragmapublic boolean isInstantiable()
public final boolean isInterface()
Class object represents an
 interface type.
true if this object represents an interface;
          false otherwise.public final boolean isPrimitive()
public final boolean hasGlobalStatics()
VM global.
VM globalpublic final boolean hasMain()
void main(String[]) method.
public final boolean hasDefaultConstructor()
public final int getDefaultConstructorModifiers()
hasDefaultConstructor() return true.
public final String toString()
getName.  If this Class object represents a
 primitive type, this method returns the name of the primitive type.  If
 this Class object represents void this method returns
 "void".
toString in class Objectpublic final boolean isInstance(Object obj)
Object is assignment-compatible
 with the object represented by this Klass.
obj - object to test
public final boolean isArray()
Class object represents an array class.
true if this object represents an array class;
          false otherwise.public final boolean isSquawkPrimitive()
Class object represents a special class
 that the Squawk translator and compiler convert into a primitive type. Values
 of these types are not compatible with any other types and requires explicit
 conversions.
true if this object represents a special class;
          false otherwise.
public final boolean isSquawkArray()
                            throws ForceInlinedPragma
Class object represents an array class
 in the Squawk sense i.e. it is a Java array or some kind of string.
true if this object represents an array class;
          false otherwise.
ForceInlinedPragmapublic final String getName()
Class.getName().
public final Klass getSuperclass()
Class representing the superclass of the entity
 (class, interface, primitive type or void) represented by this
 Class.  If this Class represents either the
 Object class, an interface, a primitive type, or void, then
 null is returned.  If this object represents an array class then the
 Class object representing the Object class is
 returned.
public final boolean isAssignableFrom(Klass klass)
Class object is either the same as, or is a superclass or
 superinterface of, the class or interface represented by the specified
 Class parameter. It returns true if so;
 otherwise it returns false. If this Class
 object represents a primitive type, this method returns
 true if the specified Class parameter is
 exactly this Class object; otherwise it returns
 false.
  Specifically, this method tests whether the type represented by the
 specified Class parameter can be converted to the type
 represented by this Class object via an identity conversion
 or via a widening reference conversion. See The Java Language
 Specification, sections 5.1.1 and 5.1.4 , for details.
klass - the Class object to be checked
boolean value indicating whether objects
                  of the type klass can be assigned to
                  objects of this class
NullPointerException - if the specified Class parameter is nullpublic final InputStream getResourceAsStream(String name)
name - name of the desired resource
java.io.InputStream object.public final void updateModifiers(int modifiers)
modifiers - a mask of the constants defined in Modifierpublic final String getInternalName()
getName except
 for classes representing arrays and classes representing primitive types.
 For the former, the delimiting L and ; are
 omitted and the internal implementation classes are returned for the
 latter. Thus:
 returns "(new Object[3]).getClass().getInternalName()
[java.lang.Object" and:
 returns "(new int[3][4][5][6][7][8][9]).getClass().getInternalName()
[[[[[[[java.lang._int_". The other internal names
 for the primitive types are as follows:
 java.lang._byte_ byte java.lang._char_ char java.lang._double_ double java.lang._float_ float java.lang._int_ int java.lang._long_ long java.lang._short_ short java.lang._boolean_ boolean java.lang.Void void
public final String getSignature()
public static char getSignatureFirstChar(int systemID)
systemID - the system ID of the class to query
public static String getNames(Klass[] klasses)
getName()
 method is used to convert each class to a name.
klasses - the classes to format
klasses
public final int getSuiteID()
                     throws ForceInlinedPragma
ForceInlinedPragma
public final int getSystemID()
                      throws AllowInlinedPragma
AllowInlinedPragmapublic final Klass getComponentType()
public final int getStaticFieldsSize()
public final int getRefStaticFieldsSize()
public final boolean isPublic()
public final boolean isAbstract()
public final boolean isFinal()
public final boolean isSynthetic()
void. For all other classes, this method will return
 true.
public final boolean isSourceSynthetic()
public final boolean isPragma()
public final boolean isInternalType()
public final boolean isImplementorOf(Klass anInterface)
anInterface - the class to check
klass is an interface class and this class implements it.public final boolean isInSamePackageAs(Klass klass)
klass - the class to test
klass is in the same package as this classpublic final boolean isAccessibleFrom(Klass klass)
klass - a class that refers to this class
other is null or has access to this classpublic final boolean isReferenceType()
public final int getDataSize()
                      throws ForceInlinedPragma
ForceInlinedPragmapublic final Klass getSuperType()
public final Klass[] getInterfaces()
public final Object[] getVirtualMethods()
public final Object[] getStaticMethods()
public static String toString(Member member,
                              boolean showType)
member is a field, then the returned string will be the
 fully qualified name (FQN) of the field's type, a space, the FQN of the
 declaring class of the field, a period, and finally, the field's name.
 The string returned if member is a method will be the same
 as for a field (with the field type replaced by the method's return
 type), a '(', the FQNs of the parameter types (if any) separated by a
 ',', and finally a closing ')'. For example:
 
     java.lang.PrintStream java.lang.System.out
     int java.lang.String.indexOf(java.lang.String,int)
 
member - the field or methodshowType - show the type of the field, or return type of the method
member
public static boolean isAccessibleFrom(Member member,
                                       Klass klass)
member - the field or method to testklass - the class accessing member
klass can access member
public static boolean isAccessibleFrom(Klass definingClass,
                                       int modifiers,
                                       Klass accessingKlass)
definingClass - the class in which the member is definedmodifiers - at least the last 8 bits of the method modifiersaccessingKlass - the class accessing the member
klass can access memberpublic final boolean isDoubleWord()
public final int getState()
STATE_... constantspublic final void changeState(byte state)
state - the new state of this classprotected final void setSuperType(Klass superType)
superType - the verification hierarchy super type of this classKlass
public final void setClassFileDefinition(Klass superClass,
                                         Klass[] interfaces,
                                         ClassFileMethod[] virtualMethods,
                                         ClassFileMethod[] staticMethods,
                                         ClassFileField[] instanceFields,
                                         ClassFileField[] staticFields,
                                         String sourceFile)
superClass - the super classinterfaces - the implemented interfacesvirtualMethods - the virtual methods declaredstaticMethods - the static methods declared (including all constructors)instanceFields - the instance fields declaredstaticFields - the static fields declaredsourceFile - the value of the "SourceFile" attributepublic final int getDataMapLength()
public final int getDataMapEntry(int index)
index - an index into the dataMap
public final void installMethodBody(MethodBody body,
                                    boolean isStatic)
body - the method bodyisStatic - specifies whether the method is static or virtualpublic final String getSourceFileName()
public final Method lookupMethod(String name,
                                 Klass[] parameterTypes,
                                 Klass returnType,
                                 Klass currentClass,
                                 boolean isStatic)
Method object representing a method in
 this class's hierarchy. This method returns null if the method does
 not exist.
name - the name of the methodparameterTypes - the parameter types of the methodreturnType - the return type of the methodcurrentClass - the class context of this lookup or null if
                         there is no current class contextisStatic - specifies a search for a static or virtual method
public final Method lookupVirtualMethod(int offset)
Method object representing a method in
 this class, given an index in the vtable. This method returns null if the method, 
 or metadata for the method does not exist.
 Use getMethod when you have the index of the methods defined in this class.
 Note that there's not much point in doing this for static method - the index into the stable
 and the index into the metadata are the same.
offset - the vtable offset
public final Field lookupField(String name,
                               Klass type,
                               boolean isStatic)
Field object representing a field in
 this class's hierarchy. This method returns null if the field does
 not exist.
name - the name of the fieldtype - the type of the fieldisStatic - specifies a search for a static or instance field
public final int getFieldCount(boolean isStatic)
isStatic - specifies whether to count static or instance fields
isStatic) declared by this class
public final Field getField(int index,
                            boolean isStatic)
index - the index of the desired fieldisStatic - specifies whether or not the desired field is static
index in the table of static or
                  instance fields (as determined by isStatic)
                  declared by this classpublic final int getMethodCount(boolean isStatic)
isStatic - specifies whether to count static or virtual methods
isStatic) declared by this class
public final Method getMethod(int index,
                              boolean isStatic)
index - the index of the desired methodisStatic - specifies whether or not the desired method is static
index in the table of static or
                  virtual methods (as determined by isStatic)
                  declared by this class
public final int getMethodIndex(Object method,
                                boolean isStatic)
method - the method look for (Can be real byteocde array, or Method, depending on klass state.isStatic - If true, look up the index in the static method table, otherwise look up in the virtual method table.
public final Object getMethodObject(Method method)
method - the Method to look for
public static boolean isMissingMethodObject(Object method,
                                            boolean isStatic)
method - the method to checkisStatic - specifies whether or not the desired method is static
public final void setObjectTable(Object[] objects)
objects - the object arraypublic final Object getObject(int index)
index - the index into the table
public final int getObjectIndex(Object object)
object - the object to search for
object in this class' object table or -1 if it doesn't existpublic final int hashCode()
hashCode in class ObjectObject.equals(java.lang.Object), 
Hashtablepublic boolean equals(Object obj)
equals in class Objectobj - 
Boolean.hashCode(), 
Hashtable
public final void main(String[] args)
                throws NotInlinedPragma
public static void main(String[]) method
 if it is defined.
args - the arguments to be passed to the invocation
NotInlinedPragma - as this method saves the current frame pointerpublic final boolean isInitialized()
public final boolean mustClinit()
<clinit>
 method.
public static Klass getClass(String name,
                             boolean isFieldDescriptor)
 If the value of isFieldDescriptor is true, then the format
 of name is as specified in the JVM specification for
 field descriptors.
 Otherwise, the name is in Squawk internal
 format.
name - the name of the class to getisFieldDescriptor - if true, then name is in the format described above
public static Klass lookupKlass(String name)
name - the name of the class to lookup.
name, or null if it doesn't existspublic static Klass getSecondWordType(Klass type)
type - a double word type
type| 
 | " 2013 FRC Java API" | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||