Interface ASTLiteral
-
- All Superinterfaces:
ASTExpression
,ASTMemberValue
,ASTPrimaryExpression
,ASTSwitchArrowRHS
,GenericNode<JavaNode>
,JavaNode
,JjtreeNode<JavaNode>
,Node
,Reportable
,TextAvailableNode
,TypeNode
- All Known Implementing Classes:
ASTBooleanLiteral
,ASTCharLiteral
,ASTNullLiteral
,ASTNumericLiteral
,ASTStringLiteral
public interface ASTLiteral extends ASTPrimaryExpression
A lexical literal. This is an expression that is represented by exactly one token. This interface is implemented by several nodes.Literal ::=
NumericLiteral
|StringLiteral
|CharLiteral
|BooleanLiteral
|NullLiteral
-
-
Field Summary
-
Fields inherited from interface net.sourceforge.pmd.lang.ast.Node
COORDS_COMPARATOR
-
-
Method Summary
All Methods Instance Methods Default Methods Deprecated Methods Modifier and Type Method Description default boolean
isBooleanLiteral()
Deprecated.default boolean
isCharLiteral()
Deprecated.default boolean
isDoubleLiteral()
Deprecated.default boolean
isFloatLiteral()
Deprecated.default boolean
isIntLiteral()
Deprecated.default boolean
isLongLiteral()
Deprecated.default boolean
isNullLiteral()
Deprecated.default boolean
isNumericLiteral()
Deprecated.default boolean
isStringLiteral()
Deprecated.-
Methods inherited from interface net.sourceforge.pmd.lang.java.ast.ASTExpression
getConstValue, getConversionContext, getParenthesisDepth, isCompileTimeConstant, isExpression, isParenthesized
-
Methods inherited from interface net.sourceforge.pmd.lang.ast.impl.GenericNode
ancestors, ancestorsOrSelf, asStream, children, descendants, descendantsOrSelf, getChild, getFirstChild, getLastChild, getNextSibling, getNthParent, getParent, getPreviousSibling
-
Methods inherited from interface net.sourceforge.pmd.lang.java.ast.JavaNode
getEnclosingType, getRoot, getSymbolTable, getTypeSystem, jjtAccept
-
Methods inherited from interface net.sourceforge.pmd.lang.ast.impl.javacc.JjtreeNode
getFirstToken, getLastToken, tokens
-
Methods inherited from interface net.sourceforge.pmd.lang.ast.Node
acceptVisitor, ancestors, children, compareLocation, descendants, findChildNodesWithXPath, findChildrenOfType, findDescendantsOfType, findDescendantsOfType, firstChild, getAstInfo, getBeginColumn, getBeginLine, getEndColumn, getEndLine, getFirstChildOfType, getFirstDescendantOfType, getFirstParentOfType, getImage, getIndexInParent, getLanguageVersion, getNumChildren, getParentsOfType, getReportLocation, getTextDocument, getUserMap, getXPathAttributesIterator, getXPathNodeName, hasDescendantOfType, hasImageEqualTo, isFindBoundary
-
Methods inherited from interface net.sourceforge.pmd.lang.ast.TextAvailableNode
getOriginalText, getText, getTextRegion
-
Methods inherited from interface net.sourceforge.pmd.lang.java.ast.TypeNode
getType, getTypeMirror, getTypeMirror
-
-
-
-
Method Detail
-
isStringLiteral
@Deprecated default boolean isStringLiteral()
Deprecated.Returns true if this is a string literal.
-
isCharLiteral
@Deprecated default boolean isCharLiteral()
Deprecated.Returns true if this is a character literal.
-
isNullLiteral
@Deprecated default boolean isNullLiteral()
Deprecated.Returns true if this is the null literal.
-
isBooleanLiteral
@Deprecated default boolean isBooleanLiteral()
Deprecated.Returns true if this is a boolean literal.
-
isNumericLiteral
@Deprecated default boolean isNumericLiteral()
Deprecated.Returns true if this is a numeric literal of any kind.
-
isIntLiteral
@Deprecated default boolean isIntLiteral()
Deprecated.Returns true if this is an integer literal.
-
isLongLiteral
@Deprecated default boolean isLongLiteral()
Deprecated.Returns true if this is a long integer literal.
-
isFloatLiteral
@Deprecated default boolean isFloatLiteral()
Deprecated.Returns true if this is a float literal.
-
isDoubleLiteral
@Deprecated default boolean isDoubleLiteral()
Deprecated.Returns true if this is a double literal.
-
-