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, toString
public Literal(int id)
public Literal(SiDIF p, int id)
public Value<?> getLiteralValue()
public Object jjtAccept(SiDIFVisitor visitor, ObjectHolder data)
jjtAccept
in interface Node
jjtAccept
in class SimpleNode
public Object getLiteral()
public void setLiteral(Object literal)
public Date toDate(Token token, SimpleDateFormat f)
token
- f
- public Value<?> toDate(Token token) throws ParseException
token
- ParseException
public void init(String type, Token token) throws ParseException
type
- token
- ParserException
ParseException
Copyright © 2017. All Rights Reserved.