org.incava.java
Class TypeDeclarationUtil
public class TypeDeclarationUtil
Miscellaneous routines for type declarations.
static net.sourceforge.pmd.ast.ASTTypeDeclaration | findTypeDeclaration(String name, net.sourceforge.pmd.ast.ASTTypeDeclaration[] types)
|
static net.sourceforge.pmd.ast.SimpleNode | getDeclaration(net.sourceforge.pmd.ast.ASTClassOrInterfaceBodyDeclaration bdecl) - Returns the real declaration, which is a method, field, constructor, or
inner class or interface.
|
static net.sourceforge.pmd.ast.ASTClassOrInterfaceBodyDeclaration[] | getDeclarations(net.sourceforge.pmd.ast.ASTClassOrInterfaceDeclaration coid) - Returns a list of all methods, fields, constructors, and inner classes
and interfaces.
|
static net.sourceforge.pmd.ast.ASTClassOrInterfaceBodyDeclaration[] | getDeclarations(net.sourceforge.pmd.ast.ASTTypeDeclaration tdecl) - Returns a list of all methods, fields, constructors, and inner classes
and interfaces.
|
static double | getMatchScore(net.sourceforge.pmd.ast.ASTClassOrInterfaceBodyDeclaration aDecl, net.sourceforge.pmd.ast.ASTClassOrInterfaceBodyDeclaration bDecl)
|
static net.sourceforge.pmd.ast.Token | getName(net.sourceforge.pmd.ast.ASTTypeDeclaration typeDecl)
|
static net.sourceforge.pmd.ast.ASTClassOrInterfaceDeclaration | getType(net.sourceforge.pmd.ast.ASTTypeDeclaration typeDecl)
|
static TreeMap | matchDeclarations(net.sourceforge.pmd.ast.ASTClassOrInterfaceBodyDeclaration[] aDecls, net.sourceforge.pmd.ast.ASTClassOrInterfaceBodyDeclaration[] bDecls)
|
dump , dump , findChild , findChild , findChildren , findChildren , findToken , getChildren , getChildren , getChildrenSerially , getChildrenSerially , getLeadingToken , getLeadingTokens , getLevel , getLocation , getParent , getTokens , hasChildren , hasLeadingToken , print , print , toString |
findTypeDeclaration
public static net.sourceforge.pmd.ast.ASTTypeDeclaration findTypeDeclaration(String name,
net.sourceforge.pmd.ast.ASTTypeDeclaration[] types)
getDeclaration
public static net.sourceforge.pmd.ast.SimpleNode getDeclaration(net.sourceforge.pmd.ast.ASTClassOrInterfaceBodyDeclaration bdecl)
Returns the real declaration, which is a method, field, constructor, or
inner class or interface.
getDeclarations
public static net.sourceforge.pmd.ast.ASTClassOrInterfaceBodyDeclaration[] getDeclarations(net.sourceforge.pmd.ast.ASTClassOrInterfaceDeclaration coid)
Returns a list of all methods, fields, constructors, and inner classes
and interfaces.
getDeclarations
public static net.sourceforge.pmd.ast.ASTClassOrInterfaceBodyDeclaration[] getDeclarations(net.sourceforge.pmd.ast.ASTTypeDeclaration tdecl)
Returns a list of all methods, fields, constructors, and inner classes
and interfaces.
getMatchScore
public static double getMatchScore(net.sourceforge.pmd.ast.ASTClassOrInterfaceBodyDeclaration aDecl,
net.sourceforge.pmd.ast.ASTClassOrInterfaceBodyDeclaration bDecl)
getName
public static net.sourceforge.pmd.ast.Token getName(net.sourceforge.pmd.ast.ASTTypeDeclaration typeDecl)
getType
public static net.sourceforge.pmd.ast.ASTClassOrInterfaceDeclaration getType(net.sourceforge.pmd.ast.ASTTypeDeclaration typeDecl)
matchDeclarations
public static TreeMap matchDeclarations(net.sourceforge.pmd.ast.ASTClassOrInterfaceBodyDeclaration[] aDecls,
net.sourceforge.pmd.ast.ASTClassOrInterfaceBodyDeclaration[] bDecls)