public class PrimitiveType extends BaseSymbol implements Type
| Modifier and Type | Field and Description |
|---|---|
protected int |
typeIndex |
defNode, lexicalOrder, name, scope, type| Constructor and Description |
|---|
PrimitiveType(String name) |
| 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.
|
void |
setTypeIndex(int typeIndex) |
equals, getDefNode, getFullyQualifiedName, getInsertionOrderNumber, getScope, getType, hashCode, setDefNode, setInsertionOrderNumber, setScope, setType, toStringpublic PrimitiveType(String name)
public int getTypeIndex()
TypegetTypeIndex in interface Typepublic void setTypeIndex(int typeIndex)
Copyright © 2016 ANTLR. All Rights Reserved.