Top Description Constructors Methods
com.sun.source.util

public Class DocTreeScanner<R, P>

extends Object
implements DocTreeVisitor<R, P>
Class Inheritance
All Implemented Interfaces
com.sun.source.doctree.DocTreeVisitor
Known Direct Subclasses
jdk.internal.shellsupport.doc.JavadocFormatter.FormatJavadocScanner, com.sun.source.util.DocTreePathScanner
Type Parameters
<R>
the return type of this visitor's methods. Use Void for visitors that do not need to return results.
<P>
the type of the additional parameter to this visitor's methods. Use Void for visitors that do not need an additional parameter.
Imports
com.sun.source.doctree.*

A DocTreeVisitor that visits all the child tree nodes. To visit nodes of a particular type, just override the corresponding visitXYZ method. Inside your method, call super.visitXYZ to visit descendant nodes.

Here is an example to count the number of erroneous nodes in a tree:

  class CountErrors extends DocTreeScanner<Integer,Void> {
     @Override
     public Integer visitErroneous(ErroneousTree node, Void p) {
         return 1;
     }
     @Override
     public Integer reduce(Integer r1, Integer r2) {
         return (r1 == null ? 0 : r1) + (r2 == null ? 0 : r2);
     }
  }

Implementation Specification

The default implementation of the visitXYZ methods will determine a result as follows:

Since
1.8

Constructor Summary

AccessConstructor and Description
public
DocTreeScanner()

Constructs a DocTreeScanner.

Method Summary

Modifier and TypeMethod and Description
public R

Returns:

the result of combining the two parameters
reduce
(R
the first of the values to be combined
r1
,
R
the second of the values to be combined
r2
)

Reduces two results into a combined result.

public R

Returns:

the result value from the visit method
scan
(DocTree
the node to be scanned
node
,
P
a parameter value passed to the visit method
p
)

Scans a single node.

public R

Returns:

the combined return value from the visit methods. The values are combined using the reduce method.
scan
(Iterable<? extends DocTree>
the nodes to be scanned
nodes
,
P
a parameter value to be passed to the visit method for each node
p
)

Scans a sequence of nodes.

private R
scanAndReduce(DocTree node, P p, R r)

private R
scanAndReduce(Iterable<? extends DocTree> nodes, P p, R r)

public R

Returns:

the result of scanning
visitAttribute
(AttributeTree
the node being visited
node
,
P
a parameter value
p
)

Implements com.sun.source.doctree.DocTreeVisitor.visitAttribute.

Visits an AttributeTree node.
public R

Returns:

the result of scanning
visitAuthor
(AuthorTree
the node being visited
node
,
P
a parameter value
p
)

Implements com.sun.source.doctree.DocTreeVisitor.visitAuthor.

Visits an AuthorTree node.
public R

Returns:

the result of scanning
visitComment
(CommentTree
the node being visited
node
,
P
a parameter value
p
)

Implements com.sun.source.doctree.DocTreeVisitor.visitComment.

Visits a CommentTree node.
public R

Returns:

the result of scanning
visitDeprecated
(DeprecatedTree
the node being visited
node
,
P
a parameter value
p
)

Implements com.sun.source.doctree.DocTreeVisitor.visitDeprecated.

Visits a DeprecatedTree node.
public R

Returns:

the result of scanning
visitDocComment
(DocCommentTree
the node being visited
node
,
P
a parameter value
p
)

Implements com.sun.source.doctree.DocTreeVisitor.visitDocComment.

Visits a DocCommentTree node.
public R

Returns:

the result of scanning
visitDocRoot
(DocRootTree
the node being visited
node
,
P
a parameter value
p
)

Implements com.sun.source.doctree.DocTreeVisitor.visitDocRoot.

Visits a DocRootTree node.
public R

Returns:

the result of scanning
visitDocType
(DocTypeTree
the node being visited
node
,
P
a parameter value
p
)

Overrides default com.sun.source.doctree.DocTreeVisitor.visitDocType.

Visits a DocTypeTree node.
public R

Returns:

the result of scanning
visitEndElement
(EndElementTree
the node being visited
node
,
P
a parameter value
p
)

Implements com.sun.source.doctree.DocTreeVisitor.visitEndElement.

Visits an EndElementTree node.
public R

Returns:

the result of scanning
visitEntity
(EntityTree
the node being visited
node
,
P
a parameter value
p
)

