org.incava.java

Class FunctionUtil

Known Direct Subclasses:
CtorUtil, MethodUtil

public class FunctionUtil
extends SimpleNodeUtil

Miscellaneous routines for functions (ctors and methods).

Method Summary

static net.sourceforge.pmd.ast.Token
getThrows(net.sourceforge.pmd.ast.SimpleNode function)
Returns the throws token, or null if none.
static net.sourceforge.pmd.ast.ASTNameList
getThrowsList(net.sourceforge.pmd.ast.SimpleNode function)
Returns the throws list, or null if none.
protected static String
toFullName(net.sourceforge.pmd.ast.Token tk, net.sourceforge.pmd.ast.ASTFormalParameters params)

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

getThrows

public static net.sourceforge.pmd.ast.Token getThrows(net.sourceforge.pmd.ast.SimpleNode function)
Returns the throws token, or null if none.

getThrowsList

public static net.sourceforge.pmd.ast.ASTNameList getThrowsList(net.sourceforge.pmd.ast.SimpleNode function)
Returns the throws list, or null if none.

toFullName

protected static String toFullName(net.sourceforge.pmd.ast.Token tk,
                                   net.sourceforge.pmd.ast.ASTFormalParameters params)