public final class ValueExpression extends Object implements Externalizable
Constructor and Description |
---|
ValueExpression(String expressionString)
Construct a new instance.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other)
Determine whether this object is equal to another.
|
boolean |
equals(ValueExpression other)
Determine whether this object is equal to another.
|
String |
getExpressionString()
Get the raw expression string.
|
int |
hashCode()
Get the hash code of the expression string.
|
static String |
quote(String string)
Quote a string so that it can be used in an expression as a literal string, instead of being expanded.
|
void |
readExternal(ObjectInput in)
Deserialize this instance.
|
BigDecimal |
resolveBigDecimal()
Resolve this expression to a decimal value.
|
BigDecimal |
resolveBigDecimal(ValueExpressionResolver resolver)
Resolve this expression to a decimal value.
|
BigInteger |
resolveBigInteger()
Resolve this expression to a large integer value.
|
BigInteger |
resolveBigInteger(ValueExpressionResolver resolver)
Resolve this expression to a large integer value.
|
boolean |
resolveBoolean()
Resolve this expression to a
boolean value. |
boolean |
resolveBoolean(ValueExpressionResolver resolver)
Resolve this expression to a
boolean value. |
int |
resolveInt()
Resolve this expression to an
int value. |
int |
resolveInt(ValueExpressionResolver resolver)
Resolve this expression to an
int value. |
long |
resolveLong()
Resolve this expression to a
long value. |
long |
resolveLong(ValueExpressionResolver resolver)
Resolve this expression to a
long value. |
String |
resolveString()
Resolve this expression to a string value.
|
String |
resolveString(ValueExpressionResolver resolver)
Resolve this expression to a string value.
|
String |
toString()
Get a printable string representation of this object.
|
void |
writeExternal(ObjectOutput out)
Serialize this instance.
|
public ValueExpression(String expressionString)
expressionString
- the expression stringpublic static String quote(String string)
string
- the string to quotepublic void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
out
- the target streamIOException
- if a serialization error occurspublic void readExternal(ObjectInput in) throws IOException
readExternal
in interface Externalizable
in
- the source streamIOException
- if a serialization error occurspublic String getExpressionString()
null
)public int hashCode()
public boolean equals(Object other)
public boolean equals(ValueExpression other)
other
- the other objecttrue
if they are equal, false
otherwisepublic String resolveString()
public String resolveString(ValueExpressionResolver resolver)
resolver
- the resolver to usepublic boolean resolveBoolean()
boolean
value.public boolean resolveBoolean(ValueExpressionResolver resolver)
boolean
value.resolver
- the resolver to usepublic int resolveInt()
int
value.public int resolveInt(ValueExpressionResolver resolver)
int
value.resolver
- the resolver to usepublic long resolveLong()
long
value.public long resolveLong(ValueExpressionResolver resolver)
long
value.resolver
- the resolver to usepublic BigInteger resolveBigInteger()
public BigInteger resolveBigInteger(ValueExpressionResolver resolver)
resolver
- the resolver to usepublic BigDecimal resolveBigDecimal()
public BigDecimal resolveBigDecimal(ValueExpressionResolver resolver)
resolver
- the resolver to useCopyright © 2017 JBoss by Red Hat. All rights reserved.