Implements com.sun.source.doctree.DocTreeVisitor.visitEntity.

Visits an EntityTree node.
public R

Returns:

the result of scanning
visitErroneous
(ErroneousTree
the node being visited
node
,
P
a parameter value
p
)

Implements com.sun.source.doctree.DocTreeVisitor.visitErroneous.

Visits an ErroneousTree node.
public R

Returns:

the result of scanning
visitEscape
(EscapeTree
the node being visited
node
,
P
a parameter value
p
)

Overrides default com.sun.source.doctree.DocTreeVisitor.visitEscape.

Visits an EscapeTree node.
public R

Returns:

the result of scanning
visitHidden
(HiddenTree
the node being visited
node
,
P
a parameter value
p
)

Overrides default com.sun.source.doctree.DocTreeVisitor.visitHidden.

Visits a HiddenTree node.
public R

Returns:

the result of scanning
visitIdentifier
(IdentifierTree
the node being visited
node
,
P
a parameter value
p
)

Implements com.sun.source.doctree.DocTreeVisitor.visitIdentifier.

Visits an IdentifierTree node.
public R

Returns:

the result of scanning
visitIndex
(IndexTree
the node being visited
node
,
P
a parameter value
p
)

Overrides default com.sun.source.doctree.DocTreeVisitor.visitIndex.

Visits an IndexTree node.
public R

Returns:

the result of scanning
visitInheritDoc
(InheritDocTree
the node being visited
node
,
P
a parameter value
p
)

Implements com.sun.source.doctree.DocTreeVisitor.visitInheritDoc.

Visits an InheritDocTree node.
public R

Returns:

the result of scanning
visitLiteral
(LiteralTree
the node being visited
node
,
P
a parameter value
p
)

Implements com.sun.source.doctree.DocTreeVisitor.visitLiteral.

Visits an LiteralTree node.
public R

Returns:

the result of scanning
visitOther
(DocTree
the node being visited
node
,
P
a parameter value
p
)

Implements com.sun.source.doctree.DocTreeVisitor.visitOther.

Visits an unknown type of DocTree node.
public R

Returns:

the result of scanning
visitParam
(ParamTree
the node being visited
node
,
P
a parameter value
p
)

Implements com.sun.source.doctree.DocTreeVisitor.visitParam.

Visits a ParamTree node.
public R

Returns:

the result of scanning
visitProvides
(ProvidesTree
the node being visited
node
,
P
a parameter value
p
)

Overrides default com.sun.source.doctree.DocTreeVisitor.visitProvides.

Visits a ProvidesTree node.
public R

Returns:

the result of scanning
visitReference
(ReferenceTree
the node being visited
node
,
P
a parameter value
p
)

Implements com.sun.source.doctree.DocTreeVisitor.visitReference.

Visits a ReferenceTree node.
public R

Returns:

the result of scanning
visitReturn
(ReturnTree
the node being visited
node
,
P
a parameter value
p
)

Implements com.sun.source.doctree.DocTreeVisitor.visitReturn.

Visits a ReturnTree node.
public R

Returns:

the result of scanning
visitSee
(SeeTree
the node being visited
node
,
P
a parameter value
p
)

Implements com.sun.source.doctree.DocTreeVisitor.visitSee.

Visits a SeeTree node.
public R

Returns:

the result of scanning
visitSerial
(SerialTree
the node being visited
node
,
P
a parameter value
p
)

Implements com.sun.source.doctree.DocTreeVisitor.visitSerial.

Visits a SerialTree node.
public R

Returns:

the result of scanning
visitSerialData
(SerialDataTree
the node being visited
node
,
P
a parameter value
p
)

Implements com.sun.source.doctree.DocTreeVisitor.visitSerialData.

Visits a SerialDataTree node.
public R

Returns:

the result of scanning
visitSerialField
(SerialFieldTree
the node being visited
node
,
P
a parameter value
p
)

Implements com.sun.source.doctree.DocTreeVisitor.visitSerialField.

Visits a SerialFieldTree node.
public R

Returns:

the result of scanning
visitSince
(SinceTree
the node being visited
node
,
P
a parameter value
p
)

Implements com.sun.source.doctree.DocTreeVisitor.visitSince.

Visits a SinceTree node.
public R

Returns:

the result of scanning
visitSnippet
(SnippetTree
the node being visited
node
,
P
a parameter value
p
)

