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

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.AstLiteral
All Implemented Interfaces:
IExpression, IExprNode
Direct Known Subclasses:
AstBoolean, AstNull, AstNumber, AstString

public abstract class AstLiteral
extends AstRightValue


Field Summary
 
Fields inherited from class org.ow2.opensuit.cel.impl.tree.impl.ast.AstNode
position
 
Constructor Summary
AstLiteral(int position)
           
 
Method Summary
 boolean compile(ITypeConverter converter, ICompilationContext ctx, ICompilationResultWriter messages)
          Allow to compile the given expression with the associated and .
 boolean isStaticValue()
          Returns true if the expression has a static value (i.e. that does not depend on any evaluation context).
 
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
 

Constructor Detail

AstLiteral

public AstLiteral(int position)
Method Detail

compile

public final boolean compile(ITypeConverter converter,
                             ICompilationContext ctx,
                             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.

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

isStaticValue

public final 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


Copyright © 2008-2010 eBMWebsourcing. All Rights Reserved.