public class ASTLiteral extends SimpleJavaTypeNode
beginColumn, beginLine, children, endColumn, endLine, id, parent, parser
Constructor and Description |
---|
ASTLiteral(int id) |
ASTLiteral(JavaParser p,
int id) |
Modifier and Type | Method and Description |
---|---|
boolean |
isCharLiteral() |
boolean |
isFloatLiteral() |
boolean |
isIntLiteral() |
boolean |
isSingleCharacterStringLiteral()
Returns true if this is a String literal with only one character.
|
boolean |
isStringLiteral() |
java.lang.Object |
jjtAccept(JavaParserVisitor visitor,
java.lang.Object data)
Accept the visitor.
|
void |
setCharLiteral() |
void |
setFloatLiteral() |
void |
setIntLiteral() |
void |
setStringLiteral() |
getType, setType
childrenAccept, jjtClose, jjtOpen, toString
appendElement, asXml, containsChildOfType, dump, dumpChildren, findChildNodesWithXPath, findChildrenOfType, findChildrenOfType, findChildrenOfType, getBeginColumn, getBeginLine, getDataFlowNode, getEndColumn, getEndLine, getFirstChildOfType, getFirstParentOfType, getImage, getLabel, getNthParent, getParentsOfType, getScope, hasImageEqualTo, jjtAddChild, jjtGetChild, jjtGetNumChildren, jjtGetParent, jjtSetParent, setDataFlowNode, setImage, setScope, testingOnly__setBeginColumn, testingOnly__setBeginLine, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
jjtAddChild, jjtGetChild, jjtGetNumChildren, jjtGetParent, jjtSetParent
public ASTLiteral(int id)
public ASTLiteral(JavaParser p, int id)
public java.lang.Object jjtAccept(JavaParserVisitor visitor, java.lang.Object data)
jjtAccept
in interface JavaNode
jjtAccept
in class SimpleJavaNode
public void setIntLiteral()
public boolean isIntLiteral()
public void setFloatLiteral()
public boolean isFloatLiteral()
public void setCharLiteral()
public boolean isCharLiteral()
public void setStringLiteral()
public boolean isStringLiteral()
public boolean isSingleCharacterStringLiteral()