Overrides default com.sun.source.doctree.DocTreeVisitor.visitSnippet.

Visits a SnippetTree node.
public R

Returns:

the result of scanning
visitSpec
(SpecTree
the node being visited
node
,
P
a parameter value
p
)

Overrides default com.sun.source.doctree.DocTreeVisitor.visitSpec.

Visits a SpecTree node.
public R

Returns:

the result of scanning
visitStartElement
(StartElementTree
the node being visited
node
,
P
a parameter value
p
)

Implements com.sun.source.doctree.DocTreeVisitor.visitStartElement.

Visits a StartElementTree node.
public R

Returns:

the result of scanning
visitSummary
(SummaryTree
the node being visited
node
,
P
a parameter value
p
)

Overrides default com.sun.source.doctree.DocTreeVisitor.visitSummary.

Visits a SummaryTree node.
public R

Returns:

the result of scanning
visitSystemProperty
(SystemPropertyTree
the node being visited
node
,
P
a parameter value
p
)

Overrides default com.sun.source.doctree.DocTreeVisitor.visitSystemProperty.

Visits a SystemPropertyTree node.
public R

Returns:

the result of scanning
visitText
(TextTree
the node being visited
node
,
P
a parameter value
p
)

Implements com.sun.source.doctree.DocTreeVisitor.visitText.

Visits a TextTree node.
public R

Returns:

the result of scanning
visitThrows
(ThrowsTree
the node being visited
node
,
P
a parameter value
p
)

Implements com.sun.source.doctree.DocTreeVisitor.visitThrows.

Visits a ThrowsTree node.
public R

Returns:

the result of scanning
visitUnknownBlockTag
(UnknownBlockTagTree
the node being visited
node
,
P
a parameter value
p
)

Implements com.sun.source.doctree.DocTreeVisitor.visitUnknownBlockTag.

Visits an UnknownBlockTagTree node.
public R

Returns:

the result of scanning
visitUnknownInlineTag
(UnknownInlineTagTree
the node being visited
node
,
P
a parameter value
p
)

Implements com.sun.source.doctree.DocTreeVisitor.visitUnknownInlineTag.

Visits an UnknownInlineTagTree node.
public R

Returns:

the result of scanning
visitUses
(UsesTree
the node being visited
node
,
P
a parameter value
p
)

Overrides default com.sun.source.doctree.DocTreeVisitor.visitUses.

Visits a UsesTree node.
public R

Returns:

the result of scanning
visitValue
(ValueTree
the node being visited
node
,
P
a parameter value
p
)

Implements com.sun.source.doctree.DocTreeVisitor.visitValue.

Visits a ValueTree node.
public R

Returns:

the result of scanning
visitVersion
(VersionTree
the node being visited
node
,
P
a parameter value
p
)

Implements com.sun.source.doctree.DocTreeVisitor.visitVersion.

Visits a VersionTree node.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

DocTreeScannerback to summary
public DocTreeScanner()

Constructs a DocTreeScanner.

Method Detail

reduceback to summary
public R reduce(R r1, R r2)

Reduces two results into a combined result. The default implementation is to return the first parameter. The general contract of the method is that it may take any action whatsoever.

Parameters
r1:R

the first of the values to be combined

r2:R

the second of the values to be combined

Returns:R

the result of combining the two parameters

scanback to summary
public R scan(DocTree node, P p)

Scans a single node.

Parameters
node:DocTree

the node to be scanned

p:P

a parameter value passed to the visit method

Returns:R

the result value from the visit method

scanback to summary
public R scan(Iterable<? extends DocTree> nodes, P p)

Scans a sequence of nodes.

Parameters
nodes:Iterable<? extends DocTree>

the nodes to be scanned

p:P

a parameter value to be passed to the visit method for each node

Returns:R

the combined return value from the visit methods. The values are combined using the reduce method.

scanAndReduceback to summary
private R scanAndReduce(DocTree node, P p, R r)
scanAndReduceback to summary
private R scanAndReduce(Iterable<? extends DocTree> nodes, P p, R r)
visitAttributeback to summary
public R visitAttribute(AttributeTree node, P p)

Implements com.sun.source.doctree.DocTreeVisitor.visitAttribute.

Doc from com.sun.source.doctree.DocTreeVisitor.visitAttribute.

Visits an AttributeTree node.

Implementation Specification

