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, waitclearCache, parsepublic 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
Expressionevaluate in interface ExpressionexpressionContext - ExpressionContextField represents a resultExpressionException - If evaluation failspublic Object getValue()
public String toString()
toString in class ObjectObject.toString()public int hashCode()
hashCode in class ObjectObject.hashCode()public boolean equals(Object o)
equals in class ObjectObject.equals(java.lang.Object)Copyright © 2020 JBoss by Red Hat. All rights reserved.