MathOperator
BinaryOperator
Random number operator.
Input 1: A Number (or expression returning a Number) that is the minimum
random number returned by the operator.
Input 2: A Number (or expression returning a Number) that is the maximum
random number returned by the operator.
Returns: A Number: java.lang.Math.random() between LHS and RHS.
Object
ComplexExpressionImpl
Operator
MathOperator
MathRandom
BinaryOperator
, Cloneable
, Expression
, Serializable
Field Summary |
Fields from com.bea.p13n.expression.operator.math. |
|
Fields from interface com.bea.p13n.expression.operator. |
|
Constructor Summary |
|
Method Summary |
public |
|
public |
|
public |
|
public |
|
public |
|
Methods from com.bea.p13n.expression.operator. |
|
Methods from com.bea.p13n.expression.internal. |
addListener, addSubExpression, clearCache, clone, createProxyExpression, equals, getCachedValue, getParent, getSource, getSubExpression, getSubExpressionCount, getUserData, hashCode, isCached, isCacheEnabled, isEqualitySubExpression, notifyListeners, removeAllSubExpressions, removeListener, removeSubExpression, removeSubExpression, setCachedValue, setCacheEnabled, setParent, setSource, setSubExpression, setUserData, toString, write |
Methods from class java.lang. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods from interface com.bea.p13n.expression.operator. |
|
Methods from interface com.bea.p13n.expression. |
|
Constructor Detail |
public MathRandom()
public MathRandom(Object
min,Object
max)
Method Detail |
public Object
getLeftHandSide()
Description copied from BinaryOperator.getLeftHandSide()
public Object
getMax()
Returns the maximum Number (or an expression returning a Number)
that can be generated.
public Object
getMin()
Returns the minimum Number (or an expression returning a Number)
that can be generated.
public Class
[] getParameterSignature()
Description copied from Expression.getParameterSignature()
Expression
.
Because the sub-expressions within the Expression
are
typically arguments or operands, some type validation is performed
by examining the class types of the sub-expressions against the
Expression
's parameter signature.
public Object
getRightHandSide()
Description copied from BinaryOperator.getRightHandSide()