public class ConstantExpression extends Object implements Expression
Modifier and Type | Field and Description |
---|---|
static io.atlasmap.expression.internal.ConstantExpression.BooleanConstantExpression |
FALSE |
static io.atlasmap.expression.internal.ConstantExpression.BooleanConstantExpression |
NULL |
static io.atlasmap.expression.internal.ConstantExpression.BooleanConstantExpression |
TRUE |
cache
Constructor and Description |
---|
ConstantExpression(Object value) |
Modifier and Type | Method and Description |
---|---|
static ConstantExpression |
createFloat(String text) |
static ConstantExpression |
createFromDecimal(String text) |
static ConstantExpression |
createFromHex(String text) |
static ConstantExpression |
createFromOctal(String text) |
static String |
encodeString(String s)
Encodes the value of string so that it looks like it would look like when
it was provided in a selector.
|
boolean |
equals(Object o)
TODO: more efficient hashCode()
|
io.atlasmap.v2.Field |
evaluate(ExpressionContext expressionContext)
Execute the expression against the given context.
|
Object |
getValue() |
int |
hashCode()
TODO: more efficient hashCode()
|
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
clearCache, parse
public static final io.atlasmap.expression.internal.ConstantExpression.BooleanConstantExpression NULL
public static final io.atlasmap.expression.internal.ConstantExpression.BooleanConstantExpression TRUE
public static final io.atlasmap.expression.internal.ConstantExpression.BooleanConstantExpression FALSE
public ConstantExpression(Object value)
public static ConstantExpression createFromDecimal(String text)
public static ConstantExpression createFromHex(String text)
public static ConstantExpression createFromOctal(String text)
public static ConstantExpression createFloat(String text)
public io.atlasmap.v2.Field evaluate(ExpressionContext expressionContext) throws ExpressionException
Expression
evaluate
in interface Expression
expressionContext
- ExpressionContext
Field
represents a resultExpressionException
- If evaluation failspublic Object getValue()
public String toString()
toString
in class Object
Object.toString()
public int hashCode()
hashCode
in class Object
Object.hashCode()
public boolean equals(Object o)
equals
in class Object
Object.equals(java.lang.Object)
Copyright © 2020 JBoss by Red Hat. All rights reserved.