org.ow2.opensuit.cel.impl.tree.impl.ast
Class AstInvocation

java.lang.Object
  extended by org.ow2.opensuit.cel.impl.tree.impl.ast.AstNode
      extended by org.ow2.opensuit.cel.impl.tree.impl.ast.AstRightValue
          extended by org.ow2.opensuit.cel.impl.tree.impl.ast.AstInvocation
All Implemented Interfaces:
IExpression, IExprNode
Direct Known Subclasses:
AstFunction, AstMethod

public abstract class AstInvocation
extends AstRightValue


Field Summary
protected  java.util.List<AstNode> args
           
protected  ITypeConverter converter
           
protected  java.lang.String name
           
 
Fields inherited from class org.ow2.opensuit.cel.impl.tree.impl.ast.AstNode
position
 
Constructor Summary
AstInvocation(int position, java.lang.String name, java.util.List<AstNode> args)
           
 
Method Summary
 boolean compile(ITypeConverter converter, ICompilationContext context, ICompilationResultWriter results)
          Allow to compile the given expression with the associated and .
protected  java.lang.Object invoke(IEvaluationContext context, java.lang.reflect.Method method, java.lang.Object obj)
           
protected  boolean matchesParamTypes(java.lang.reflect.Method method)
           
 
Methods inherited from class org.ow2.opensuit.cel.impl.tree.impl.ast.AstRightValue
isReadOnly, set
 
Methods inherited from class org.ow2.opensuit.cel.impl.tree.impl.ast.AstNode
appendExpressionString, appendValuePattern, getExpressionString, getPosition, getValuePattern, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.ow2.opensuit.cel.IExpression
getGenericType, getType, invoke, isStaticValue
 

Field Detail

converter

protected ITypeConverter converter

args

protected final java.util.List<AstNode> args

name

protected final java.lang.String name
Constructor Detail

AstInvocation

public AstInvocation(int position,
                     java.lang.String name,
                     java.util.List<AstNode> args)
Method Detail

compile

public boolean compile(ITypeConverter converter,
                       ICompilationContext context,
                       ICompilationResultWriter results)
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.

Parameters:
converter - Interface for conversion types
context - Interface for compilation context
results - Represent where the messages compilation will be stored
Returns:

matchesParamTypes

protected boolean matchesParamTypes(java.lang.reflect.Method method)

invoke

protected java.lang.Object invoke(IEvaluationContext context,
                                  java.lang.reflect.Method method,
                                  java.lang.Object obj)
                           throws java.lang.Exception
Throws:
java.lang.Exception


Copyright © 2008-2010 eBMWebsourcing. All Rights Reserved.