org.incava.java

Class CompilationUnitUtil


public class CompilationUnitUtil
extends java.lang.Object

Miscellaneous routines for compilation units.

Method Summary

static net.sourceforge.pmd.ast.ASTImportDeclaration[]
getImports(net.sourceforge.pmd.ast.ASTCompilationUnit cu)
static net.sourceforge.pmd.ast.ASTPackageDeclaration
getPackage(net.sourceforge.pmd.ast.ASTCompilationUnit cu)
static net.sourceforge.pmd.ast.ASTTypeDeclaration[]
getTypeDeclarations(net.sourceforge.pmd.ast.ASTCompilationUnit cu)

Method Details

getImports

public static net.sourceforge.pmd.ast.ASTImportDeclaration[] getImports(net.sourceforge.pmd.ast.ASTCompilationUnit cu)

getPackage

public static net.sourceforge.pmd.ast.ASTPackageDeclaration getPackage(net.sourceforge.pmd.ast.ASTCompilationUnit cu)

getTypeDeclarations

public static net.sourceforge.pmd.ast.ASTTypeDeclaration[] getTypeDeclarations(net.sourceforge.pmd.ast.ASTCompilationUnit cu)