| Modifier and Type | Method and Description |
|---|---|
| public AddressField | |
| public CIntegerField | |
| public Field | |
| public Field | |
| public Field | |
| public Field | |
| public Field | |
| public Iterator | |
| public JBooleanField | getJBooleanField(String fieldName)
These accessors are designed to allow strong type checking of certain well-known types of fields, specifically Java primitive and oop types. |
| public JByteField | |
| public JCharField | |
| public JDoubleField | |
| public JFloatField | |
| public JIntField | |
| public JLongField | |
| public JShortField | |
| public String | |
| public NarrowOopField | |
| public OopField | |
| public long | |
| public Type | |
| public boolean | isCIntegerType()
Indicates whether this type is a C integer type -- regardless of size or signedness. |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean |
| getAddressField | back to summary |
|---|---|
| public AddressField getAddressField(String fieldName) | |
| getCIntegerField | back to summary |
|---|---|
| public CIntegerField getCIntegerField(String fieldName) throws WrongTypeException | |
| getField | back to summary |
|---|---|
| public Field getField(String fieldName, boolean searchSuperclassFields, boolean throwExceptionIfNotFound) This is permissive and returns the CField regardless of its type as long as it is present. Returns null if the field was not found, unless throwExceptionIfNotFound is true, in which case a RuntimeException is thrown (for debugging purposes). | |
| getField | back to summary |
|---|---|
| public Field getField(String fieldName, boolean searchSuperclassFields) This is permissive and returns the CField regardless of its type as long as it is present -- it is equivalent to getField(fieldName, searchSuperclassFields, true). Throws a RuntimeException if the field was not found. | |
| getField | back to summary |
|---|---|
| public Field getField(String fieldName) This is permissive and returns the CField regardless of its type as long as it is present. This does not search superclasses' fields; it is equivalent to getField(fieldName, false). Throws a RuntimeException if the field was not found. | |
| getField | back to summary |
|---|---|
| public Field getField(String fieldName, Type declaredType, boolean searchSuperclassFields) throws WrongTypeException If there is a mismatch between the declared type and the type which would otherwise be returned from this routine, it throws a WrongTypeException. declaredType must not be null. Throws a RuntimeException if field was otherwise not found. | |
| getField | back to summary |
|---|---|
| public Field getField(String fieldName, Type declaredType) throws WrongTypeException If there is a mismatch between the declared type and the type which would otherwise be returned from this routine, it throws a WrongTypeException. declaredType must not be null. This does not search superclasses' fields; it is equivalent to getField(fieldName, declaredType, false). Throws a RuntimeException if field was otherwise not found. | |
| getFields | back to summary |
|---|---|
| public Iterator Iterate over all of the fields in this type but not in any of its superclasses. The returned Iterator's "remove" method must not be called. | |
| getJBooleanField | back to summary |
|---|---|
| public JBooleanField getJBooleanField(String fieldName) throws WrongTypeException These accessors are designed to allow strong type checking of certain well-known types of fields, specifically Java primitive and oop types. Specialized fields for all primitive types, as well as oop fields, are required to have strong type checking and a WrongTypeException should be thrown if the given field is not precisely of the given type. Address and Oop fields are more permissive to reduce the complexity of the initial implementation. These accessors do not search the superclass's fields. | |
| getJByteField | back to summary |
|---|---|
| public JByteField getJByteField(String fieldName) throws WrongTypeException | |
| getJCharField | back to summary |
|---|---|
| public JCharField getJCharField(String fieldName) throws WrongTypeException | |
| getJDoubleField | back to summary |
|---|---|
| public JDoubleField getJDoubleField(String fieldName) throws WrongTypeException | |
| getJFloatField | back to summary |
|---|---|
| public JFloatField getJFloatField(String fieldName) throws WrongTypeException | |
| getJIntField | back to summary |
|---|---|
| public JIntField getJIntField(String fieldName) throws WrongTypeException | |
| getJLongField | back to summary |
|---|---|
| public JLongField getJLongField(String fieldName) throws WrongTypeException | |
| getJShortField | back to summary |
|---|---|
| public JShortField getJShortField(String fieldName) throws WrongTypeException | |
| getName | back to summary |
|---|---|
| public String getName() | |
| getNarrowOopField | back to summary |
|---|---|
| public NarrowOopField getNarrowOopField(String fieldName) throws WrongTypeException | |
| getOopField | back to summary |
|---|---|
| public OopField getOopField(String fieldName) throws WrongTypeException | |
| getSize | back to summary |
|---|---|
| public long getSize() The size in bytes, at the machine level, of this type. This should be equivalent to the sizeof operator -- i.e., should include any compiler-inserted fields like the vtbl for C++ types. | |
| getSuperclass | back to summary |
|---|---|
| public Type getSuperclass() | |
| isCIntegerType | back to summary |
|---|---|
| public boolean isCIntegerType() Indicates whether this type is a C integer type -- regardless of size or signedness. | |
| isCStringType | back to summary |
|---|---|
| public boolean isCStringType() Indicates whether this type is const char*. | |
| isJavaPrimitiveType | back to summary |
|---|---|
| public boolean isJavaPrimitiveType() Indicates whether this type is one of the Java primitive types. | |
| isOopType | back to summary |
|---|---|
| public boolean isOopType() Indicates whether this type is an oop type in the VM. | |
| isPointerType | back to summary |
|---|---|
| public boolean isPointerType() Indicates whether this type is a pointer type. | |