Class AbstractJavaTypeNode
- java.lang.Object
-
- net.sourceforge.pmd.lang.ast.AbstractNode
-
- net.sourceforge.pmd.lang.ast.impl.javacc.AbstractJjtreeNode<JavaNode>
-
- net.sourceforge.pmd.lang.java.ast.AbstractJavaNode
-
- net.sourceforge.pmd.lang.java.ast.AbstractJavaTypeNode
-
- All Implemented Interfaces:
Node
,JavaNode
,TypeNode
,ScopedNode
- Direct Known Subclasses:
ASTAdditiveExpression
,ASTAllocationExpression
,ASTAndExpression
,ASTAnnotation
,ASTBooleanLiteral
,ASTCastExpression
,ASTClassOrInterfaceType
,ASTCompilationUnit
,ASTConditionalAndExpression
,ASTConditionalExpression
,ASTConditionalOrExpression
,ASTEnumConstant
,ASTEqualityExpression
,ASTExclusiveOrExpression
,ASTExpression
,ASTImportDeclaration
,ASTInclusiveOrExpression
,ASTInstanceOfExpression
,ASTLiteral
,ASTMarkerAnnotation
,ASTMultiplicativeExpression
,ASTName
,ASTNormalAnnotation
,ASTNullLiteral
,ASTPostfixExpression
,ASTPreDecrementExpression
,ASTPreIncrementExpression
,ASTPrimaryExpression
,ASTPrimaryPrefix
,ASTPrimarySuffix
,ASTPrimitiveType
,ASTReferenceType
,ASTRelationalExpression
,ASTShiftExpression
,ASTSingleMemberAnnotation
,ASTStatementExpression
,ASTSwitchExpression
,ASTType
,ASTTypeArgument
,ASTTypeBound
,ASTTypeDeclaration
,ASTTypeParameter
,ASTUnaryExpression
,ASTUnaryExpressionNotPlusMinus
,ASTVariableDeclarator
,ASTVariableDeclaratorId
,ASTWildcardBounds
,ASTYieldStatement
@Deprecated @InternalApi public abstract class AbstractJavaTypeNode extends AbstractJavaNode implements TypeNode
Deprecated.An extension of the SimpleJavaNode which implements the TypeNode interface.- See Also:
AbstractJavaNode
,TypeNode
-
-
Field Summary
-
Fields inherited from class net.sourceforge.pmd.lang.java.ast.AbstractJavaNode
parser
-
Fields inherited from class net.sourceforge.pmd.lang.ast.AbstractNode
beginColumn, beginLine, childIndex, children, endColumn, endLine, firstToken, id, lastToken, parent
-
-
Constructor Summary
Constructors Constructor Description AbstractJavaTypeNode(int i)
Deprecated.AbstractJavaTypeNode(JavaParser p, int i)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Class<?>
getType()
Deprecated.Get the Java Class associated with this node.JavaTypeDefinition
getTypeDefinition()
Deprecated.Get the TypeDefinition associated with this node.void
setType(Class<?> type)
Deprecated.void
setTypeDefinition(JavaTypeDefinition typeDefinition)
Deprecated.-
Methods inherited from class net.sourceforge.pmd.lang.java.ast.AbstractJavaNode
childrenAccept, comment, comment, getRoot, getScope, getXPathNodeName, jjtAccept, jjtClose, jjtOpen, setScope
-
Methods inherited from class net.sourceforge.pmd.lang.ast.impl.javacc.AbstractJjtreeNode
children, getChild, getParent
-
Methods inherited from class net.sourceforge.pmd.lang.ast.AbstractNode
appendElement, findChildNodesWithXPath, findChildrenOfType, findDescendantsOfType, findDescendantsOfType, findDescendantsOfType, getAsDocument, getBeginColumn, getBeginLine, getDataFlowNode, getEndColumn, getEndLine, getFirstChildOfType, getFirstDescendantOfType, getFirstParentOfAnyType, getFirstParentOfType, getImage, getIndexInParent, getNthParent, getNumChildren, getParentsOfType, getUserData, getUserMap, getXPathAttributesIterator, hasDecendantOfAnyType, hasDescendantMatchingXPath, hasDescendantOfAnyType, hasDescendantOfType, hasImageEqualTo, isFindBoundary, isSingleLine, jjtAddChild, jjtGetChild, jjtGetChildIndex, jjtGetFirstToken, jjtGetId, jjtGetLastToken, jjtGetNumChildren, jjtGetParent, jjtSetChildIndex, jjtSetFirstToken, jjtSetLastToken, jjtSetParent, remove, removeChildAtIndex, setDataFlowNode, setImage, setUserData, testingOnlySetBeginColumn, testingOnlySetBeginLine, testingOnlySetEndColumn, testingOnlySetEndLine, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface net.sourceforge.pmd.lang.java.ast.JavaNode
children, childrenAccept, getChild, getParent, getRoot, jjtAccept, setScope
-
Methods inherited from interface net.sourceforge.pmd.lang.ast.Node
findChildNodesWithXPath, findChildrenOfType, findDescendantsOfType, findDescendantsOfType, findDescendantsOfType, getAsDocument, getBeginColumn, getBeginLine, getDataFlowNode, getEndColumn, getEndLine, getFirstChildOfType, getFirstDescendantOfType, getFirstParentOfAnyType, getFirstParentOfType, getImage, getIndexInParent, getNthParent, getNumChildren, getParentsOfType, getUserData, getUserMap, getXPathAttributesIterator, getXPathNodeName, hasDescendantMatchingXPath, hasDescendantOfType, hasImageEqualTo, isFindBoundary, jjtAddChild, jjtClose, jjtGetChild, jjtGetChildIndex, jjtGetId, jjtGetNumChildren, jjtGetParent, jjtOpen, jjtSetChildIndex, jjtSetParent, remove, removeChildAtIndex, setDataFlowNode, setImage, setUserData
-
Methods inherited from interface net.sourceforge.pmd.lang.symboltable.ScopedNode
getScope
-
-
-
-
Constructor Detail
-
AbstractJavaTypeNode
@InternalApi @Deprecated public AbstractJavaTypeNode(int i)
Deprecated.
-
AbstractJavaTypeNode
@InternalApi @Deprecated public AbstractJavaTypeNode(JavaParser p, int i)
Deprecated.
-
-
Method Detail
-
getType
public Class<?> getType()
Deprecated.Description copied from interface:TypeNode
Get the Java Class associated with this node.
-
setType
@InternalApi @Deprecated public void setType(Class<?> type)
Deprecated.Description copied from interface:TypeNode
Set the Java Class associated with this node.
-
getTypeDefinition
public JavaTypeDefinition getTypeDefinition()
Deprecated.Description copied from interface:TypeNode
Get the TypeDefinition associated with this node. The Class object contained in the TypeDefinition will always be equal to that which is returned bygetType()
.- Specified by:
getTypeDefinition
in interfaceTypeNode
- Returns:
- The TypeDefinition, may return
null
-
setTypeDefinition
@InternalApi @Deprecated public void setTypeDefinition(JavaTypeDefinition typeDefinition)
Deprecated.Description copied from interface:TypeNode
Set the TypeDefinition associated with this node.- Specified by:
setTypeDefinition
in interfaceTypeNode
- Parameters:
typeDefinition
- A TypeDefinition object
-
-