org.ow2.opensuit.cel.impl.tree.impl.ast
Class AstNumber
java.lang.Object
org.ow2.opensuit.cel.impl.tree.impl.ast.AstNode
org.ow2.opensuit.cel.impl.tree.impl.ast.AstRightValue
org.ow2.opensuit.cel.impl.tree.impl.ast.AstLiteral
org.ow2.opensuit.cel.impl.tree.impl.ast.AstNumber
- All Implemented Interfaces:
- IExpression, IExprNode
public final class AstNumber
- extends AstLiteral
| Fields inherited from class org.ow2.opensuit.cel.impl.tree.impl.ast.AstNode |
position |
|
Constructor Summary |
AstNumber(int position,
java.lang.Number value)
|
|
Method Summary |
protected void |
appendExpressionString(java.lang.StringBuilder builder)
Recursive method to build an expression string form. |
protected void |
appendValuePattern(java.lang.StringBuilder builder)
Recursive method to build the returned values regular expression. |
java.lang.reflect.Type |
getGenericType()
Returns the expression generic type |
java.lang.Class<?> |
getType()
Returns the expression type |
java.lang.Object |
invoke(IEvaluationContext context)
Evaluates the expression. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
AstNumber
public AstNumber(int position,
java.lang.Number value)
invoke
public java.lang.Object invoke(IEvaluationContext context)
throws ExpressionEvaluationException
- Description copied from interface:
IExpression
- Evaluates the expression.
- Throws:
ExpressionEvaluationException
getType
public java.lang.Class<?> getType()
- Description copied from interface:
IExpression
- Returns the expression type
getGenericType
public java.lang.reflect.Type getGenericType()
- Description copied from interface:
IExpression
- Returns the expression generic type
appendExpressionString
protected void appendExpressionString(java.lang.StringBuilder builder)
- Description copied from class:
AstNode
- Recursive method to build an expression string form.
- Specified by:
appendExpressionString in class AstNode
appendValuePattern
protected void appendValuePattern(java.lang.StringBuilder builder)
- Description copied from class:
AstNode
- Recursive method to build the returned values regular expression.
This is used for advanced validation.
- Specified by:
appendValuePattern in class AstNode
Copyright © 2008-2010 eBMWebsourcing. All Rights Reserved.