public final class FullIdent extends Object
Identifiers such as java.util.HashMap
are spread across
multiple AST nodes in the syntax tree (three IDENT nodes, two DOT nodes).
A FullIdent represents the whole String (excluding any intermediate
whitespace), which is often easier to work with in Checks.
TokenTypes.DOT
,
TokenTypes.IDENT
Modifier and Type | Method and Description |
---|---|
static FullIdent |
createFullIdent(DetailAST ast)
Creates a new FullIdent starting from the specified node.
|
static FullIdent |
createFullIdentBelow(DetailAST ast)
Creates a new FullIdent starting from the child of the specified node.
|
int |
getColumnNo()
Gets the column number.
|
int |
getLineNo()
Gets the line number.
|
String |
getText()
Gets the text.
|
String |
toString() |
public static FullIdent createFullIdent(DetailAST ast)
ast
- the node to start fromFullIdent
valuepublic static FullIdent createFullIdentBelow(DetailAST ast)
ast
- the parent node from where to start fromFullIdent
valuepublic int getLineNo()
public int getColumnNo()
Copyright © 2001–2018. All rights reserved.