This implementation scans the children in left to right order.

Parameters
node:AttributeTree

the node being visited

p:P

a parameter value

Returns:R

the result of scanning

Annotations
@Override
visitAuthorback to summary
public R visitAuthor(AuthorTree node, P p)

Implements com.sun.source.doctree.DocTreeVisitor.visitAuthor.

Doc from com.sun.source.doctree.DocTreeVisitor.visitAuthor.

Visits an AuthorTree node.

Implementation Specification

This implementation scans the children in left to right order.

Parameters
node:AuthorTree

the node being visited

p:P

a parameter value

Returns:R

the result of scanning

Annotations
@Override
visitCommentback to summary
public R visitComment(CommentTree node, P p)

Implements com.sun.source.doctree.DocTreeVisitor.visitComment.

Doc from com.sun.source.doctree.DocTreeVisitor.visitComment.

Visits a CommentTree node.

Implementation Specification

This implementation returns null.

Parameters
node:CommentTree

the node being visited

p:P

a parameter value

Returns:R

the result of scanning

Annotations
@Override
visitDeprecatedback to summary
public R visitDeprecated(DeprecatedTree node, P p)

Implements com.sun.source.doctree.DocTreeVisitor.visitDeprecated.

Doc from com.sun.source.doctree.DocTreeVisitor.visitDeprecated.

Visits a DeprecatedTree node.

Implementation Specification

This implementation scans the children in left to right order.

Parameters
node:DeprecatedTree

the node being visited

p:P

a parameter value

Returns:R

the result of scanning

Annotations
@Override
visitDocCommentback to summary
public R visitDocComment(DocCommentTree node, P p)

Implements com.sun.source.doctree.DocTreeVisitor.visitDocComment.

Doc from com.sun.source.doctree.DocTreeVisitor.visitDocComment.

Visits a DocCommentTree node.

Implementation Specification

This implementation scans the children in left to right order.

Parameters
node:DocCommentTree

the node being visited

p:P

a parameter value

Returns:R

the result of scanning

Annotations
@Override
visitDocRootback to summary
public R visitDocRoot(DocRootTree node, P p)

Implements com.sun.source.doctree.DocTreeVisitor.visitDocRoot.

Doc from com.sun.source.doctree.DocTreeVisitor.visitDocRoot.

Visits a DocRootTree node.

Implementation Specification

This implementation returns null.

Parameters
node:DocRootTree

the node being visited

p:P

a parameter value

Returns:R

the result of scanning

Annotations
@Override
visitDocTypeback to summary
public R visitDocType(DocTypeTree node, P p)

Overrides default com.sun.source.doctree.DocTreeVisitor.visitDocType.

Doc from com.sun.source.doctree.DocTreeVisitor.visitDocType.

Visits a DocTypeTree node.

Implementation Specification

This implementation returns null.

Parameters
node:DocTypeTree

the node being visited

p:P

a parameter value

Returns:R

the result of scanning

Annotations
@Override
visitEndElementback to summary
public R visitEndElement(EndElementTree node, P p)

Implements com.sun.source.doctree.DocTreeVisitor.visitEndElement.

Doc from com.sun.source.doctree.DocTreeVisitor.visitEndElement.

Visits an EndElementTree node.

Implementation Specification

This implementation returns null.

Parameters
node:EndElementTree

the node being visited

p:P

a parameter value

Returns:R

the result of scanning

Annotations
@Override
visitEntityback to summary
public R visitEntity(EntityTree node, P p)

Implements com.sun.source.doctree.DocTreeVisitor.visitEntity.

Doc from com.sun.source.doctree.DocTreeVisitor.visitEntity.

Visits an EntityTree node.

Implementation Specification

This implementation returns null.

Parameters
node:EntityTree

the node being visited

p:P

a parameter value

Returns:R

the result of scanning

Annotations
@Override
visitErroneousback to summary
public R visitErroneous(ErroneousTree node, P p)

Implements com.sun.source.doctree.DocTreeVisitor.visitErroneous.

Doc from com.sun.source.doctree.DocTreeVisitor.visitErroneous.

Visits an ErroneousTree node.

Implementation Specification

This implementation returns null.

Parameters
node:ErroneousTree

the node being visited

p:P

a parameter value

Returns:R

the result of scanning

Annotations
@Override
visitEscapeback to summary
public R visitEscape(EscapeTree node, P p)

