org.incava.java

Class MethodUtil


public class MethodUtil
extends FunctionUtil

Miscellaneous routines for method declarations.

Method Summary

protected static MethodMatchCriteria
getCriteria(net.sourceforge.pmd.ast.ASTMethodDeclaration method)
static net.sourceforge.pmd.ast.ASTMethodDeclarator
getDeclarator(net.sourceforge.pmd.ast.ASTMethodDeclaration method)
static String
getFullName(net.sourceforge.pmd.ast.ASTMethodDeclaration method)
static double
getMatchScore(net.sourceforge.pmd.ast.ASTMethodDeclaration a, net.sourceforge.pmd.ast.ASTMethodDeclaration b)
static net.sourceforge.pmd.ast.Token
getName(net.sourceforge.pmd.ast.ASTMethodDeclaration method)
static net.sourceforge.pmd.ast.ASTFormalParameters
getParameters(net.sourceforge.pmd.ast.ASTMethodDeclaration method)

Methods inherited from class org.incava.java.FunctionUtil

getThrows, getThrowsList, toFullName

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

getCriteria

protected static MethodMatchCriteria getCriteria(net.sourceforge.pmd.ast.ASTMethodDeclaration method)

getDeclarator

public static net.sourceforge.pmd.ast.ASTMethodDeclarator getDeclarator(net.sourceforge.pmd.ast.ASTMethodDeclaration method)

getFullName

public static String getFullName(net.sourceforge.pmd.ast.ASTMethodDeclaration method)

getMatchScore

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

getName

public static net.sourceforge.pmd.ast.Token getName(net.sourceforge.pmd.ast.ASTMethodDeclaration method)

getParameters

public static net.sourceforge.pmd.ast.ASTFormalParameters getParameters(net.sourceforge.pmd.ast.ASTMethodDeclaration method)