public class JavaType extends Object
Modifier and Type | Method and Description |
---|---|
Object |
clone() |
static JavaType |
createForCArray(Type elementType)
Creates a JavaType corresponding to an array of the given
element type.
|
static JavaType |
createForCCharPointer() |
static JavaType |
createForCDoublePointer() |
static JavaType |
createForCFloatPointer() |
static JavaType |
createForCInt32Pointer() |
static JavaType |
createForCInt64Pointer() |
static JavaType |
createForClass(Class<?> clazz)
Creates a JavaType corresponding to the given Java type.
|
static JavaType |
createForCShortPointer() |
static JavaType |
createForCStruct(String name)
Creates a JavaType corresponding to the specified C CompoundType
name; for example, if "Foo" is supplied, then this JavaType
represents a "Foo *" by way of a StructAccessor.
|
static JavaType |
createForCVoidPointer() |
static JavaType |
createForJNIEnv() |
void |
dump() |
boolean |
equals(Object arg) |
static JavaType |
forNIOBufferClass() |
static JavaType |
forNIOByteBufferArrayClass() |
static JavaType |
forNIOByteBufferClass() |
static JavaType |
forNIODoubleBufferClass() |
static JavaType |
forNIOFloatBufferClass() |
static JavaType |
forNIOIntBufferClass() |
static JavaType |
forNIOLongBufferClass() |
static JavaType |
forNIOPointerBufferClass() |
static JavaType |
forNIOShortBufferClass() |
String |
getDescriptor()
Returns the descriptor (internal type signature) corresponding to
this type.
|
String |
getDumpString() |
JavaType |
getElementType() |
Class<?> |
getJavaClass()
Returns the Java Class corresponding to this type.
|
String |
getName()
Returns the Java type name corresponding to this type.
|
int |
hashCode() |
boolean |
isArray() |
boolean |
isArrayOfCompoundTypeWrappers() |
boolean |
isByte() |
boolean |
isByteArray() |
boolean |
isCCharPointerType() |
boolean |
isCDoublePointerType() |
boolean |
isCFloatPointerType() |
boolean |
isCInt32PointerType() |
boolean |
isCInt64PointerType() |
boolean |
isCompoundTypeWrapper() |
boolean |
isCPrimitivePointerType() |
boolean |
isCShortPointerType() |
boolean |
isCVoidPointerType() |
boolean |
isDouble() |
boolean |
isDoubleArray() |
boolean |
isFloat() |
boolean |
isFloatArray() |
boolean |
isInt() |
boolean |
isIntArray() |
boolean |
isJNIEnv() |
boolean |
isLong() |
boolean |
isLongArray() |
boolean |
isNIOBuffer() |
boolean |
isNIOBufferArray() |
boolean |
isNIOByteBuffer() |
boolean |
isNIOByteBufferArray() |
boolean |
isNIOLongBuffer() |
boolean |
isNIOPointerBuffer() |
boolean |
isPrimitive() |
boolean |
isPrimitiveArray() |
boolean |
isShort() |
boolean |
isShortArray() |
boolean |
isString() |
boolean |
isStringArray() |
boolean |
isVoid() |
String |
jniTypeName()
Returns the String corresponding to the JNI type for this type,
or NULL if it can't be represented (i.e., it's a boxing class
that we need to call getBuffer() on.)
|
String |
toString() |
public JavaType getElementType()
public static JavaType createForClass(Class<?> clazz)
public static JavaType createForCStruct(String name)
public static JavaType createForCArray(Type elementType)
public static JavaType createForCVoidPointer()
public static JavaType createForCCharPointer()
public static JavaType createForCShortPointer()
public static JavaType createForCInt32Pointer()
public static JavaType createForCInt64Pointer()
public static JavaType createForCFloatPointer()
public static JavaType createForCDoublePointer()
public static JavaType createForJNIEnv()
public static JavaType forNIOBufferClass()
public static JavaType forNIOByteBufferClass()
public static JavaType forNIOShortBufferClass()
public static JavaType forNIOIntBufferClass()
public static JavaType forNIOLongBufferClass()
public static JavaType forNIOPointerBufferClass()
public static JavaType forNIOFloatBufferClass()
public static JavaType forNIODoubleBufferClass()
public static JavaType forNIOByteBufferArrayClass()
public Class<?> getJavaClass()
public String getName()
public String getDescriptor()
public String jniTypeName()
public boolean isNIOBuffer()
public boolean isNIOByteBuffer()
public boolean isNIOByteBufferArray()
public boolean isNIOBufferArray()
public boolean isNIOLongBuffer()
public boolean isNIOPointerBuffer()
public boolean isString()
public boolean isArray()
public boolean isFloatArray()
public boolean isDoubleArray()
public boolean isByteArray()
public boolean isIntArray()
public boolean isShortArray()
public boolean isLongArray()
public boolean isStringArray()
public boolean isPrimitive()
public boolean isPrimitiveArray()
public boolean isShort()
public boolean isFloat()
public boolean isDouble()
public boolean isByte()
public boolean isLong()
public boolean isInt()
public boolean isVoid()
public boolean isCompoundTypeWrapper()
public boolean isArrayOfCompoundTypeWrappers()
public boolean isCPrimitivePointerType()
public boolean isCVoidPointerType()
public boolean isCCharPointerType()
public boolean isCShortPointerType()
public boolean isCInt32PointerType()
public boolean isCInt64PointerType()
public boolean isCFloatPointerType()
public boolean isCDoublePointerType()
public boolean isJNIEnv()
public String getDumpString()
public void dump()