Class Terminal
- java.lang.Object
-
- com.sun.tools.corba.ee.idl.constExpr.Expression
-
- com.sun.tools.corba.ee.idl.constExpr.Terminal
-
public class Terminal extends Expression
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.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedTerminal(ConstEntry constReference)protectedTerminal(java.lang.String stringValue, boolean isWide)protectedTerminal(java.lang.String representation, java.lang.Boolean booleanValue)protectedTerminal(java.lang.String representation, java.lang.Character charValue, boolean isWide)protectedTerminal(java.lang.String representation, java.lang.Double doubleValue)protectedTerminal(java.lang.String representation, java.lang.Long longValue)protectedTerminal(java.lang.String representation, java.math.BigInteger bigIntegerValue)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectevaluate()Compute the value of this expression.-
Methods inherited from class com.sun.tools.corba.ee.idl.constExpr.Expression
coerceToTarget, defaultType, rep, rep, toSignedTarget, toUnsigned, toUnsignedTarget, type, type, value, value
-
-
-
-
Constructor Detail
-
Terminal
protected Terminal(java.lang.String representation, java.lang.Character charValue, boolean isWide)
-
Terminal
protected Terminal(java.lang.String representation, java.lang.Boolean booleanValue)
-
Terminal
protected Terminal(java.lang.String representation, java.math.BigInteger bigIntegerValue)
-
Terminal
protected Terminal(java.lang.String representation, java.lang.Long longValue)
-
Terminal
protected Terminal(java.lang.String representation, java.lang.Double doubleValue)
-
Terminal
protected Terminal(java.lang.String stringValue, boolean isWide)
-
Terminal
protected Terminal(ConstEntry constReference)
-
-
Method Detail
-
evaluate
public java.lang.Object evaluate() throws EvaluationExceptionDescription copied from class:ExpressionCompute the value of this expression.- Specified by:
evaluatein classExpression- Throws:
EvaluationException
-
-