org.eclipse.birt.data.engine.api.querydefn
Class ScriptExpression
java.lang.Object
org.eclipse.birt.data.engine.api.querydefn.BaseExpression
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
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
exprText
protected java.lang.String exprText
constantValue
protected java.lang.Object constantValue
isConstant
protected boolean isConstant
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 textdataType
- Return data type of the expression
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.