| |
|
| java.lang.Object org.apache.harmony.tools.javah.ClazzField
ClazzField | public class ClazzField (Code) | | This class is a wrapper of BCEL's Field class.
This class depends on Apache Byte Code Engineering Library (BCEL) 5.0 or
later. Please see http://jakarta.apache.org/bcel for more information
about this library.
|
Constructor Summary | |
public | ClazzField(Clazz clazz, Field wrappedField) Constructs a ClazzField object. |
Method Summary | |
public String | getMangledName() Returns a mangled name of a wrapped field. | public String | getName() Returns a name of the wrapped field. | public String | getNativeValue() Returns a string representation of a native value
based on a wrapped field value. | public static String | getNativeValue(Type type, ConstantValue value) Returns a string representation of a given object native value.
Parameters: type - - a Class object that wraps a data type. Parameters: value - - an object that wraps a value of a primitive data type. | public String | toString() Returns a string that represents a field part of
a JNI-style header file. |
ClazzField | public ClazzField(Clazz clazz, Field wrappedField)(Code) | | Constructs a ClazzField object.
Parameters: clazz - - an owner. Parameters: field - - a wrapped Field object. |
getMangledName | public String getMangledName()(Code) | | Returns a mangled name of a wrapped field.
a mangled field name. |
getName | public String getName()(Code) | | Returns a name of the wrapped field.
a field name. |
getNativeValue | public String getNativeValue() throws Exception(Code) | | Returns a string representation of a native value
based on a wrapped field value.
a string that represents a wrapped field valueas a native data type. throws: Exception - - if the wrapped field value is inaccessible. |
getNativeValue | public static String getNativeValue(Type type, ConstantValue value)(Code) | | Returns a string representation of a given object native value.
Parameters: type - - a Class object that wraps a data type. Parameters: value - - an object that wraps a value of a primitive data type. a string that represents a native data type. |
toString | public String toString()(Code) | | Returns a string that represents a field part of
a JNI-style header file.
|
|
|
|