net.sf.farrago.fennel.calc
Enum CalcProgramBuilder.OpType

java.lang.Object
  extended by java.lang.Enum<CalcProgramBuilder.OpType>
      extended by net.sf.farrago.fennel.calc.CalcProgramBuilder.OpType
All Implemented Interfaces:
Serializable, Comparable<CalcProgramBuilder.OpType>
Enclosing class:
CalcProgramBuilder

public static enum CalcProgramBuilder.OpType
extends Enum<CalcProgramBuilder.OpType>

Enumeration of the types supported by the calculator. These types map onto the FennelStandardTypeDescriptor values, and even have the same names and ordinals.

See Also:
CalcProgramBuilder.Uint4_MAX, CalcProgramBuilder.Uint8_MAX

Enum Constant Summary
Binary
           
Bool
           
Char
           
Double
           
Int1
           
Int2
           
Int4
           
Int8
           
Real
           
Uint1
           
Uint2
           
Uint4
           
Uint8
           
Varbinary
           
Varchar
           
 
Field Summary
private  String shortName
           
private  FennelStandardTypeDescriptor type
           
private static int ValueCount
           
 
Method Summary
private  FennelStandardTypeDescriptor getType()
           
 boolean isApprox()
           
 boolean isExact()
           
 boolean isNumeric()
           
 String toString()
           
static CalcProgramBuilder.OpType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static CalcProgramBuilder.OpType[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

Int1

public static final CalcProgramBuilder.OpType Int1

Uint1

public static final CalcProgramBuilder.OpType Uint1

Int2

public static final CalcProgramBuilder.OpType Int2

Uint2

public static final CalcProgramBuilder.OpType Uint2

Int4

public static final CalcProgramBuilder.OpType Int4

Uint4

public static final CalcProgramBuilder.OpType Uint4

Int8

public static final CalcProgramBuilder.OpType Int8

Uint8

public static final CalcProgramBuilder.OpType Uint8

Bool

public static final CalcProgramBuilder.OpType Bool

Real

public static final CalcProgramBuilder.OpType Real

Double

public static final CalcProgramBuilder.OpType Double

Char

public static final CalcProgramBuilder.OpType Char

Varchar

public static final CalcProgramBuilder.OpType Varchar

Binary

public static final CalcProgramBuilder.OpType Binary

Varbinary

public static final CalcProgramBuilder.OpType Varbinary
Field Detail

type

private FennelStandardTypeDescriptor type

ValueCount

private static final int ValueCount

shortName

private final String shortName
Method Detail

values

public static final CalcProgramBuilder.OpType[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(CalcProgramBuilder.OpType c : CalcProgramBuilder.OpType.values())
        System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they're declared

valueOf

public static CalcProgramBuilder.OpType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name

toString

public String toString()
Overrides:
toString in class Enum<CalcProgramBuilder.OpType>

getType

private FennelStandardTypeDescriptor getType()

isExact

public boolean isExact()

isApprox

public boolean isApprox()

isNumeric

public boolean isNumeric()