public class SimpleValue extends Object implements Value
| Constructor and Description |
|---|
SimpleValue(Object value) |
SimpleValue(String lexicalForm) |
| Modifier and Type | Method and Description |
|---|---|
long |
asInt()
Return value as a (long) int if possible, otherwise ModalException
|
boolean |
empty()
Return true unless the value is null or an empty string
|
String |
getLexical()
Original lexical form for the value
|
Object |
getValue()
Return the value unconverted.
|
boolean |
isInt()
Test if the value can be treated as a (long) int
|
boolean |
notEmpty()
Return true if the value is non-null and not an empty string
|
String |
str()
Original lexical form for the value, Ruby-friendly alias
|
String |
toString() |
public SimpleValue(String lexicalForm)
public SimpleValue(Object value)
public String getLexical()
ValuegetLexical in interface Valuepublic long asInt()
Valuepublic boolean isInt()
Valuepublic Object getValue()
Valuepublic boolean notEmpty()
Valuepublic boolean empty()
ValueCopyright © 2015. All rights reserved.