Class ScalaParserVisitorAdapter<D,R>
- java.lang.Object
-
- net.sourceforge.pmd.lang.scala.ast.ScalaParserVisitorAdapter<D,R>
-
- Type Parameters:
D
- The type of the data inputR
- The type of the returned data
- All Implemented Interfaces:
ScalaParserVisitor<D,R>
public class ScalaParserVisitorAdapter<D,R> extends Object implements ScalaParserVisitor<D,R>
An Adapter for the Scala Parser that implements the Visitor Pattern.
-
-
Constructor Summary
Constructors Constructor Description ScalaParserVisitorAdapter()
-
Method Summary
-
-
-
Method Detail
-
zero
@Deprecated protected R zero()
Deprecated.This method will be removed with PMD 7. Seecombine(Object, Object)
.Initial value when combining values returned by children.
-
combine
protected R combine(R acc, R r)
Deprecated.This method will be removed with PMD 7. This is just not so useful, most visitors use side effects on the data input directly, or, return the data input again, which is only possible if `D = R`, and so only known in the specific subclass.Merge two values of type R, used to combine values returned by children.
-
visit
public R visit(ScalaNode<?> node, D data)
Description copied from interface:ScalaParserVisitor
Visit an arbitrary Scala Node (any node in the tree).- Specified by:
visit
in interfaceScalaParserVisitor<D,R>
- Parameters:
node
- the node of the treedata
- context-specific data- Returns:
- context-specific data
-
visit
public R visit(ASTSource node, D data)
Description copied from interface:ScalaParserVisitor
Visit the Source Node (the root node of the tree).- Specified by:
visit
in interfaceScalaParserVisitor<D,R>
- Parameters:
node
- the root node of the treedata
- context-specific data- Returns:
- context-specific data
-
visit
public R visit(ASTCase node, D data)
- Specified by:
visit
in interfaceScalaParserVisitor<D,R>
-
visit
public R visit(ASTCtorPrimary node, D data)
- Specified by:
visit
in interfaceScalaParserVisitor<D,R>
-
visit
public R visit(ASTCtorSecondary node, D data)
- Specified by:
visit
in interfaceScalaParserVisitor<D,R>
-
visit
public R visit(ASTDeclDef node, D data)
- Specified by:
visit
in interfaceScalaParserVisitor<D,R>
-
visit
public R visit(ASTDeclType node, D data)
- Specified by:
visit
in interfaceScalaParserVisitor<D,R>
-
visit
public R visit(ASTDeclVal node, D data)
- Specified by:
visit
in interfaceScalaParserVisitor<D,R>
-
visit
public R visit(ASTDeclVar node, D data)
- Specified by:
visit
in interfaceScalaParserVisitor<D,R>
-
visit
public R visit(ASTDefnClass node, D data)
- Specified by:
visit
in interfaceScalaParserVisitor<D,R>
-
visit
public R visit(ASTDefnDef node, D data)
- Specified by:
visit
in interfaceScalaParserVisitor<D,R>
-
visit
public R visit(ASTDefnMacro node, D data)
- Specified by:
visit
in interfaceScalaParserVisitor<D,R>
-
visit
public R visit(ASTDefnObject node, D data)
- Specified by:
visit
in interfaceScalaParserVisitor<D,R>
-
visit
public R visit(ASTDefnTrait node, D data)
- Specified by:
visit
in interfaceScalaParserVisitor<D,R>
-
visit
public R visit(ASTDefnType node, D data)
- Specified by:
visit
in interfaceScalaParserVisitor<D,R>
-
visit
public R visit(ASTDefnVal node, D data)
- Specified by:
visit
in interfaceScalaParserVisitor<D,R>
-
visit
public R visit(ASTDefnVar node, D data)
- Specified by:
visit
in interfaceScalaParserVisitor<D,R>
-
visit
public R visit(ASTEnumeratorGenerator node, D data)
- Specified by:
visit
in interfaceScalaParserVisitor<D,R>
-
visit
public R visit(ASTEnumeratorGuard node, D data)
- Specified by:
visit
in interfaceScalaParserVisitor<D,R>
-
visit
public R visit(ASTEnumeratorVal node, D data)
- Specified by:
visit
in interfaceScalaParserVisitor<D,R>
-
visit
public R visit(ASTImport node, D data)
- Specified by:
visit
in interfaceScalaParserVisitor<D,R>
-
visit
public R visit(ASTImporteeName node, D data)
- Specified by:
visit
in interfaceScalaParserVisitor<D,R>
-
visit
public R visit(ASTImporteeRename node, D data)
- Specified by:
visit
in interfaceScalaParserVisitor<D,R>
-
visit
public R visit(ASTImporteeUnimport node, D data)
- Specified by:
visit
in interfaceScalaParserVisitor<D,R>
-
visit
public R visit(ASTImporteeWildcard node, D data)
- Specified by:
visit
in interfaceScalaParserVisitor<D,R>
-
visit
public R visit(ASTImporter node, D data)
- Specified by:
visit
in interfaceScalaParserVisitor<D,R>
-
visit
public R visit(ASTInit node, D data)
- Specified by:
visit
in interfaceScalaParserVisitor<D,R>
-
visit
public R visit(ASTLitBoolean node, D data)
- Specified by:
visit
in interfaceScalaParserVisitor<D,R>
-
visit
public R visit(ASTLitByte node, D data)
- Specified by:
visit
in interfaceScalaParserVisitor<D,R>
-
visit
public R visit(ASTLitChar node, D data)
- Specified by:
visit
in interfaceScalaParserVisitor<D,R>
-
visit
public R visit(ASTLitDouble node, D data)
- Specified by:
visit
in interfaceScalaParserVisitor<D,R>
-
visit
public R visit(ASTLitFloat node, D data)
- Specified by:
visit
in interfaceScalaParserVisitor<D,R>
-
visit
public R visit(ASTLitInt node, D data)
- Specified by:
visit
in interfaceScalaParserVisitor<D,R>
-
visit
public R visit(ASTLitLong node, D data)
- Specified by:
visit
in interfaceScalaParserVisitor<D,R>
-
visit
public R visit(ASTLitNull node, D data)
- Specified by:
visit
in interfaceScalaParserVisitor<D,R>
-
visit
public R visit(ASTLitShort node, D data)
- Specified by:
visit
in interfaceScalaParserVisitor<D,R>
-
visit
public R visit(ASTLitString node, D data)
- Specified by:
visit
in interfaceScalaParserVisitor<D,R>
-
visit
public R visit(ASTLitSymbol node, D data)
- Specified by:
visit
in interfaceScalaParserVisitor<D,R>
-
visit
public R visit(ASTLitUnit node, D data)
- Specified by:
visit
in interfaceScalaParserVisitor<D,R>
-
visit
public R visit(ASTModAbstract node, D data)
- Specified by:
visit
in interfaceScalaParserVisitor<D,R>
-
visit
public R visit(ASTModAnnot node, D data)
- Specified by:
visit
in interfaceScalaParserVisitor<D,R>
-
visit
public R visit(ASTModCase node, D data)
- Specified by:
visit
in interfaceScalaParserVisitor<D,R>
-
visit
public R visit(ASTModContravariant node, D data)
- Specified by:
visit
in interfaceScalaParserVisitor<D,R>
-
visit
public R visit(ASTModCovariant node, D data)
- Specified by:
visit
in interfaceScalaParserVisitor<D,R>
-
visit
public R visit(ASTModFinal node, D data)
- Specified by:
visit
in interfaceScalaParserVisitor<D,R>
-
visit
public R visit(ASTModImplicit node, D data)
- Specified by:
visit
in interfaceScalaParserVisitor<D,R>
-
visit
public R visit(ASTModInline node, D data)
- Specified by:
visit
in interfaceScalaParserVisitor<D,R>
-
visit
public R visit(ASTModLazy node, D data)
- Specified by:
visit
in interfaceScalaParserVisitor<D,R>
-
visit
public R visit(ASTModOverride node, D data)
- Specified by:
visit
in interfaceScalaParserVisitor<D,R>
-
visit
public R visit(ASTModPrivate node, D data)
- Specified by:
visit
in interfaceScalaParserVisitor<D,R>
-
visit
public R visit(ASTModProtected node, D data)
- Specified by:
visit
in interfaceScalaParserVisitor<D,R>
-
visit
public R visit(ASTModSealed node, D data)
- Specified by:
visit
in interfaceScalaParserVisitor<D,R>
-
visit
public R visit(ASTModValParam node, D data)
- Specified by:
visit
in interfaceScalaParserVisitor<D,R>
-
visit
public R visit(ASTModVarParam node, D data)
- Specified by:
visit
in interfaceScalaParserVisitor<D,R>
-
visit
public R visit(ASTNameAnonymous node, D data)
- Specified by:
visit
in interfaceScalaParserVisitor<D,R>
-
visit
public R visit(ASTNameIndeterminate node, D data)
- Specified by:
visit
in interfaceScalaParserVisitor<D,R>
-
visit
public R visit(ASTPatAlternative node, D data)
- Specified by:
visit
in interfaceScalaParserVisitor<D,R>
-
visit
public R visit(ASTPatBind node, D data)
- Specified by:
visit
in interfaceScalaParserVisitor<D,R>
-
visit
public R visit(ASTPatExtract node, D data)
- Specified by:
visit
in interfaceScalaParserVisitor<D,R>
-
visit
public R visit(ASTPatExtractInfix node, D data)
- Specified by:
visit
in interfaceScalaParserVisitor<D,R>
-
visit
public R visit(ASTPatInterpolate node, D data)
- Specified by:
visit
in interfaceScalaParserVisitor<D,R>
-
visit
public R visit(ASTPatSeqWildcard node, D data)
- Specified by:
visit
in interfaceScalaParserVisitor<D,R>
-
visit
public R visit(ASTPatTuple node, D data)
- Specified by:
visit
in interfaceScalaParserVisitor<D,R>
-
visit
public R visit(ASTPatTyped node, D data)
- Specified by:
visit
in interfaceScalaParserVisitor<D,R>
-
visit
public R visit(ASTPatVar node, D data)
- Specified by:
visit
in interfaceScalaParserVisitor<D,R>
-
visit
public R visit(ASTPatWildcard node, D data)
- Specified by:
visit
in interfaceScalaParserVisitor<D,R>
-
visit
public R visit(ASTPatXml node, D data)
- Specified by:
visit
in interfaceScalaParserVisitor<D,R>
-
visit
public R visit(ASTPkg node, D data)
- Specified by:
visit
in interfaceScalaParserVisitor<D,R>
-
visit
public R visit(ASTPkgObject node, D data)
- Specified by:
visit
in interfaceScalaParserVisitor<D,R>
-
visit
public R visit(ASTQuasi node, D data)
- Specified by:
visit
in interfaceScalaParserVisitor<D,R>
-
visit
public R visit(ASTSelf node, D data)
- Specified by:
visit
in interfaceScalaParserVisitor<D,R>
-
visit
public R visit(ASTTemplate node, D data)
- Specified by:
visit
in interfaceScalaParserVisitor<D,R>
-
visit
public R visit(ASTTermAnnotate node, D data)
- Specified by:
visit
in interfaceScalaParserVisitor<D,R>
-
visit
public R visit(ASTTermApply node, D data)
- Specified by:
visit
in interfaceScalaParserVisitor<D,R>
-
visit
public R visit(ASTTermApplyInfix node, D data)
- Specified by:
visit
in interfaceScalaParserVisitor<D,R>
-
visit
public R visit(ASTTermApplyType node, D data)
- Specified by:
visit
in interfaceScalaParserVisitor<D,R>
-
visit
public R visit(ASTTermApplyUnary node, D data)
- Specified by:
visit
in interfaceScalaParserVisitor<D,R>
-
visit
public R visit(ASTTermAscribe node, D data)
- Specified by:
visit
in interfaceScalaParserVisitor<D,R>
-
visit
public R visit(ASTTermAssign node, D data)
- Specified by:
visit
in interfaceScalaParserVisitor<D,R>
-
visit
public R visit(ASTTermBlock node, D data)
- Specified by:
visit
in interfaceScalaParserVisitor<D,R>
-
visit
public R visit(ASTTermDo node, D data)
- Specified by:
visit
in interfaceScalaParserVisitor<D,R>
-
visit
public R visit(ASTTermEta node, D data)
- Specified by:
visit
in interfaceScalaParserVisitor<D,R>
-
visit
public R visit(ASTTermFor node, D data)
- Specified by:
visit
in interfaceScalaParserVisitor<D,R>
-
visit
public R visit(ASTTermForYield node, D data)
- Specified by:
visit
in interfaceScalaParserVisitor<D,R>
-
visit
public R visit(ASTTermFunction node, D data)
- Specified by:
visit
in interfaceScalaParserVisitor<D,R>
-
visit
public R visit(ASTTermIf node, D data)
- Specified by:
visit
in interfaceScalaParserVisitor<D,R>
-
visit
public R visit(ASTTermInterpolate node, D data)
- Specified by:
visit
in interfaceScalaParserVisitor<D,R>
-
visit
public R visit(ASTTermMatch node, D data)
- Specified by:
visit
in interfaceScalaParserVisitor<D,R>
-
visit
public R visit(ASTTermName node, D data)
- Specified by:
visit
in interfaceScalaParserVisitor<D,R>
-
visit
public R visit(ASTTermNewAnonymous node, D data)
- Specified by:
visit
in interfaceScalaParserVisitor<D,R>
-
visit
public R visit(ASTTermNew node, D data)
- Specified by:
visit
in interfaceScalaParserVisitor<D,R>
-
visit
public R visit(ASTTermParam node, D data)
- Specified by:
visit
in interfaceScalaParserVisitor<D,R>
-
visit
public R visit(ASTTermPartialFunction node, D data)
- Specified by:
visit
in interfaceScalaParserVisitor<D,R>
-
visit
public R visit(ASTTermPlaceholder node, D data)
- Specified by:
visit
in interfaceScalaParserVisitor<D,R>
-
visit
public R visit(ASTTermRepeated node, D data)
- Specified by:
visit
in interfaceScalaParserVisitor<D,R>
-
visit
public R visit(ASTTermReturn node, D data)
- Specified by:
visit
in interfaceScalaParserVisitor<D,R>
-
visit
public R visit(ASTTermSelect node, D data)
- Specified by:
visit
in interfaceScalaParserVisitor<D,R>
-
visit
public R visit(ASTTermSuper node, D data)
- Specified by:
visit
in interfaceScalaParserVisitor<D,R>
-
visit
public R visit(ASTTermThis node, D data)
- Specified by:
visit
in interfaceScalaParserVisitor<D,R>
-
visit
public R visit(ASTTermThrow node, D data)
- Specified by:
visit
in interfaceScalaParserVisitor<D,R>
-
visit
public R visit(ASTTermTry node, D data)
- Specified by:
visit
in interfaceScalaParserVisitor<D,R>
-
visit
public R visit(ASTTermTryWithHandler node, D data)
- Specified by:
visit
in interfaceScalaParserVisitor<D,R>
-
visit
public R visit(ASTTermTuple node, D data)
- Specified by:
visit
in interfaceScalaParserVisitor<D,R>
-
visit
public R visit(ASTTermWhile node, D data)
- Specified by:
visit
in interfaceScalaParserVisitor<D,R>
-
visit
public R visit(ASTTermXml node, D data)
- Specified by:
visit
in interfaceScalaParserVisitor<D,R>
-
visit
public R visit(ASTTypeAnd node, D data)
- Specified by:
visit
in interfaceScalaParserVisitor<D,R>
-
visit
public R visit(ASTTypeAnnotate node, D data)
- Specified by:
visit
in interfaceScalaParserVisitor<D,R>
-
visit
public R visit(ASTTypeApply node, D data)
- Specified by:
visit
in interfaceScalaParserVisitor<D,R>
-
visit
public R visit(ASTTypeApplyInfix node, D data)
- Specified by:
visit
in interfaceScalaParserVisitor<D,R>
-
visit
public R visit(ASTTypeBounds node, D data)
- Specified by:
visit
in interfaceScalaParserVisitor<D,R>
-
visit
public R visit(ASTTypeByName node, D data)
- Specified by:
visit
in interfaceScalaParserVisitor<D,R>
-
visit
public R visit(ASTTypeExistential node, D data)
- Specified by:
visit
in interfaceScalaParserVisitor<D,R>
-
visit
public R visit(ASTTypeFunction node, D data)
- Specified by:
visit
in interfaceScalaParserVisitor<D,R>
-
visit
public R visit(ASTTypeImplicitFunction node, D data)
- Specified by:
visit
in interfaceScalaParserVisitor<D,R>
-
visit
public R visit(ASTTypeLambda node, D data)
- Specified by:
visit
in interfaceScalaParserVisitor<D,R>
-
visit
public R visit(ASTTypeMethod node, D data)
- Specified by:
visit
in interfaceScalaParserVisitor<D,R>
-
visit
public R visit(ASTTypeName node, D data)
- Specified by:
visit
in interfaceScalaParserVisitor<D,R>
-
visit
public R visit(ASTTypeOr node, D data)
- Specified by:
visit
in interfaceScalaParserVisitor<D,R>
-
visit
public R visit(ASTTypeParam node, D data)
- Specified by:
visit
in interfaceScalaParserVisitor<D,R>
-
visit
public R visit(ASTTypePlaceholder node, D data)
- Specified by:
visit
in interfaceScalaParserVisitor<D,R>
-
visit
public R visit(ASTTypeProject node, D data)
- Specified by:
visit
in interfaceScalaParserVisitor<D,R>
-
visit
public R visit(ASTTypeRefine node, D data)
- Specified by:
visit
in interfaceScalaParserVisitor<D,R>
-
visit
public R visit(ASTTypeRepeated node, D data)
- Specified by:
visit
in interfaceScalaParserVisitor<D,R>
-
visit
public R visit(ASTTypeSelect node, D data)
- Specified by:
visit
in interfaceScalaParserVisitor<D,R>
-
visit
public R visit(ASTTypeSingleton node, D data)
- Specified by:
visit
in interfaceScalaParserVisitor<D,R>
-
visit
public R visit(ASTTypeTuple node, D data)
- Specified by:
visit
in interfaceScalaParserVisitor<D,R>
-
visit
public R visit(ASTTypeVar node, D data)
- Specified by:
visit
in interfaceScalaParserVisitor<D,R>
-
visit
public R visit(ASTTypeWith node, D data)
- Specified by:
visit
in interfaceScalaParserVisitor<D,R>
-
-