public class Literal extends SimpleNode
| Constructor and Description |
|---|
Literal(int id) |
Literal(SiDIF p,
int id) |
| Modifier and Type | Method and Description |
|---|---|
Object |
getLiteral() |
Value<?> |
getLiteralValue() |
void |
init(String type,
Token token)
initialize me from the given type and Token
|
void |
init(Value<?> literalValue,
String literal)
init this literal for the given literalValue and String representation
|
Object |
jjtAccept(SiDIFVisitor visitor,
ObjectHolder data)
Accept the visitor.
|
void |
setLiteral(Object literal) |
Value<?> |
toDate(Token token) |
Date |
toDate(Token token,
SimpleDateFormat f)
create a Date from a given Token and SimpleDateFormat
|
childrenAccept, dump, jjtAddChild, jjtClose, jjtGetChild, jjtGetNumChildren, jjtGetParent, jjtGetValue, jjtOpen, jjtSetParent, jjtSetValue, toString, toStringpublic Literal(int id)
public Literal(SiDIF p, int id)
public Value<?> getLiteralValue()
public Object jjtAccept(SiDIFVisitor visitor, ObjectHolder data)
jjtAccept in interface NodejjtAccept in class SimpleNodepublic Object getLiteral()
public void setLiteral(Object literal)
public Date toDate(Token token, SimpleDateFormat f)
token - f - public Value<?> toDate(Token token) throws ParseException
token - ParseExceptionpublic void init(String type, Token token) throws ParseException
type - token - ParserExceptionParseExceptionCopyright © 2017. All Rights Reserved.