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()booleanGet the priority of the itemGet the type of the itemgetType()getValue()static ObjectinthashCode()static ValuerecognizeOf(String str) static ValuerecognizeRawString(String str) static ValueTyperecognizeType(String value) toString()static Valuestatic Valuestatic Valuestatic 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:ExpressionItemGet the type of the item- Specified by:
getExpressionItemTypein interfaceExpressionItem- Returns:
- the item type
-
getExpressionItemPriority
Description copied from interface:ExpressionItemGet the priority of the item- Specified by:
getExpressionItemPriorityin interfaceExpressionItem- Returns:
- the item priority, must not be null
-
equals
-
hashCode
public int hashCode()
-