org.incava.java

Class FieldUtil

public class FieldUtil extends SimpleNodeUtil

Miscellaneous routines for fields.
Method Summary
static doublegetMatchScore(ASTFieldDeclaration a, ASTFieldDeclaration b)
static TokengetName(ASTVariableDeclarator vd)
static StringgetNames(ASTFieldDeclaration fld)
Returns a string in the form "a, b, c", for the variables declared in this field.
static ASTVariableDeclarator[]getVariableDeclarators(ASTFieldDeclaration fld)

Method Detail

getMatchScore

public static double getMatchScore(ASTFieldDeclaration a, ASTFieldDeclaration b)

getName

public static Token getName(ASTVariableDeclarator vd)

getNames

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

getVariableDeclarators

public static ASTVariableDeclarator[] getVariableDeclarators(ASTFieldDeclaration fld)