Interface ScalaVisitor<D,R>
-
- Type Parameters:
D
- The type of the data input to each visit methodR
- the type of the returned data from each visit method
- All Superinterfaces:
AstVisitor<D,R>
- All Known Implementing Classes:
ScalaRule
,ScalaVisitorBase
public interface ScalaVisitor<D,R> extends AstVisitor<D,R>
A Visitor Pattern Interface for the Scala AST.
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default R
visit(ASTCase node, D data)
default R
visit(ASTCtorPrimary node, D data)
default R
visit(ASTCtorSecondary node, D data)
default R
visit(ASTDeclDef node, D data)
default R
visit(ASTDeclType node, D data)
default R
visit(ASTDeclVal node, D data)
default R
visit(ASTDeclVar node, D data)
default R
visit(ASTDefnClass node, D data)
default R
visit(ASTDefnDef node, D data)
default R
visit(ASTDefnMacro node, D data)
default R
visit(ASTDefnObject node, D data)
default R
visit(ASTDefnTrait node, D data)
default R
visit(ASTDefnType node, D data)
default R
visit(ASTDefnVal node, D data)
default R
visit(ASTDefnVar node, D data)
default R
visit(ASTEnumeratorGenerator node, D data)
default R
visit(ASTEnumeratorGuard node, D data)
default R
visit(ASTEnumeratorVal node, D data)
default R
visit(ASTImporteeName node, D data)
default R
visit(ASTImporteeRename node, D data)
default R
visit(ASTImporteeUnimport node, D data)
default R
visit(ASTImporteeWildcard node, D data)
default R
visit(ASTImporter node, D data)
default R
visit(ASTImport node, D data)
default R
visit(ASTInit node, D data)
default R
visit(ASTLitBoolean node, D data)
default R
visit(ASTLitByte node, D data)
default R
visit(ASTLitChar node, D data)
default R
visit(ASTLitDouble node, D data)
default R
visit(ASTLitFloat node, D data)
default R
visit(ASTLitInt node, D data)
default R
visit(ASTLitLong node, D data)
default R
visit(ASTLitNull node, D data)
default R
visit(ASTLitShort node, D data)
default R
visit(ASTLitString node, D data)
default R
visit(ASTLitSymbol node, D data)
default R
visit(ASTLitUnit node, D data)
default R
visit(ASTModAbstract node, D data)
default R
visit(ASTModAnnot node, D data)
default R
visit(ASTModCase node, D data)
default R
visit(ASTModContravariant node, D data)
default R
visit(ASTModCovariant node, D data)
default R
visit(ASTModFinal node, D data)
default R
visit(ASTModImplicit node, D data)
default R
visit(ASTModInline node, D data)
default R
visit(ASTModLazy node, D data)
default R
visit(ASTModOverride node, D data)
default R
visit(ASTModPrivate node, D data)
default R
visit(ASTModProtected node, D data)
default R
visit(ASTModSealed node, D data)
default R
visit(ASTModValParam node, D data)
default R
visit(ASTModVarParam node, D data)
default R
visit(ASTNameAnonymous node, D data)
default R
visit(ASTNameIndeterminate node, D data)
default R
visit(ASTPatAlternative node, D data)
default R
visit(ASTPatBind node, D data)
default R
visit(ASTPatExtractInfix node, D data)
default R
visit(ASTPatExtract node, D data)
default R
visit(ASTPatInterpolate node, D data)
default R
visit(ASTPatSeqWildcard node, D data)
default R
visit(ASTPatTuple node, D data)
default R
visit(ASTPatTyped node, D data)
default R
visit(ASTPatVar node, D data)
default R
visit(ASTPatWildcard node, D data)
default R
visit(ASTPatXml node, D data)
default R
visit(ASTPkgObject node, D data)
default R
visit(ASTPkg node, D data)
default R
visit(ASTQuasi node, D data)
default R
visit(ASTSelf node, D data)
default R
visit(ASTSource node, D data)
Visit the Source Node (the root node of the tree).default R
visit(ASTTemplate node, D data)
default R
visit(ASTTermAnnotate node, D data)
default R
visit(ASTTermApplyInfix node, D data)
default R
visit(ASTTermApply node, D data)
default R
visit(ASTTermApplyType node, D data)
default R
visit(ASTTermApplyUnary node, D data)
default R
visit(ASTTermAscribe node, D data)
default R
visit(ASTTermAssign node, D data)
default R
visit(ASTTermBlock node, D data)
default R
visit(ASTTermDo node, D data)
default R
visit(ASTTermEta node, D data)
default R
visit(ASTTermFor node, D data)
default R
visit(ASTTermForYield node, D data)
default R
visit(ASTTermFunction node, D data)
default R
visit(ASTTermIf node, D data)
default R
visit(ASTTermInterpolate node, D data)
default R
visit(ASTTermMatch node, D data)
default R
visit(ASTTermName node, D data)
default R
visit(ASTTermNewAnonymous node, D data)
default R
visit(ASTTermNew node, D data)
default R
visit(ASTTermParam node, D data)
default R
visit(ASTTermPartialFunction node, D data)
default R
visit(ASTTermPlaceholder node, D data)
default R
visit(ASTTermRepeated node, D data)
default R
visit(ASTTermReturn node, D data)
default R
visit(ASTTermSelect node, D data)
default R
visit(ASTTermSuper node, D data)
default R
visit(ASTTermThis node, D data)
default R
visit(ASTTermThrow node, D data)
default R
visit(ASTTermTry node, D data)
default R
visit(ASTTermTryWithHandler node, D data)
default R
visit(ASTTermTuple node, D data)
default R
visit(ASTTermWhile node, D data)
default R
visit(ASTTermXml node, D data)
default R
visit(ASTTypeAnd node, D data)
default R
visit(ASTTypeAnnotate node, D data)
default R
visit(ASTTypeApplyInfix node, D data)
default R
visit(ASTTypeApply node, D data)
default R
visit(ASTTypeBounds node, D data)
default R
visit(ASTTypeByName node, D data)
default R
visit(ASTTypeExistential node, D data)
default R
visit(ASTTypeFunction node, D data)
default R
visit(ASTTypeImplicitFunction node, D data)
default R
visit(ASTTypeLambda node, D data)
default R
visit(ASTTypeMethod node, D data)
default R
visit(ASTTypeName node, D data)
default R
visit(ASTTypeOr node, D data)
default R
visit(ASTTypeParam node, D data)
default R
visit(ASTTypePlaceholder node, D data)
default R
visit(ASTTypeProject node, D data)
default R
visit(ASTTypeRefine node, D data)
default R
visit(ASTTypeRepeated node, D data)
default R
visit(ASTTypeSelect node, D data)
default R
visit(ASTTypeSingleton node, D data)
default R
visit(ASTTypeTuple node, D data)
default R
visit(ASTTypeVar node, D data)
default R
visit(ASTTypeWith node, D data)
default R
visit(ScalaNode<?> node, D data)
Visit an arbitrary Scala Node (any node in the tree).-
Methods inherited from interface net.sourceforge.pmd.lang.ast.AstVisitor
cannotVisit, visitNode
-
-
-
-
Method Detail
-
visit
default R visit(ScalaNode<?> node, D data)
Visit an arbitrary Scala Node (any node in the tree).- Parameters:
node
- the node of the treedata
- context-specific data- Returns:
- context-specific data
-
visit
default R visit(ASTSource node, D data)
Visit the Source Node (the root node of the tree).- Parameters:
node
- the root node of the treedata
- context-specific data- Returns:
- context-specific data
-
visit
default R visit(ASTCtorPrimary node, D data)
-
visit
default R visit(ASTCtorSecondary node, D data)
-
visit
default R visit(ASTDeclDef node, D data)
-
visit
default R visit(ASTDeclType node, D data)
-
visit
default R visit(ASTDeclVal node, D data)
-
visit
default R visit(ASTDeclVar node, D data)
-
visit
default R visit(ASTDefnClass node, D data)
-
visit
default R visit(ASTDefnDef node, D data)
-
visit
default R visit(ASTDefnMacro node, D data)
-
visit
default R visit(ASTDefnObject node, D data)
-
visit
default R visit(ASTDefnTrait node, D data)
-
visit
default R visit(ASTDefnType node, D data)
-
visit
default R visit(ASTDefnVal node, D data)
-
visit
default R visit(ASTDefnVar node, D data)
-
visit
default R visit(ASTEnumeratorGenerator node, D data)
-
visit
default R visit(ASTEnumeratorGuard node, D data)
-
visit
default R visit(ASTEnumeratorVal node, D data)
-
visit
default R visit(ASTImporteeName node, D data)
-
visit
default R visit(ASTImporteeRename node, D data)
-
visit
default R visit(ASTImporteeUnimport node, D data)
-
visit
default R visit(ASTImporteeWildcard node, D data)
-
visit
default R visit(ASTImporter node, D data)
-
visit
default R visit(ASTLitBoolean node, D data)
-
visit
default R visit(ASTLitByte node, D data)
-
visit
default R visit(ASTLitChar node, D data)
-
visit
default R visit(ASTLitDouble node, D data)
-
visit
default R visit(ASTLitFloat node, D data)
-
visit
default R visit(ASTLitLong node, D data)
-
visit
default R visit(ASTLitNull node, D data)
-
visit
default R visit(ASTLitShort node, D data)
-
visit
default R visit(ASTLitString node, D data)
-
visit
default R visit(ASTLitSymbol node, D data)
-
visit
default R visit(ASTLitUnit node, D data)
-
visit
default R visit(ASTModAbstract node, D data)
-
visit
default R visit(ASTModAnnot node, D data)
-
visit
default R visit(ASTModCase node, D data)
-
visit
default R visit(ASTModContravariant node, D data)
-
visit
default R visit(ASTModCovariant node, D data)
-
visit
default R visit(ASTModFinal node, D data)
-
visit
default R visit(ASTModImplicit node, D data)
-
visit
default R visit(ASTModInline node, D data)
-
visit
default R visit(ASTModLazy node, D data)
-
visit
default R visit(ASTModOverride node, D data)
-
visit
default R visit(ASTModPrivate node, D data)
-
visit
default R visit(ASTModProtected node, D data)
-
visit
default R visit(ASTModSealed node, D data)
-
visit
default R visit(ASTModValParam node, D data)
-
visit
default R visit(ASTModVarParam node, D data)
-
visit
default R visit(ASTNameAnonymous node, D data)
-
visit
default R visit(ASTNameIndeterminate node, D data)
-
visit
default R visit(ASTPatAlternative node, D data)
-
visit
default R visit(ASTPatBind node, D data)
-
visit
default R visit(ASTPatExtract node, D data)
-
visit
default R visit(ASTPatExtractInfix node, D data)
-
visit
default R visit(ASTPatInterpolate node, D data)
-
visit
default R visit(ASTPatSeqWildcard node, D data)
-
visit
default R visit(ASTPatTuple node, D data)
-
visit
default R visit(ASTPatTyped node, D data)
-
visit
default R visit(ASTPatWildcard node, D data)
-
visit
default R visit(ASTPkgObject node, D data)
-
visit
default R visit(ASTTemplate node, D data)
-
visit
default R visit(ASTTermAnnotate node, D data)
-
visit
default R visit(ASTTermApply node, D data)
-
visit
default R visit(ASTTermApplyInfix node, D data)
-
visit
default R visit(ASTTermApplyType node, D data)
-
visit
default R visit(ASTTermApplyUnary node, D data)
-
visit
default R visit(ASTTermAscribe node, D data)
-
visit
default R visit(ASTTermAssign node, D data)
-
visit
default R visit(ASTTermBlock node, D data)
-
visit
default R visit(ASTTermEta node, D data)
-
visit
default R visit(ASTTermFor node, D data)
-
visit
default R visit(ASTTermForYield node, D data)
-
visit
default R visit(ASTTermFunction node, D data)
-
visit
default R visit(ASTTermInterpolate node, D data)
-
visit
default R visit(ASTTermMatch node, D data)
-
visit
default R visit(ASTTermName node, D data)
-
visit
default R visit(ASTTermNewAnonymous node, D data)
-
visit
default R visit(ASTTermNew node, D data)
-
visit
default R visit(ASTTermParam node, D data)
-
visit
default R visit(ASTTermPartialFunction node, D data)
-
visit
default R visit(ASTTermPlaceholder node, D data)
-
visit
default R visit(ASTTermRepeated node, D data)
-
visit
default R visit(ASTTermReturn node, D data)
-
visit
default R visit(ASTTermSelect node, D data)
-
visit
default R visit(ASTTermSuper node, D data)
-
visit
default R visit(ASTTermThis node, D data)
-
visit
default R visit(ASTTermThrow node, D data)
-
visit
default R visit(ASTTermTry node, D data)
-
visit
default R visit(ASTTermTryWithHandler node, D data)
-
visit
default R visit(ASTTermTuple node, D data)
-
visit
default R visit(ASTTermWhile node, D data)
-
visit
default R visit(ASTTermXml node, D data)
-
visit
default R visit(ASTTypeAnd node, D data)
-
visit
default R visit(ASTTypeAnnotate node, D data)
-
visit
default R visit(ASTTypeApply node, D data)
-
visit
default R visit(ASTTypeApplyInfix node, D data)
-
visit
default R visit(ASTTypeBounds node, D data)
-
visit
default R visit(ASTTypeByName node, D data)
-
visit
default R visit(ASTTypeExistential node, D data)
-
visit
default R visit(ASTTypeFunction node, D data)
-
visit
default R visit(ASTTypeImplicitFunction node, D data)
-
visit
default R visit(ASTTypeLambda node, D data)
-
visit
default R visit(ASTTypeMethod node, D data)
-
visit
default R visit(ASTTypeName node, D data)
-
visit
default R visit(ASTTypeParam node, D data)
-
visit
default R visit(ASTTypePlaceholder node, D data)
-
visit
default R visit(ASTTypeProject node, D data)
-
visit
default R visit(ASTTypeRefine node, D data)
-
visit
default R visit(ASTTypeRepeated node, D data)
-
visit
default R visit(ASTTypeSelect node, D data)
-
visit
default R visit(ASTTypeSingleton node, D data)
-
visit
default R visit(ASTTypeTuple node, D data)
-
visit
default R visit(ASTTypeVar node, D data)
-
visit
default R visit(ASTTypeWith node, D data)
-
-