Package com.igormaznitsa.jcp.expression
Class Value
java.lang.Object
com.igormaznitsa.jcp.expression.Value
- All Implemented Interfaces:
ExpressionItem
The class describes an expression value i.e. an atomic constant expression item like string or number
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionasFloat()
asLong()
asString()
boolean
Get the priority of the itemGet the type of the itemgetType()
getValue()
static Object
int
hashCode()
static Value
recognizeOf
(String str) static Value
recognizeRawString
(String str) static ValueType
recognizeType
(String value) toString()
static Value
static Value
static Value
static Value
-
Field Details
-
BOOLEAN_TRUE
-
BOOLEAN_FALSE
-
INT_ZERO
-
INT_ONE
-
INT_TWO
-
INT_THREE
-
INT_FOUR
-
INT_FIVE
-
value
-
type
-
-
Constructor Details
-
Value
-
Value
-
Value
-
Value
-
-
Method Details
-
getType
-
getValue
-
valueOf
-
valueOf
-
valueOf
-
valueOf
-
asLong
-
asFloat
-
asString
-
asBoolean
-
recognizeRawString
-
recognizeOf
-
getValue
-
recognizeType
-
toStringDetail
-
toString
-
getExpressionItemType
Description copied from interface:ExpressionItem
Get the type of the item- Specified by:
getExpressionItemType
in interfaceExpressionItem
- Returns:
- the item type
-
getExpressionItemPriority
Description copied from interface:ExpressionItem
Get the priority of the item- Specified by:
getExpressionItemPriority
in interfaceExpressionItem
- Returns:
- the item priority, must not be null
-
equals
-
hashCode
public int hashCode()
-