public class ArrayMetaType extends AbstractMetaType
ALLOWED_CLASSNAMES| Constructor and Description |
|---|
ArrayMetaType(int dimension,
MetaType elementType)
Construct an ArrayMetaType.
|
ArrayMetaType(int dimension,
MetaType elementType,
boolean primitiveArray)
Construct an ArrayMetaType.
|
ArrayMetaType(SimpleMetaType elementType,
boolean primitiveArray)
Construct an ArrayMetaType.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
static ArrayMetaType |
getArrayType(MetaType elementType)
Get array meta type.
|
int |
getDimension()
Get the dimension of the array
|
MetaType |
getElementType()
Get the meta type of the array elements
|
static ArrayMetaType |
getPrimitiveArrayType(Class<?> arrayClass)
Get primitive array meta type.
|
static String |
getPrimitiveEncoding(String typeName)
Get the char encoding string for the type name.
|
static SimpleMetaType |
getPrimitiveMetaType(String primitiveTypeName)
Get primitive meta type.
|
static String |
getPrimitiveName(String typeName)
Get the char encoding string for the type name.
|
int |
hashCode() |
boolean |
isPrimitiveArray()
Is primitive array.
|
static boolean |
isPrimitiveEncoding(String primitiveKey)
Is primitive key.
|
boolean |
isValue(Object obj)
Whether the passed value is one of those described by this meta type.
|
String |
toString() |
getClassName, getDescription, getTypeName, isArray, isCollection, isComposite, isEnum, isGeneric, isPrimitive, isProperties, isSimple, isTablepublic ArrayMetaType(int dimension,
MetaType elementType)
dimension - the number of dimensions in the arrayelementType - the open type of the array elementsIllegalArgumentException - for a null argument or non-negative dimension or when meta type is an ArrayMetaTypepublic ArrayMetaType(SimpleMetaType elementType, boolean primitiveArray)
elementType - the element typeprimitiveArray - is primitive arraypublic ArrayMetaType(int dimension,
MetaType elementType,
boolean primitiveArray)
dimension - the number of dimensions in the arrayelementType - the open type of the array elementsprimitiveArray - is primitive arrayIllegalArgumentException - for a null argument or non-negative dimension or when meta type is an ArrayMetaTypepublic static boolean isPrimitiveEncoding(String primitiveKey)
primitiveKey - the key to checkpublic static SimpleMetaType getPrimitiveMetaType(String primitiveTypeName)
primitiveTypeName - primitive type namepublic static String getPrimitiveEncoding(String typeName)
typeName - - the primitive wrapper type namepublic static String getPrimitiveName(String typeName)
typeName - - the primitive wrapper type namepublic static ArrayMetaType getArrayType(MetaType elementType)
elementType - the element meta typepublic static ArrayMetaType getPrimitiveArrayType(Class<?> arrayClass)
arrayClass - array classpublic int getDimension()
public MetaType getElementType()
public boolean isPrimitiveArray()
public boolean isValue(Object obj)
MetaTypeisValue in interface MetaTypeisValue in class AbstractMetaTypeobj - the object to testCopyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.