Overrides default com.sun.source.doctree.DocTreeVisitor.visitEscape.

Doc from com.sun.source.doctree.DocTreeVisitor.visitEscape.

Visits an EscapeTree node.

Implementation Specification

This implementation returns null.

Parameters
node:EscapeTree

the node being visited

p:P

a parameter value

Returns:R

the result of scanning

Annotations
@Override
Since
21
visitHiddenback to summary
public R visitHidden(HiddenTree node, P p)

Overrides default com.sun.source.doctree.DocTreeVisitor.visitHidden.

Doc from com.sun.source.doctree.DocTreeVisitor.visitHidden.

Visits a HiddenTree node.

Implementation Specification

This implementation scans the children in left to right order.

Parameters
node:HiddenTree

the node being visited

p:P

a parameter value

Returns:R

the result of scanning

Annotations
@Override
visitIdentifierback to summary
public R visitIdentifier(IdentifierTree node, P p)

Implements com.sun.source.doctree.DocTreeVisitor.visitIdentifier.

Doc from com.sun.source.doctree.DocTreeVisitor.visitIdentifier.

Visits an IdentifierTree node.

Implementation Specification

This implementation returns null.

Parameters
node:IdentifierTree

the node being visited

p:P

a parameter value

Returns:R

the result of scanning

Annotations
@Override
visitIndexback to summary
public R visitIndex(IndexTree node, P p)

Overrides default com.sun.source.doctree.DocTreeVisitor.visitIndex.

Doc from com.sun.source.doctree.DocTreeVisitor.visitIndex.

Visits an IndexTree node.

Implementation Specification

This implementation scans the children in left to right order.

Parameters
node:IndexTree

the node being visited

p:P

a parameter value

Returns:R

the result of scanning

Annotations
@Override
visitInheritDocback to summary
public R visitInheritDoc(InheritDocTree node, P p)

Implements com.sun.source.doctree.DocTreeVisitor.visitInheritDoc.

Doc from com.sun.source.doctree.DocTreeVisitor.visitInheritDoc.

Visits an InheritDocTree node.

Implementation Specification

This implementation scans the children in left to right order.

Parameters
node:InheritDocTree

the node being visited

p:P

a parameter value

Returns:R

the result of scanning

Annotations
@Override
visitLiteralback to summary
public R visitLiteral(LiteralTree node, P p)

Implements com.sun.source.doctree.DocTreeVisitor.visitLiteral.

Doc from com.sun.source.doctree.DocTreeVisitor.visitLiteral.

Visits an LiteralTree node.

Implementation Specification

This implementation scans the children in left to right order.

Parameters
node:LiteralTree

the node being visited

p:P

a parameter value

Returns:R

the result of scanning

Annotations
@Override
visitOtherback to summary
public R visitOther(DocTree node, P p)

Implements com.sun.source.doctree.DocTreeVisitor.visitOther.

Doc from com.sun.source.doctree.DocTreeVisitor.visitOther.

Visits an unknown type of DocTree node. This can occur if the set of tags evolves and new kinds of nodes are added to the DocTree hierarchy.

Implementation Specification

This implementation returns null.

Parameters
node:DocTree

the node being visited

p:P

a parameter value

Returns:R

the result of scanning

Annotations
@Override
visitParamback to summary
public R visitParam(ParamTree node, P p)

Implements com.sun.source.doctree.DocTreeVisitor.visitParam.

Doc from com.sun.source.doctree.DocTreeVisitor.visitParam.

Visits a ParamTree node.

Implementation Specification

This implementation scans the children in left to right order.

Parameters
node:ParamTree

the node being visited

p:P

a parameter value

Returns:R

the result of scanning

Annotations
@Override
visitProvidesback to summary
public R visitProvides(ProvidesTree node, P p)

Overrides default com.sun.source.doctree.DocTreeVisitor.visitProvides.

Doc from com.sun.source.doctree.DocTreeVisitor.visitProvides.

Visits a ProvidesTree node.

Implementation Specification

This implementation scans the children in left to right order.

Parameters
node:ProvidesTree

the node being visited

p:P

a parameter value

Returns:R

the result of scanning

Annotations
@Override
visitReferenceback to summary
public R visitReference(ReferenceTree node, P p)

Implements com.sun.source.doctree.DocTreeVisitor.visitReference.

