Class Terminal
java.lang.Object
com.sun.tools.corba.ee.idl.constExpr.Expression
com.sun.tools.corba.ee.idl.constExpr.Terminal
This class contains values. Objects of this class are the terminal
nodes of an expression tree.
Note that there is a constructor for Double values, but not Float.
CORBA defines that all floating point expressions are evaluated as
double, and that the result is coerced back to float if necessary.
Note also that there is a constructor for long values, but not for
int or short. CORBA defines that all integral expressions are evaluated
as unsigned long. A CORBA long is a Java int. There is no unsigned int
in Java, so the next larger type, long, is used.
-
Field Summary
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
Terminal
(ConstEntry constReference) protected
protected
protected
protected
protected
protected
Terminal
(String representation, BigInteger bigIntegerValue) -
Method Summary
Methods inherited from class com.sun.tools.corba.ee.idl.constExpr.Expression
coerceToTarget, defaultType, rep, rep, toSignedTarget, toUnsigned, toUnsignedTarget, type, type, value, value
-
Constructor Details
-
Terminal
-
Terminal
-
Terminal
-
Terminal
-
Terminal
-
Terminal
-
Terminal
-
-
Method Details
-
evaluate
Description copied from class:Expression
Compute the value of this expression.- Specified by:
evaluate
in classExpression
- Throws:
EvaluationException
-