public class ArrayType extends Object implements Type
| Modifier and Type | Field and Description |
|---|---|
protected Type |
elemType |
protected int |
numElems |
| Constructor and Description |
|---|
ArrayType(Type elemType) |
ArrayType(Type elemType,
int numElems) |
| Modifier and Type | Method and Description |
|---|---|
String |
getName() |
int |
getTypeIndex()
It is useful during type computation and code gen to assign an int
index to the primitive types and possibly user-defined types like
structs and classes.
|
String |
toString() |
protected final Type elemType
protected final int numElems
public ArrayType(Type elemType)
public ArrayType(Type elemType, int numElems)
public int getTypeIndex()
TypegetTypeIndex in interface TypeCopyright © 2016 ANTLR. All Rights Reserved.