public abstract class Type extends Object
| Modifier and Type | Field and Description |
|---|---|
protected Class |
clazz
The corresponding class object.
|
protected int |
enumType
The FieldTypeEnumeration constant for this Type.
|
protected String |
name
The name of the type represented by this object.
|
| Constructor and Description |
|---|
Type(String name,
Class clazz)
Creates a new Type object with the specified name.
|
Type(String name,
Class clazz,
int enumType)
Creates a new Type object with the specified name.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj)
Indicates whether some other object is "equal to" this one.
|
int |
getEnumType()
Returns the FieldTypeEnumeration value for this type.
|
Class |
getJavaClass()
Returns the corresponding class object.
|
String |
getName()
Returns the name of the type.
|
abstract boolean |
isCompatibleWith(Type type)
Checks type compatibility.
|
boolean |
isOrderable()
Returns whether this represents a type with an
defined order.
|
String |
toString()
Representation of this type as a string.
|
protected String name
protected Class clazz
protected int enumType
public Type(String name, Class clazz)
name - name of the type represented by thisclazz - the class object for this typepublic String getName()
public Class getJavaClass()
public abstract boolean isCompatibleWith(Type type)
type - the type this is checked with.public boolean isOrderable()
public int getEnumType()
public String toString()
Copyright © 2017. All rights reserved.