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