|
|||||||||
| Home >> All >> com >> puppycrawl >> tools >> checkstyle >> checks >> usage >> [ transmogrify overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
com.puppycrawl.tools.checkstyle.checks.usage.transmogrify
Class ASTUtil

java.lang.Objectcom.puppycrawl.tools.checkstyle.checks.usage.transmogrify.ASTUtil
- public class ASTUtil
- extends java.lang.Object
ASTUtil is a Utility Class that contains utility code
for managing our SymTabAST.
| Constructor Summary | |
ASTUtil()
|
|
| Method Summary | |
static java.lang.String |
constructClass(SymTabAST tree)
Returns the top Class name in the hierarchy represented by the SymTabAST. |
static java.lang.String |
constructDottedName(SymTabAST tree)
Builds the dotted name String representation of the object contained within the SymTabAST. |
static java.lang.String |
constructPackage(SymTabAST tree)
Returns the Package name in the hierarchy represented by the SymTabAST. |
static int |
getColumn(SymTabAST tree)
gets a column number for the tree; if the current SymTabAST node does not have one associated with it, traverse its children until a column number is found. |
static SymTabAST |
getFileNode(SymTabAST root,
java.io.File file)
|
static int |
getLine(SymTabAST tree)
gets a line number for the tree; if the current SymTabAST node does not have one associated with it, traverse its children until a line number is found. |
private static ClassDef |
getType(SymTabAST tree,
SymbolTable symbolTable)
Builds a ClassDef based on the the Node of tpye JavaTokenType.TYPE in the SymTabAST and returns this. |
static boolean |
treesBelowFilesAreEqual(SymTabAST firstRoot,
java.io.File[] firstFiles,
SymTabAST secondRoot,
java.io.File[] secondFiles)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
ASTUtil
public ASTUtil()
| Method Detail |
getLine
public static int getLine(SymTabAST tree)
- gets a line number for the tree; if the current SymTabAST node does not have one associated
with it, traverse its children until a line number is found. Failure results in line
number value of 0.
getColumn
public static int getColumn(SymTabAST tree)
- gets a column number for the tree; if the current SymTabAST node does not have one associated
with it, traverse its children until a column number is found. Failure results in column
number value of 0.
getType
private static ClassDef getType(SymTabAST tree, SymbolTable symbolTable)
- Builds a ClassDef based on the the Node of tpye JavaTokenType.TYPE in the
SymTabAST and returns this.
constructDottedName
public static java.lang.String constructDottedName(SymTabAST tree)
- Builds the dotted name String representation of the object contained within
the SymTabAST.
constructPackage
public static java.lang.String constructPackage(SymTabAST tree)
- Returns the Package name in the hierarchy represented by the SymTabAST.
constructClass
public static java.lang.String constructClass(SymTabAST tree)
- Returns the top Class name in the hierarchy represented by the SymTabAST.
treesBelowFilesAreEqual
public static boolean treesBelowFilesAreEqual(SymTabAST firstRoot, java.io.File[] firstFiles, SymTabAST secondRoot, java.io.File[] secondFiles)
getFileNode
public static SymTabAST getFileNode(SymTabAST root, java.io.File file)
|
|||||||||
| Home >> All >> com >> puppycrawl >> tools >> checkstyle >> checks >> usage >> [ transmogrify overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
com.puppycrawl.tools.checkstyle.checks.usage.transmogrify.ASTUtil