Doc from com.sun.source.doctree.DocTreeVisitor.visitReference.

Visits a ReferenceTree node.

Implementation Specification

This implementation returns null.

Parameters
node:ReferenceTree

the node being visited

p:P

a parameter value

Returns:R

the result of scanning

Annotations
@Override
visitReturnback to summary
public R visitReturn(ReturnTree node, P p)

Implements com.sun.source.doctree.DocTreeVisitor.visitReturn.

Doc from com.sun.source.doctree.DocTreeVisitor.visitReturn.

Visits a ReturnTree node.

Implementation Specification

This implementation scans the children in left to right order.

Parameters
node:ReturnTree

the node being visited

p:P

a parameter value

Returns:R

the result of scanning

Annotations
@Override
visitSeeback to summary
public R visitSee(SeeTree node, P p)

Implements com.sun.source.doctree.DocTreeVisitor.visitSee.

Doc from com.sun.source.doctree.DocTreeVisitor.visitSee.

Visits a SeeTree node.

Implementation Specification

This implementation scans the children in left to right order.

Parameters
node:SeeTree

the node being visited

p:P

a parameter value

Returns:R

the result of scanning

Annotations
@Override
visitSerialback to summary
public R visitSerial(SerialTree node, P p)

Implements com.sun.source.doctree.DocTreeVisitor.visitSerial.

Doc from com.sun.source.doctree.DocTreeVisitor.visitSerial.

Visits a SerialTree node.

Implementation Specification

This implementation scans the children in left to right order.

Parameters
node:SerialTree

the node being visited

p:P

a parameter value

Returns:R

the result of scanning

Annotations
@Override
visitSerialDataback to summary
public R visitSerialData(SerialDataTree node, P p)

Implements com.sun.source.doctree.DocTreeVisitor.visitSerialData.

Doc from com.sun.source.doctree.DocTreeVisitor.visitSerialData.

Visits a SerialDataTree node.

Implementation Specification

This implementation scans the children in left to right order.

Parameters
node:SerialDataTree

the node being visited

p:P

a parameter value

Returns:R

the result of scanning

Annotations
@Override
visitSerialFieldback to summary
public R visitSerialField(SerialFieldTree node, P p)

Implements com.sun.source.doctree.DocTreeVisitor.visitSerialField.

Doc from com.sun.source.doctree.DocTreeVisitor.visitSerialField.

Visits a SerialFieldTree node.

Implementation Specification

This implementation scans the children in left to right order.

Parameters
node:SerialFieldTree

the node being visited

p:P

a parameter value

Returns:R

the result of scanning

Annotations
@Override
visitSinceback to summary
public R visitSince(SinceTree node, P p)

Implements com.sun.source.doctree.DocTreeVisitor.visitSince.

Doc from com.sun.source.doctree.DocTreeVisitor.visitSince.

Visits a SinceTree node.

Implementation Specification

This implementation scans the children in left to right order.

Parameters
node:SinceTree

the node being visited

p:P

a parameter value

Returns:R

the result of scanning

Annotations
@Override
visitSnippetback to summary
public R visitSnippet(SnippetTree node, P p)

Overrides default com.sun.source.doctree.DocTreeVisitor.visitSnippet.

Doc from com.sun.source.doctree.DocTreeVisitor.visitSnippet.

Visits a SnippetTree node.

Implementation Specification

This implementation scans the children in left to right order.

Parameters
node:SnippetTree

the node being visited

p:P

a parameter value

Returns:R

the result of scanning

Annotations
@Override
Since
18
visitSpecback to summary
public R visitSpec(SpecTree node, P p)

Overrides default com.sun.source.doctree.DocTreeVisitor.visitSpec.

Doc from com.sun.source.doctree.DocTreeVisitor.visitSpec.

Visits a SpecTree node.

Implementation Specification

This implementation scans the children in left to right order.

Parameters
node:SpecTree

the node being visited

p:P

a parameter value

Returns:R

the result of scanning

Annotations
@Override
Since
20
visitStartElementback to summary
public R visitStartElement(StartElementTree node, P p)

Implements com.sun.source.doctree.DocTreeVisitor.visitStartElement.

Doc from com.sun.source.doctree.DocTreeVisitor.visitStartElement.

Visits a StartElementTree node.

Implementation Specification

This implementation scans the children in left to right order.

Parameters
node:StartElementTree

the node being visited

p:P

a parameter value

