net.sourceforge.pmd.typeresolution
Class ClassTypeResolver

java.lang.Object
  extended by net.sourceforge.pmd.ast.JavaParserVisitorAdapter
      extended by net.sourceforge.pmd.typeresolution.ClassTypeResolver
All Implemented Interfaces:
JavaParserVisitor

public class ClassTypeResolver
extends JavaParserVisitorAdapter


Constructor Summary
ClassTypeResolver()
           
ClassTypeResolver(java.lang.ClassLoader classLoader)
           
 
Method Summary
 boolean classNameExists(java.lang.String fullyQualifiedClassName)
          Check whether the supplied class name exists.
 java.lang.Object visit(ASTAdditiveExpression node, java.lang.Object data)
           
 java.lang.Object visit(ASTAllocationExpression node, java.lang.Object data)
           
 java.lang.Object visit(ASTAndExpression node, java.lang.Object data)
           
 java.lang.Object visit(ASTAnnotationTypeDeclaration node, java.lang.Object data)
           
 java.lang.Object visit(ASTBooleanLiteral node, java.lang.Object data)
           
 java.lang.Object visit(ASTCastExpression node, java.lang.Object data)
           
 java.lang.Object visit(ASTClassOrInterfaceDeclaration node, java.lang.Object data)
           
 java.lang.Object visit(ASTClassOrInterfaceType node, java.lang.Object data)
           
 java.lang.Object visit(ASTCompilationUnit node, java.lang.Object data)
           
 java.lang.Object visit(ASTConditionalAndExpression node, java.lang.Object data)
           
 java.lang.Object visit(ASTConditionalExpression node, java.lang.Object data)
           
 java.lang.Object visit(ASTConditionalOrExpression node, java.lang.Object data)
           
 java.lang.Object visit(ASTEnumDeclaration node, java.lang.Object data)
           
 java.lang.Object visit(ASTEqualityExpression node, java.lang.Object data)
           
 java.lang.Object visit(ASTExclusiveOrExpression node, java.lang.Object data)
           
 java.lang.Object visit(ASTExpression node, java.lang.Object data)
           
 java.lang.Object visit(ASTFieldDeclaration node, java.lang.Object data)
           
 java.lang.Object visit(ASTImportDeclaration node, java.lang.Object data)
           
 java.lang.Object visit(ASTInclusiveOrExpression node, java.lang.Object data)
           
 java.lang.Object visit(ASTInstanceOfExpression node, java.lang.Object data)
           
 java.lang.Object visit(ASTLiteral node, java.lang.Object data)
           
 java.lang.Object visit(ASTMultiplicativeExpression node, java.lang.Object data)
           
 java.lang.Object visit(ASTName node, java.lang.Object data)
           
 java.lang.Object visit(ASTNullLiteral node, java.lang.Object data)
           
 java.lang.Object visit(ASTPostfixExpression node, java.lang.Object data)
           
 java.lang.Object visit(ASTPreDecrementExpression node, java.lang.Object data)
           
 java.lang.Object visit(ASTPreIncrementExpression node, java.lang.Object data)
           
 java.lang.Object visit(ASTPrimaryExpression node, java.lang.Object data)
           
 java.lang.Object visit(ASTPrimaryPrefix node, java.lang.Object data)
           
 java.lang.Object visit(ASTPrimarySuffix node, java.lang.Object data)
           
 java.lang.Object visit(ASTPrimitiveType node, java.lang.Object data)
           
 java.lang.Object visit(ASTReferenceType node, java.lang.Object data)
           
 java.lang.Object visit(ASTRelationalExpression node, java.lang.Object data)
           
 java.lang.Object visit(ASTShiftExpression node, java.lang.Object data)
           
 java.lang.Object visit(ASTStatementExpression node, java.lang.Object data)
           
 java.lang.Object visit(ASTTypeDeclaration node, java.lang.Object data)
           
 java.lang.Object visit(ASTType node, java.lang.Object data)
           
 java.lang.Object visit(ASTUnaryExpressionNotPlusMinus node, java.lang.Object data)
           
 java.lang.Object visit(ASTUnaryExpression node, java.lang.Object data)
           
 java.lang.Object visit(ASTVariableDeclaratorId node, java.lang.Object data)
           
 java.lang.Object visit(ASTVariableDeclarator node, java.lang.Object data)
           
 
Methods inherited from class net.sourceforge.pmd.ast.JavaParserVisitorAdapter
visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClassTypeResolver

public ClassTypeResolver()

ClassTypeResolver

