org.incava.java
Class FieldUtil

java.lang.Object
  extended by org.incava.java.SimpleNodeUtil
      extended by org.incava.java.FieldUtil

public class FieldUtil
extends SimpleNodeUtil

Miscellaneous routines for fields.


Constructor Summary
FieldUtil()
           
 
Method Summary
static double getMatchScore(ASTFieldDeclaration a, ASTFieldDeclaration b)
           
static Token getName(ASTVariableDeclarator vd)
           
static java.lang.String getNames(ASTFieldDeclaration fld)
          Returns a string in the form "a, b, c", for the variables declared in this field.
static ASTVariableDeclarator[] getVariableDeclarators(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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FieldUtil

public FieldUtil()
Method Detail

getName

public static Token getName(ASTVariableDeclarator vd)

getVariableDeclarators

public static ASTVariableDeclarator[] getVariableDeclarators(ASTFieldDeclaration fld)

getNames

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


getMatchScore

public static double getMatchScore(ASTFieldDeclaration a,
                                   ASTFieldDeclaration b)