Package org.jboss.dmr
Class ValueExpression
java.lang.Object
org.jboss.dmr.ValueExpression
- All Implemented Interfaces:
Externalizable,Serializable
A value expression.
- Author:
- David M. Lloyd
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanDetermine whether this object is equal to another.booleanequals(ValueExpression other) Determine whether this object is equal to another.Get the raw expression string.inthashCode()Get the hash code of the expression string.static StringQuote a string so that it can be used in an expression as a literal string, instead of being expanded.voidDeserialize this instance.Resolve this expression to a decimal value.resolveBigDecimal(ValueExpressionResolver resolver) Resolve this expression to a decimal value.Resolve this expression to a large integer value.resolveBigInteger(ValueExpressionResolver resolver) Resolve this expression to a large integer value.booleanResolve this expression to abooleanvalue.booleanresolveBoolean(ValueExpressionResolver resolver) Resolve this expression to abooleanvalue.intResolve this expression to anintvalue.intresolveInt(ValueExpressionResolver resolver) Resolve this expression to anintvalue.longResolve this expression to alongvalue.longresolveLong(ValueExpressionResolver resolver) Resolve this expression to alongvalue.Resolve this expression to a string value.resolveString(ValueExpressionResolver resolver) Resolve this expression to a string value.toString()Get a printable string representation of this object.voidSerialize this instance.
-
Constructor Details
-
ValueExpression
Construct a new instance.- Parameters:
expressionString- the expression string
-
-
Method Details
-
quote
Quote a string so that it can be used in an expression as a literal string, instead of being expanded.- Parameters:
string- the string to quote- Returns:
- the quoted string
-
writeExternal
Serialize this instance.- Specified by:
writeExternalin interfaceExternalizable- Parameters:
out- the target stream- Throws:
IOException- if a serialization error occurs
-
readExternal
Deserialize this instance.- Specified by:
readExternalin interfaceExternalizable- Parameters:
in- the source stream- Throws:
IOException- if a serialization error occurs
-
getExpressionString
Get the raw expression string.- Returns:
- the raw expression string (will not be
null)
-
hashCode
public int hashCode()Get the hash code of the expression string. -
equals
Determine whether this object is equal to another. -
equals
Determine whether this object is equal to another.- Parameters:
other- the other object- Returns:
trueif they are equal,falseotherwise
-
resolveString
Resolve this expression to a string value.- Returns:
- the resolved value
-
resolveString
Resolve this expression to a string value.- Parameters:
resolver- the resolver to use- Returns:
- the resolved value
-
resolveBoolean
public boolean resolveBoolean()Resolve this expression to abooleanvalue.- Returns:
- the resolved value
-
resolveBoolean
Resolve this expression to abooleanvalue.- Parameters:
resolver- the resolver to use- Returns:
- the resolved value
-
resolveInt
public int resolveInt()Resolve this expression to anintvalue.- Returns:
- the resolved value
-
resolveInt
Resolve this expression to anintvalue.- Parameters:
resolver- the resolver to use- Returns:
- the resolved value
-
resolveLong
public long resolveLong()Resolve this expression to alongvalue.- Returns:
- the resolved value
-
resolveLong
Resolve this expression to alongvalue.- Parameters:
resolver- the resolver to use- Returns:
- the resolved value
-
resolveBigInteger
Resolve this expression to a large integer value.- Returns:
- the resolved value
-
resolveBigInteger
Resolve this expression to a large integer value.- Parameters:
resolver- the resolver to use- Returns:
- the resolved value
-
resolveBigDecimal
Resolve this expression to a decimal value.- Returns:
- the resolved value
-
resolveBigDecimal
Resolve this expression to a decimal value.- Parameters:
resolver- the resolver to use- Returns:
- the resolved value
-
toString
Get a printable string representation of this object.
-