public ClassTypeResolver(java.lang.ClassLoader classLoader)
Method Detail

visit

public java.lang.Object visit(ASTCompilationUnit node,
                              java.lang.Object data)
Specified by:
visit in interface JavaParserVisitor
Overrides:
visit in class JavaParserVisitorAdapter

visit

public java.lang.Object visit(ASTImportDeclaration node,
                              java.lang.Object data)
Specified by:
visit in interface JavaParserVisitor
Overrides:
visit in class JavaParserVisitorAdapter

visit

public java.lang.Object visit(ASTTypeDeclaration node,
                              java.lang.Object data)
Specified by:
visit in interface JavaParserVisitor
Overrides:
visit in class JavaParserVisitorAdapter

visit

public java.lang.Object visit(ASTClassOrInterfaceType node,
                              java.lang.Object data)
Specified by:
visit in interface JavaParserVisitor
Overrides:
visit in class JavaParserVisitorAdapter

visit

public java.lang.Object visit(ASTClassOrInterfaceDeclaration node,
                              java.lang.Object data)
Specified by:
visit in interface JavaParserVisitor
Overrides:
visit in class JavaParserVisitorAdapter

visit

public java.lang.Object visit(ASTEnumDeclaration node,
                              java.lang.Object data)
Specified by:
visit in interface JavaParserVisitor
Overrides:
visit in class JavaParserVisitorAdapter

visit

public java.lang.Object visit(ASTAnnotationTypeDeclaration node,
                              java.lang.Object data)
Specified by:
visit in interface JavaParserVisitor
Overrides:
visit in class JavaParserVisitorAdapter

visit

public java.lang.Object visit(ASTName node,
                              java.lang.Object data)
Specified by:
visit in interface JavaParserVisitor
Overrides:
visit in class JavaParserVisitorAdapter

visit

public java.lang.Object visit(ASTFieldDeclaration node,
                              java.lang.Object data)
Specified by:
visit in interface JavaParserVisitor
Overrides:
visit in class JavaParserVisitorAdapter

visit

public java.lang.Object visit(ASTVariableDeclarator node,
                              java.lang.Object data)
Specified by:
visit in interface JavaParserVisitor
Overrides:
visit in class JavaParserVisitorAdapter

visit

public java.lang.Object visit(ASTVariableDeclaratorId node,
                              java.lang.Object data)
Specified by:
visit in interface JavaParserVisitor
Overrides:
visit in class JavaParserVisitorAdapter

visit

public java.lang.Object visit(ASTType node,
                              java.lang.Object data)
Specified by:
visit in interface JavaParserVisitor
Overrides:
visit in class JavaParserVisitorAdapter

visit

public java.lang.Object visit(ASTReferenceType node,
                              java.lang.Object data)
Specified by:
visit in interface JavaParserVisitor
Overrides:
visit in class JavaParserVisitorAdapter

visit

public java.lang.Object visit(ASTPrimitiveType node,
                              java.lang.Object data)
Specified by:
visit in interface JavaParserVisitor
Overrides:
visit in class JavaParserVisitorAdapter

visit

public java.lang.Object visit(ASTExpression node,
                              java.lang.Object data)
Specified by:
visit in interface JavaParserVisitor
Overrides:
visit in class JavaParserVisitorAdapter

visit

public java.lang.Object visit(ASTConditionalExpression node,
                              java.lang.Object data)
Specified by:
visit in interface JavaParserVisitor
Overrides:
visit in class JavaParserVisitorAdapter

visit

public java.lang.Object visit(ASTConditionalOrExpression node,
                              java.lang.Object data)
Specified by:
visit in interface JavaParserVisitor
Overrides:
visit in class JavaParserVisitorAdapter

visit

public java.lang.Object visit(ASTConditionalAndExpression node,
                              java.lang.Object data)
Specified by:
visit in interface JavaParserVisitor
Overrides:
visit in class JavaParserVisitorAdapter

visit

public java.lang.Object visit(ASTInclusiveOrExpression node,
                              java.lang.Object data)
Specified by:
visit in interface JavaParserVisitor
Overrides:
visit in class JavaParserVisitorAdapter

visit

public java.lang.Object visit(ASTExclusiveOrExpression node,
                              java.lang.Object data)
Specified by:
visit in interface JavaParserVisitor
Overrides:
visit in class JavaParserVisitorAdapter

visit

public java.lang.Object visit(ASTAndExpression node,
                              java.lang.Object data)
Specified by:
visit in interface JavaParserVisitor
Overrides:
visit in class JavaParserVisitorAdapter

