org.incava.java

Class ItemUtil


public class ItemUtil
extends SimpleNodeUtil

Miscellaneous routines for Items.

Field Summary

protected static int[]
ACCESSES

Method Summary

static net.sourceforge.pmd.ast.Token
getAccess(net.sourceforge.pmd.ast.SimpleNode node)
Returns the access type, as a token.
static String
getAccessString(net.sourceforge.pmd.ast.SimpleNode node)
Returns the access type, as a string.

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

Field Details

ACCESSES

protected static final int[] ACCESSES

Method Details

getAccess

public static net.sourceforge.pmd.ast.Token getAccess(net.sourceforge.pmd.ast.SimpleNode node)
Returns the access type, as a token.

getAccessString

public static String getAccessString(net.sourceforge.pmd.ast.SimpleNode node)
Returns the access type, as a string. "package" is the default.