public class TypeDeclarationUtil extends SimpleNodeUtil
Constructor and Description |
---|
TypeDeclarationUtil() |
Modifier and Type | Method and Description |
---|---|
static ASTTypeDeclaration |
findTypeDeclaration(java.lang.String name,
ASTTypeDeclaration[] types) |
static SimpleNode |
getDeclaration(ASTClassOrInterfaceBodyDeclaration bdecl)
Returns the real declaration, which is a method, field, constructor, or
inner class or interface.
|
static ASTClassOrInterfaceBodyDeclaration[] |
getDeclarations(ASTClassOrInterfaceDeclaration coid)
Returns a list of all methods, fields, constructors, and inner classes
and interfaces.
|
static ASTClassOrInterfaceBodyDeclaration[] |
getDeclarations(ASTTypeDeclaration tdecl)
Returns a list of all methods, fields, constructors, and inner classes
and interfaces.
|
static double |
getMatchScore(ASTClassOrInterfaceBodyDeclaration aDecl,
ASTClassOrInterfaceBodyDeclaration bDecl) |
static Token |
getName(ASTTypeDeclaration typeDecl) |
static ASTClassOrInterfaceDeclaration |
getType(ASTTypeDeclaration typeDecl) |
static java.util.TreeMap |
matchDeclarations(ASTClassOrInterfaceBodyDeclaration[] aDecls,
ASTClassOrInterfaceBodyDeclaration[] bDecls) |
dump, dump, findChild, findChild, findChildren, findChildren, findToken, getChildren, getChildren, getChildrenSerially, getChildrenSerially, getLeadingToken, getLeadingTokens, getLevel, getLocation, getParent, getTokens, hasChildren, hasLeadingToken, print, print, toString
public static Token getName(ASTTypeDeclaration typeDecl)
public static ASTClassOrInterfaceDeclaration getType(ASTTypeDeclaration typeDecl)
public static ASTTypeDeclaration findTypeDeclaration(java.lang.String name, ASTTypeDeclaration[] types)
public static ASTClassOrInterfaceBodyDeclaration[] getDeclarations(ASTTypeDeclaration tdecl)
public static ASTClassOrInterfaceBodyDeclaration[] getDeclarations(ASTClassOrInterfaceDeclaration coid)
public static SimpleNode getDeclaration(ASTClassOrInterfaceBodyDeclaration bdecl)
public static java.util.TreeMap matchDeclarations(ASTClassOrInterfaceBodyDeclaration[] aDecls, ASTClassOrInterfaceBodyDeclaration[] bDecls)
public static double getMatchScore(ASTClassOrInterfaceBodyDeclaration aDecl, ASTClassOrInterfaceBodyDeclaration bDecl)