Returns:R

the result of scanning

Annotations
@Override
visitSummaryback to summary
public R visitSummary(SummaryTree node, P p)

Overrides default com.sun.source.doctree.DocTreeVisitor.visitSummary.

Doc from com.sun.source.doctree.DocTreeVisitor.visitSummary.

Visits a SummaryTree node.

Implementation Specification

This implementation scans the children in left to right order.

Parameters
node:SummaryTree

the node being visited

p:P

a parameter value

Returns:R

the result of scanning

Annotations
@Override
Since
10
visitSystemPropertyback to summary
public R visitSystemProperty(SystemPropertyTree node, P p)

Overrides default com.sun.source.doctree.DocTreeVisitor.visitSystemProperty.

Doc from com.sun.source.doctree.DocTreeVisitor.visitSystemProperty.

Visits a SystemPropertyTree node.

Implementation Specification

This implementation returns null.

Parameters
node:SystemPropertyTree

the node being visited

p:P

a parameter value

Returns:R

the result of scanning

Annotations
@Override
Since
12
visitTextback to summary
public R visitText(TextTree node, P p)

Implements com.sun.source.doctree.DocTreeVisitor.visitText.

Doc from com.sun.source.doctree.DocTreeVisitor.visitText.

Visits a TextTree node.

Implementation Specification

This implementation returns null.

Parameters
node:TextTree

the node being visited

p:P

a parameter value

Returns:R

the result of scanning

Annotations
@Override
visitThrowsback to summary
public R visitThrows(ThrowsTree node, P p)

Implements com.sun.source.doctree.DocTreeVisitor.visitThrows.

Doc from com.sun.source.doctree.DocTreeVisitor.visitThrows.

Visits a ThrowsTree node.

Implementation Specification

This implementation scans the children in left to right order.

Parameters
node:ThrowsTree

the node being visited

p:P

a parameter value

Returns:R

the result of scanning

Annotations
@Override
visitUnknownBlockTagback to summary
public R visitUnknownBlockTag(UnknownBlockTagTree node, P p)

Implements com.sun.source.doctree.DocTreeVisitor.visitUnknownBlockTag.

Doc from com.sun.source.doctree.DocTreeVisitor.visitUnknownBlockTag.

Visits an UnknownBlockTagTree node.

Implementation Specification

This implementation scans the children in left to right order.

Parameters
node:UnknownBlockTagTree

the node being visited

p:P

a parameter value

Returns:R

the result of scanning

Annotations
@Override
visitUnknownInlineTagback to summary
public R visitUnknownInlineTag(UnknownInlineTagTree node, P p)

Implements com.sun.source.doctree.DocTreeVisitor.visitUnknownInlineTag.

Doc from com.sun.source.doctree.DocTreeVisitor.visitUnknownInlineTag.

Visits an UnknownInlineTagTree node.

Implementation Specification

This implementation scans the children in left to right order.

Parameters
node:UnknownInlineTagTree

the node being visited

p:P

a parameter value

Returns:R

the result of scanning

Annotations
@Override
visitUsesback to summary
public R visitUses(UsesTree node, P p)

Overrides default com.sun.source.doctree.DocTreeVisitor.visitUses.

Doc from com.sun.source.doctree.DocTreeVisitor.visitUses.

Visits a UsesTree node.

Implementation Specification

This implementation scans the children in left to right order.

Parameters
node:UsesTree

the node being visited

p:P

a parameter value

Returns:R

the result of scanning

Annotations
@Override
visitValueback to summary
public R visitValue(ValueTree node, P p)

Implements com.sun.source.doctree.DocTreeVisitor.visitValue.

Doc from com.sun.source.doctree.DocTreeVisitor.visitValue.

Visits a ValueTree node.

Implementation Specification

This implementation scans the children in left to right order.

Parameters
node:ValueTree

the node being visited

p:P

a parameter value

Returns:R

the result of scanning

Annotations
@Override
visitVersionback to summary
public R visitVersion(VersionTree node, P p)

Implements com.sun.source.doctree.DocTreeVisitor.visitVersion.

Doc from com.sun.source.doctree.DocTreeVisitor.visitVersion.

Visits a VersionTree node.

Implementation Specification

This implementation scans the children in left to right order.

Parameters
node:VersionTree

the node being visited

p:P

a parameter value

Returns:R

the result of scanning

Annotations
@Override