org.ow2.opensuit.cel.impl.tree.impl.ast
Class AstMethod
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.AstInvocation
org.ow2.opensuit.cel.impl.tree.impl.ast.AstMethod
- All Implemented Interfaces:
- IExpression, IExprNode
public class AstMethod
- extends AstInvocation
| Fields inherited from class org.ow2.opensuit.cel.impl.tree.impl.ast.AstNode |
position |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
prefix
protected final AstNode prefix
method
protected java.lang.reflect.Method method
AstMethod
public AstMethod(int position,
AstNode prefix,
java.lang.String name,
java.util.List<AstNode> args)
compile
public boolean compile(ITypeConverter converter,
ICompilationContext context,
ICompilationResultWriter messages)
- Description copied from interface:
IExprNode
- Allow to compile the given expression with the associated
and . All
messages will be stored into the at
the end of the performed compilation.
- Specified by:
compile in interface IExprNode- Overrides:
compile in class AstInvocation
- Parameters:
converter - Interface for conversion typescontext - Interface for compilation contextmessages - Represent where the messages compilation
will be stored
- Returns:
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
isStaticValue
public boolean isStaticValue()
- Description copied from interface:
IExpression
- Returns
true if the expression has a static value (i.e. that does
not depend on any evaluation context).
In such a case, the invoke(...) method may be called with a null
evaluation context.
- Returns:
- boolean
invoke
public java.lang.Object invoke(IEvaluationContext context)
throws java.lang.Exception
- Description copied from interface:
IExpression
- Evaluates the expression.
- Throws:
java.lang.Exception
appendExpressionString
protected void appendExpressionString(java.lang.StringBuilder b)
- 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.