|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.puppycrawl.tools.checkstyle.api.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.
TokenTypes.DOT
,
TokenTypes.IDENT
Method Summary | |
---|---|
static FullIdent |
createFullIdent(DetailAST aAST)
Creates a new FullIdent starting from the specified node. |
static FullIdent |
createFullIdentBelow(DetailAST aAST)
Creates a new FullIdent starting from the child of the specified node. |
int |
getColumnNo()
|
int |
getLineNo()
|
String |
getText()
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public String getText()
public int getLineNo()
public int getColumnNo()
public static FullIdent createFullIdent(DetailAST aAST)
aAST
- the node to start from
FullIdent
valuepublic static FullIdent createFullIdentBelow(DetailAST aAST)
aAST
- the parent node from where to start from
FullIdent
valuepublic String toString()
toString
in class Object
|
Back to the Checkstyle Home Page | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |