com.puppycrawl.tools.checkstyle.api
Class FullIdent
public final class FullIdent
Represents a full identifier, including dots, with associated
position information.
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.
createFullIdent
public static FullIdent createFullIdent(DetailAST aAST)
Creates a new FullIdent starting from the specified node.
aAST
- the node to start from
createFullIdentBelow
public static FullIdent createFullIdentBelow(DetailAST aAST)
Creates a new FullIdent starting from the child of the specified node.
aAST
- the parent node from where to start from
getColumnNo
public int getColumnNo()
getLineNo
public int getLineNo()
getText
public String getText()
toString
public String toString()