org.incava.java

Class FieldUtil


public class FieldUtil
extends SimpleNodeUtil

Miscellaneous routines for fields.

Method Summary

static double
getMatchScore(net.sourceforge.pmd.ast.ASTFieldDeclaration a, net.sourceforge.pmd.ast.ASTFieldDeclaration b)
static net.sourceforge.pmd.ast.Token
getName(net.sourceforge.pmd.ast.ASTVariableDeclarator vd)
static String
getNames(net.sourceforge.pmd.ast.ASTFieldDeclaration fld)
Returns a string in the form "a, b, c", for the variables declared in this field.
static net.sourceforge.pmd.ast.ASTVariableDeclarator[]
getVariableDeclarators(net.sourceforge.pmd.ast.ASTFieldDeclaration fld)

Methods inherited from class org.incava.java.SimpleNodeUtil

dump, dump, findChild, findChild, findChildren, findChildren, findToken, getChildren, getChildren, getChildrenSerially, getChildrenSerially, getLeadingToken, getLeadingTokens, getLevel, getLocation, getParent, getTokens, hasChildren, hasLeadingToken, print, print, toString

Method Details

getMatchScore

public static double getMatchScore(net.sourceforge.pmd.ast.ASTFieldDeclaration a,
                                   net.sourceforge.pmd.ast.ASTFieldDeclaration b)

getName

public static net.sourceforge.pmd.ast.Token getName(net.sourceforge.pmd.ast.ASTVariableDeclarator vd)

getNames

public static String getNames(net.sourceforge.pmd.ast.ASTFieldDeclaration fld)
Returns a string in the form "a, b, c", for the variables declared in this field.

getVariableDeclarators

public static net.sourceforge.pmd.ast.ASTVariableDeclarator[] getVariableDeclarators(net.sourceforge.pmd.ast.ASTFieldDeclaration fld)