public abstract class Type extends java.lang.Object implements Switchable, java.io.Serializable, Numberable
int, java.lang.String.| Constructor and Description |
|---|
Type() |
| Modifier and Type | Method and Description |
|---|---|
void |
apply(Switch sw)
Method required for use of Switchable.
|
ArrayType |
getArrayType() |
int |
getNumber() |
ArrayType |
makeArrayType() |
Type |
merge(Type other,
Scene cm)
Returns the least common superclass of this type and other.
|
void |
setArrayType(ArrayType at) |
void |
setNumber(int number) |
static Type |
toMachineType(Type t)
Converts the int-like types (short, byte, boolean and char) to IntType.
|
abstract java.lang.String |
toString()
Returns a textual representation of this type.
|
protected ArrayType arrayType
public abstract java.lang.String toString()
toString in class java.lang.Objectpublic static Type toMachineType(Type t)
public Type merge(Type other, Scene cm)
public void apply(Switch sw)
apply in interface Switchablepublic void setArrayType(ArrayType at)
public ArrayType getArrayType()
public ArrayType makeArrayType()
public final int getNumber()
getNumber in interface Numberablepublic final void setNumber(int number)
setNumber in interface NumberableCopyright © 2012-2019 RoboVM AB. All Rights Reserved.