|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.nrl.parser.ast.NRLDataType
public class NRLDataType
Representation of NRL primitive types. A type will be of a certain kind (e.g. integer, string) and will also be either scalar, or a list or enumeration of that type.
Nested Class Summary | |
---|---|
static class |
NRLDataType.Type
Enumeration of basic type names |
Field Summary | |
---|---|
static NRLDataType |
BOOLEAN
Scalar boolean type |
static NRLDataType |
DATE
Scalar date type |
static NRLDataType |
DECIMAL
Scalar decimal (float, double) type |
static NRLDataType |
ELEMENT
Scalar element type (complex model element) |
static NRLDataType |
INTEGER
Scalar Integer type |
static NRLDataType |
STRING
Scalar string type |
static NRLDataType |
UNKNOWN
|
static NRLDataType |
VOID
Scalar void type |
Constructor Summary | |
---|---|
NRLDataType()
|
|
NRLDataType(NRLDataType.Type type)
|
|
NRLDataType(NRLDataType.Type type,
boolean collection,
boolean enumeration)
|
|
NRLDataType(NRLDataType other)
|
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
NRLDataType.Type |
getType()
|
boolean |
isCollection()
|
boolean |
isEnumeration()
|
void |
setCollection(boolean collection)
|
void |
setEnumeration(boolean enumeration)
|
void |
setType(NRLDataType.Type type)
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static NRLDataType UNKNOWN
public static NRLDataType STRING
public static NRLDataType DATE
public static NRLDataType INTEGER
public static NRLDataType DECIMAL
public static NRLDataType BOOLEAN
public static NRLDataType VOID
public static NRLDataType ELEMENT
Constructor Detail |
---|
public NRLDataType()
public NRLDataType(NRLDataType.Type type)
public NRLDataType(NRLDataType other)
public NRLDataType(NRLDataType.Type type, boolean collection, boolean enumeration)
Method Detail |
---|
public boolean equals(Object obj)
equals
in class Object
public NRLDataType.Type getType()
public boolean isCollection()
public boolean isEnumeration()
public void setCollection(boolean collection)
public void setEnumeration(boolean enumeration)
public void setType(NRLDataType.Type type)
public String toString()
toString
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |