org.azzyzt.jee.runtime.dto.query
Class Literal
java.lang.Object
org.azzyzt.jee.runtime.dto.query.Operand
org.azzyzt.jee.runtime.dto.query.Literal
public class Literal
- extends Operand
Literal occurring in an Expression
. A Literal
has a type and a value.
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Literal
public Literal()
Literal
public Literal(LiteralType type,
java.lang.Object value)
getType
public LiteralType getType()
setType
public void setType(LiteralType type)
getValue
public java.lang.Object getValue()
setValue
public void setValue(java.lang.Object value)
parse
public static Literal parse(java.lang.String text,
LiteralType type)
throws NotYetImplementedException
- Factory method that creates a
Literal
from a text.
- Parameters:
text
- the inputtype
- supposed type of the input
- Returns:
- the
Literal
- Throws:
NotYetImplementedException
isValid
public boolean isValid()
- Specified by:
isValid
in class Operand