net.sourceforge.nrl.parser.ast
Class NRLDataType

java.lang.Object
  extended by net.sourceforge.nrl.parser.ast.NRLDataType

public class NRLDataType
extends Object

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

UNKNOWN

public static NRLDataType UNKNOWN

STRING

public static NRLDataType STRING
Scalar string type


DATE

public static NRLDataType DATE
Scalar date type


INTEGER

public static NRLDataType INTEGER
Scalar Integer type


DECIMAL

public static NRLDataType DECIMAL
Scalar decimal (float, double) type


BOOLEAN

public static NRLDataType BOOLEAN
Scalar boolean type


VOID

public static NRLDataType VOID
Scalar void type


ELEMENT

public static NRLDataType ELEMENT
Scalar element type (complex model element)

Constructor Detail

NRLDataType

public NRLDataType()

NRLDataType

public NRLDataType(NRLDataType.Type type)

NRLDataType

public NRLDataType(NRLDataType other)

NRLDataType

public NRLDataType(NRLDataType.Type type,
                   boolean collection,
                   boolean enumeration)
Method Detail

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

getType

public NRLDataType.Type getType()

isCollection

public boolean isCollection()

isEnumeration

public boolean isEnumeration()

setCollection

public void setCollection(boolean collection)

setEnumeration

public void setEnumeration(boolean enumeration)

setType

public void setType(NRLDataType.Type type)

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2006-2010 Christian Nentwich and others