net.sf.farrago.fennel.calc
Enum CalcProgramBuilder.OpType
java.lang.Object
java.lang.Enum<CalcProgramBuilder.OpType>
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
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
type
private FennelStandardTypeDescriptor type
ValueCount
private static final int ValueCount
shortName
private final String shortName
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()