org.eclipse.birt.data.engine.api.querydefn
Class ScriptExpression

java.lang.Object
  extended by org.eclipse.birt.data.engine.api.querydefn.BaseExpression
      extended by org.eclipse.birt.data.engine.api.querydefn.ScriptExpression
All Implemented Interfaces:
IBaseExpression, IScriptExpression

public class ScriptExpression
extends BaseExpression
implements IScriptExpression

Default implementation of the IScriptExpression interface


Field Summary
protected  java.lang.Object constantValue
           
protected  java.lang.String exprText
           
protected  boolean isConstant
           
 
Fields inherited from class org.eclipse.birt.data.engine.api.querydefn.BaseExpression
dataType, handle
 
Fields inherited from interface org.eclipse.birt.data.engine.api.IBaseExpression
GROUP_OVERALL
 
Constructor Summary
ScriptExpression(java.lang.String text)
          Constructs a Javascript expression
ScriptExpression(java.lang.String text, int dataType)
          Constructs a Javascript expression
 
Method Summary
 java.lang.Object getConstantValue()
          This method return the constant value if this expression is a constant expression
 java.lang.String getText()
           
 boolean isConstant()
           
 void setConstant(boolean isConstant)
           
 void setConstantValue(java.lang.Object constantValue)
          Set the constant value for constant expression
 void setText(java.lang.String text)
          Sets the Javascript expression text
 
Methods inherited from class org.eclipse.birt.data.engine.api.querydefn.BaseExpression
getDataType, getGroupName, getHandle, getScriptId, setDataType, setGroupName, setHandle, setScriptId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.eclipse.birt.data.engine.api.IBaseExpression
getDataType, getGroupName, getHandle, getScriptId, setGroupName, setHandle, setScriptId
 

Field Detail

exprText

protected java.lang.String exprText

constantValue

protected java.lang.Object constantValue

isConstant

protected boolean isConstant
Constructor Detail

ScriptExpression

public ScriptExpression(java.lang.String text)
Constructs a Javascript expression

Parameters:
text - Javascript expression text

ScriptExpression

public ScriptExpression(java.lang.String text,
                        int dataType)
Constructs a Javascript expression

Parameters:
text - Javascript expression text
dataType - Return data type of the expression
Method Detail

getText

public java.lang.String getText()
Specified by:
getText in interface IScriptExpression
Returns:
the Javascript expression text
See Also:
IScriptExpression.getText()

setText

public void setText(java.lang.String text)
Sets the Javascript expression text


getConstantValue

public java.lang.Object getConstantValue()
Description copied from interface: IScriptExpression
This method return the constant value if this expression is a constant expression

Specified by:
getConstantValue in interface IScriptExpression
Returns:

isConstant

public boolean isConstant()
Specified by:
isConstant in interface IScriptExpression
Returns:
return true, if this expression is a constant expression;

setConstant

public void setConstant(boolean isConstant)

setConstantValue

public void setConstantValue(java.lang.Object constantValue)
Description copied from interface: IScriptExpression
Set the constant value for constant expression

Specified by:
setConstantValue in interface IScriptExpression


Copyright © 2008 Actuate Corp. All rights reserved.