Class StringExpression
- java.lang.Object
-
- org.vedantatree.expressionoasis.expressions.StringExpression
-
- All Implemented Interfaces:
Expression
public class StringExpression extends Object implements Expression
This class expression is used to make the string value expression. It gives the string value.
-
-
Constructor Summary
Constructors Constructor Description StringExpression()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(ExpressionVisitor visitor)Allows an expression visitor to visit this expression and it's sub-expressions (implements Visitor design pattern).TypegetReturnType()Returns the string type.ValueObjectgetValue()Gets the value object for string value.voidinitialize(ExpressionContext expressionContext, Object parameters, boolean validate)Initializes the string value object.StringtoString()voiduninitialize(ExpressionContext expressionContext)Uninitaizes the expression
-
-
-
Method Detail
-
getValue
public ValueObject getValue() throws ExpressionEngineException
Gets the value object for string value.- Specified by:
getValuein interfaceExpression- Returns:
- the value of expression (after expression evaluation)
- Throws:
ExpressionEngineException- if there is any problem during execution- See Also:
Expression.getValue()
-
getReturnType
public Type getReturnType() throws ExpressionEngineException
Returns the string type.- Specified by:
getReturnTypein interfaceExpression- Returns:
- the type of expression
- Throws:
ExpressionEngineException- If there is any problem during execution- See Also:
Expression.getReturnType()
-
initialize
public void initialize(ExpressionContext expressionContext, Object parameters, boolean validate) throws ExpressionEngineException
Initializes the string value object.- Specified by:
initializein interfaceExpression- Parameters:
expressionContext- contextual information, may help in initializationparameters- for example, sub expressions and identifiers- Throws:
ExpressionEngineException- if there is any problem during execution- See Also:
org.vedantatree.expressionoasis.expressions.Expression#initialize(org.vedantatree.expressionoasis.ExpressionContext, java.lang.Object)
-
uninitialize
public void uninitialize(ExpressionContext expressionContext)
Uninitaizes the expression- Specified by:
uninitializein interfaceExpression- Parameters:
expressionContext- contextual information, may help in un-initialization- See Also:
Expression.uninitialize(org.vedantatree.expressionoasis.ExpressionContext)
-
toString
public String toString()
- Overrides:
toStringin classObject- See Also:
Object.toString()
-
accept
public void accept(ExpressionVisitor visitor)
Allows an expression visitor to visit this expression and it's sub-expressions (implements Visitor design pattern).- Specified by:
acceptin interfaceExpression- Parameters:
visitor- a visitor object that this expression must visit when accept is called.- See Also:
Expression.accept(org.vedantatree.expressionoasis.ExpressionVisitor)
-
-