visit

public java.lang.Object visit(ASTEqualityExpression node,
                              java.lang.Object data)
Specified by:
visit in interface JavaParserVisitor
Overrides:
visit in class JavaParserVisitorAdapter

visit

public java.lang.Object visit(ASTInstanceOfExpression node,
                              java.lang.Object data)
Specified by:
visit in interface JavaParserVisitor
Overrides:
visit in class JavaParserVisitorAdapter

visit

public java.lang.Object visit(ASTRelationalExpression node,
                              java.lang.Object data)
Specified by:
visit in interface JavaParserVisitor
Overrides:
visit in class JavaParserVisitorAdapter

visit

public java.lang.Object visit(ASTShiftExpression node,
                              java.lang.Object data)
Specified by:
visit in interface JavaParserVisitor
Overrides:
visit in class JavaParserVisitorAdapter

visit

public java.lang.Object visit(ASTAdditiveExpression node,
                              java.lang.Object data)
Specified by:
visit in interface JavaParserVisitor
Overrides:
visit in class JavaParserVisitorAdapter

visit

public java.lang.Object visit(ASTMultiplicativeExpression node,
                              java.lang.Object data)
Specified by:
visit in interface JavaParserVisitor
Overrides:
visit in class JavaParserVisitorAdapter

visit

public java.lang.Object visit(ASTUnaryExpression node,
                              java.lang.Object data)
Specified by:
visit in interface JavaParserVisitor
Overrides:
visit in class JavaParserVisitorAdapter

visit

public java.lang.Object visit(ASTPreIncrementExpression node,
                              java.lang.Object data)
Specified by:
visit in interface JavaParserVisitor
Overrides:
visit in class JavaParserVisitorAdapter

visit

public java.lang.Object visit(ASTPreDecrementExpression node,
                              java.lang.Object data)
Specified by:
visit in interface JavaParserVisitor
Overrides:
visit in class JavaParserVisitorAdapter

visit

public java.lang.Object visit(ASTUnaryExpressionNotPlusMinus node,
                              java.lang.Object data)
Specified by:
visit in interface JavaParserVisitor
Overrides:
visit in class JavaParserVisitorAdapter

visit

public java.lang.Object visit(ASTPostfixExpression node,
                              java.lang.Object data)
Specified by:
visit in interface JavaParserVisitor
Overrides:
visit in class JavaParserVisitorAdapter

visit

public java.lang.Object visit(ASTCastExpression node,
                              java.lang.Object data)
Specified by:
visit in interface JavaParserVisitor
Overrides:
visit in class JavaParserVisitorAdapter

visit

public java.lang.Object visit(ASTPrimaryExpression node,
                              java.lang.Object data)
Specified by:
visit in interface JavaParserVisitor
Overrides:
visit in class JavaParserVisitorAdapter

visit

public java.lang.Object visit(ASTPrimaryPrefix node,
                              java.lang.Object data)
Specified by:
visit in interface JavaParserVisitor
Overrides:
visit in class JavaParserVisitorAdapter

visit

public java.lang.Object visit(ASTPrimarySuffix node,
                              java.lang.Object data)
Specified by:
visit in interface JavaParserVisitor
Overrides:
visit in class JavaParserVisitorAdapter

visit

public java.lang.Object visit(ASTNullLiteral node,
                              java.lang.Object data)
Specified by:
visit in interface JavaParserVisitor
Overrides:
visit in class JavaParserVisitorAdapter

visit

public java.lang.Object visit(ASTBooleanLiteral node,
                              java.lang.Object data)
Specified by:
visit in interface JavaParserVisitor
Overrides:
visit in class JavaParserVisitorAdapter

visit

public java.lang.Object visit(ASTLiteral node,
                              java.lang.Object data)
Specified by:
visit in interface JavaParserVisitor
Overrides:
visit in class JavaParserVisitorAdapter

visit

public java.lang.Object visit(ASTAllocationExpression node,
                              java.lang.Object data)
Specified by:
visit in interface JavaParserVisitor
Overrides:
visit in class JavaParserVisitorAdapter

visit

public java.lang.Object visit(ASTStatementExpression node,
                              java.lang.Object data)
Specified by:
visit in interface JavaParserVisitor
Overrides:
visit in class JavaParserVisitorAdapter

classNameExists

public boolean classNameExists(java.lang.String fullyQualifiedClassName)
Check whether the supplied class name exists.



Copyright © 2002-2011 InfoEther. All Rights Reserved.