Package io.atlasmap.expression.internal
Class ConstantExpression
java.lang.Object
io.atlasmap.expression.internal.ConstantExpression
- All Implemented Interfaces:
Expression
Represents a constant expression.
- Version:
- $Revision: 1.2 $
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final io.atlasmap.expression.internal.ConstantExpression.BooleanConstantExpressionstatic final io.atlasmap.expression.internal.ConstantExpression.BooleanConstantExpressionstatic final io.atlasmap.expression.internal.ConstantExpression.BooleanConstantExpressionFields inherited from interface io.atlasmap.expression.Expression
CACHE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ConstantExpressioncreateFloat(String text) static ConstantExpressioncreateFromDecimal(String text) static ConstantExpressioncreateFromHex(String text) static ConstantExpressioncreateFromOctal(String text) static StringEncodes the value of string so that it looks like it would look like when it was provided in a selector.booleanTODO: more efficient hashCode()evaluate(ExpressionContext expressionContext) Execute the expression against the given context.getValue()inthashCode()TODO: more efficient hashCode()toString()
-
Field Details
-
NULL
public static final io.atlasmap.expression.internal.ConstantExpression.BooleanConstantExpression NULL -
TRUE
public static final io.atlasmap.expression.internal.ConstantExpression.BooleanConstantExpression TRUE -
FALSE
public static final io.atlasmap.expression.internal.ConstantExpression.BooleanConstantExpression FALSE
-
-
Constructor Details
-
ConstantExpression
-
-
Method Details
-
createFromDecimal
-
createFromHex
-
createFromOctal
-
createFloat
-
evaluate
Description copied from interface:ExpressionExecute the expression against the given context.- Specified by:
evaluatein interfaceExpression- Parameters:
expressionContext-ExpressionContext- Returns:
Fieldrepresents a result- Throws:
ExpressionException- If evaluation fails
-
getValue
-
toString
-
hashCode
public int hashCode()TODO: more efficient hashCode() -
equals
TODO: more efficient hashCode() -
encodeString
Encodes the value of string so that it looks like it would look like when it was provided in a selector.
-