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
Modifier and TypeFieldDescriptionstatic final io.atlasmap.expression.internal.ConstantExpression.BooleanConstantExpression
static final io.atlasmap.expression.internal.ConstantExpression.BooleanConstantExpression
static final io.atlasmap.expression.internal.ConstantExpression.BooleanConstantExpression
Fields inherited from interface io.atlasmap.expression.Expression
CACHE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ConstantExpression
createFloat
(String text) static ConstantExpression
createFromDecimal
(String text) static ConstantExpression
createFromHex
(String text) static ConstantExpression
createFromOctal
(String text) static String
Encodes the value of string so that it looks like it would look like when it was provided in a selector.boolean
TODO: more efficient hashCode()evaluate
(ExpressionContext expressionContext) Execute the expression against the given context.getValue()
int
hashCode()
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:Expression
Execute the expression against the given context.- Specified by:
evaluate
in interfaceExpression
- Parameters:
expressionContext
-ExpressionContext
- Returns:
Field
represents 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.
-