net.sourceforge.pmd.lang.java.ast
Interface TypeNode

All Superinterfaces:
Node
All Known Implementing Classes:
AbstractJavaAccessTypeNode, AbstractJavaTypeNode, ASTAdditiveExpression, ASTAllocationExpression, ASTAndExpression, ASTAnnotationTypeDeclaration, ASTBooleanLiteral, ASTCastExpression, ASTClassOrInterfaceDeclaration, ASTClassOrInterfaceType, ASTCompilationUnit, ASTConditionalAndExpression, ASTConditionalExpression, ASTConditionalOrExpression, ASTEnumDeclaration, ASTEqualityExpression, ASTExclusiveOrExpression, ASTExpression, ASTFieldDeclaration, ASTImportDeclaration, ASTInclusiveOrExpression, ASTInstanceOfExpression, ASTLiteral, ASTMarkerAnnotation, ASTMultiplicativeExpression, ASTName, ASTNormalAnnotation, ASTNullLiteral, ASTPostfixExpression, ASTPreDecrementExpression, ASTPreIncrementExpression, ASTPrimaryExpression, ASTPrimaryPrefix, ASTPrimitiveType, ASTReferenceType, ASTRelationalExpression, ASTShiftExpression, ASTSingleMemberAnnotation, ASTStatementExpression, ASTType, ASTTypeDeclaration, ASTUnaryExpression, ASTUnaryExpressionNotPlusMinus, ASTVariableDeclarator, ASTVariableDeclaratorId

public interface TypeNode
extends Node

This interface allows a Java Class to be associated with a node.


Method Summary
 Class<?> getType()
          Get the Java Class associated with this node.
 void setType(Class<?> type)
          Set the Java Class associated with this node.
 
Methods inherited from interface net.sourceforge.pmd.lang.ast.Node
findChildNodesWithXPath, findChildrenOfType, findDescendantsOfType, findDescendantsOfType, getAsDocument, getBeginColumn, getBeginLine, getDataFlowNode, getEndColumn, getEndLine, getFirstChildOfType, getFirstDescendantOfType, getFirstParentOfType, getImage, getNthParent, getParentsOfType, getUserData, hasDescendantMatchingXPath, hasDescendantOfType, hasImageEqualTo, isFindBoundary, jjtAddChild, jjtClose, jjtGetChild, jjtGetChildIndex, jjtGetId, jjtGetNumChildren, jjtGetParent, jjtOpen, jjtSetChildIndex, jjtSetParent, setDataFlowNode, setImage, setUserData
 

Method Detail

getType

Class<?> getType()
Get the Java Class associated with this node.

Returns:
The Java Class, may return null.

setType

void setType(Class<?> type)
Set the Java Class associated with this node.

Parameters:
type - A Java Class


Copyright © 2002-2015 InfoEther. All Rights Reserved.