Class Expression
java.lang.Object
com.sun.tools.corba.se.idl.constExpr.Expression
- Direct Known Subclasses:
BinaryExpr,Terminal,UnaryExpr
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final BigIntegerstatic final BigIntegerstatic final BigIntegerstatic final BigIntegerstatic final BigIntegerstatic final BigIntegerstatic final BigIntegerstatic final BigIntegerstatic final BigIntegerstatic final BigIntegerstatic final BigIntegerstatic final BigIntegerstatic final BigIntegerstatic final BigIntegerstatic final BigIntegerstatic final BigIntegerstatic final BigIntegerstatic final BigIntegerstatic final BigIntegerstatic final BigIntegerstatic final BigIntegerstatic final BigInteger -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncoerceToTarget(Object obj) Coerces a number to the target type of this expression.protected static StringdefaultType(String targetType) Return the default computation type for the given target type.abstract Objectevaluate()Compute the value of this expression.rep()Get the representation of this expression.voidSet the representation of this expression.protected BigIntegerCoerces an integral value (BigInteger) to its corresponding signed representation, if the target type of this expression is signed.protected BigIntegerReturn the unsigned value of a BigInteger.protected BigIntegerCoerces an integral value (BigInteger) to its corresponding unsigned representation, if the target type of this expression is unsigned.type()Get the target type of this expression.voidSet the target type of this expression.value()Get the value of this expression.voidSet the value of this expression.
-
Field Details
-
negOne
-
zero
-
one
-
two
-
twoPow15
-
twoPow16
-
twoPow31
-
twoPow32
-
twoPow63
-
twoPow64
-
sMax
-
sMin
-
usMax
-
usMin
-
lMax
-
lMin
-
ulMax
-
ulMin
-
llMax
-
llMin
-
ullMax
-
ullMin
-
-
Constructor Details
-
Expression
public Expression()
-
-
Method Details
-
evaluate
Compute the value of this expression.- Throws:
EvaluationException
-
value
Set the value of this expression. -
value
Get the value of this expression. -
rep
Set the representation of this expression. -
rep
Get the representation of this expression. -
type
Set the target type of this expression. -
type
Get the target type of this expression. -
defaultType
Return the default computation type for the given target type. -
coerceToTarget
Coerces a number to the target type of this expression.- Parameters:
obj- The number to coerce.- Returns:
- the value of number coerced to the (target) type of this expression.
-
toUnsignedTarget
Coerces an integral value (BigInteger) to its corresponding unsigned representation, if the target type of this expression is unsigned.- Parameters:
b- The BigInteger to be coerced.- Returns:
- the value of an integral type coerced to its corresponding unsigned integral type, if the target type of this expression is unsigned.
-
toSignedTarget
Coerces an integral value (BigInteger) to its corresponding signed representation, if the target type of this expression is signed.- Parameters:
b- The BigInteger to be coerced.- Returns:
- the value of an integral type coerced to its corresponding signed integral type, if the target type of this expression is signed.
-
toUnsigned
Return the unsigned value of a BigInteger.
-