|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.ujac.util.exi.type.BaseType org.ujac.util.exi.type.BaseNumberType org.ujac.util.exi.type.FloatType
public class FloatType
Name: FloatType
Description: An expression type handler for float values.
Nested Class Summary | |
---|---|
class |
FloatType.AbsOperation
The 'abs' operation for Floats. |
class |
FloatType.AddOperation
The 'add' operation for Floats. |
class |
FloatType.DivOperation
The 'div' operation for Floats. |
class |
FloatType.EqualOperation
The equal compare operation for Floats. |
class |
FloatType.GreaterEqualOperation
The 'greater equal' compare operation for Floats. |
class |
FloatType.GreaterOperation
The 'greater' compare operation for Floats. |
class |
FloatType.LessEqualOperation
The 'less equal' compare operation for Floats. |
class |
FloatType.LessOperation
The 'less' compare operation for Floats. |
class |
FloatType.MaxOperation
The 'max' operation for Floats. |
class |
FloatType.MinOperation
The 'min' operation for Floats. |
class |
FloatType.MulOperation
The 'mul' operation for Floats. |
class |
FloatType.NotEqualOperation
The 'not equal' compare operation for Floats. |
class |
FloatType.SubOperation
The 'sub' operation for Floats. |
Nested classes/interfaces inherited from class org.ujac.util.exi.type.BaseNumberType |
---|
BaseNumberType.FormatOperation |
Nested classes/interfaces inherited from class org.ujac.util.exi.type.BaseType |
---|
BaseType.InstanceofOperation, BaseType.ObjectDefinedOperation, BaseType.ObjectNotDefinedOperation, BaseType.ToStringOperation |
Field Summary |
---|
Fields inherited from class org.ujac.util.exi.type.BaseType |
---|
interpreter, operations |
Constructor Summary | |
---|---|
FloatType(ExpressionInterpreter interpreter)
Constructs a FloatType instance with no specific arguments. |
Method Summary | |
---|---|
protected String |
execToString(ExpressionTuple expr,
FormatHelper formatHelper)
Executes the toString operation. |
String |
getAlias()
Gets the alias of the expression type. |
Number |
getNegative(Number number)
Gets the negative value for the given number. |
Class |
getType()
Gets the class of the expression type. |
Object |
typeCast(Object value)
Casts the given value into the handler-specific type. |
Methods inherited from class org.ujac.util.exi.type.BaseType |
---|
addOperation, evalTuple, getDescription, getOperation, getOperationNames, getOperations, getTypeName, removeAllOperations, removeOperation |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FloatType(ExpressionInterpreter interpreter)
interpreter
- Method Detail |
---|
protected String execToString(ExpressionTuple expr, FormatHelper formatHelper)
execToString
in class BaseType
expr
- The expression, holding the object to get as string.formatHelper
- The format helper to use.
public Class getType()
ExpressionType
ExpressionType.getType()
public String getAlias()
getAlias
in interface ExpressionType
getAlias
in class BaseType
public Number getNegative(Number number)
getNegative
in class BaseNumberType
number
- The number to negate.
public Object typeCast(Object value) throws TypeCastException
typeCast
in interface ExpressionType
typeCast
in class BaseType
value
- The value to cast.
TypeCastException
- In case the type cast failed.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |