Interface ScalaNode<T extends scala.meta.Tree>
-
- Type Parameters:
T
- The Scala node type that extends Scala's Tree trait
- All Superinterfaces:
net.sourceforge.pmd.lang.ast.impl.GenericNode<ScalaNode<?>>
,net.sourceforge.pmd.lang.ast.Node
,net.sourceforge.pmd.reporting.Reportable
- All Known Implementing Classes:
ASTCase
,ASTCtorPrimary
,ASTCtorSecondary
,ASTDeclDef
,ASTDeclType
,ASTDeclVal
,ASTDeclVar
,ASTDefnClass
,ASTDefnDef
,ASTDefnMacro
,ASTDefnObject
,ASTDefnTrait
,ASTDefnType
,ASTDefnVal
,ASTDefnVar
,ASTEnumeratorGenerator
,ASTEnumeratorGuard
,ASTEnumeratorVal
,ASTImport
,ASTImporteeName
,ASTImporteeRename
,ASTImporteeUnimport
,ASTImporteeWildcard
,ASTImporter
,ASTInit
,ASTLitBoolean
,ASTLitByte
,ASTLitChar
,ASTLitDouble
,ASTLitFloat
,ASTLitInt
,ASTLitLong
,ASTLitNull
,ASTLitShort
,ASTLitString
,ASTLitSymbol
,ASTLitUnit
,ASTMemberParamClauseGroup
,ASTModAbstract
,ASTModAnnot
,ASTModCase
,ASTModContravariant
,ASTModCovariant
,ASTModFinal
,ASTModImplicit
,ASTModInline
,ASTModLazy
,ASTModOverride
,ASTModPrivate
,ASTModProtected
,ASTModSealed
,ASTModValParam
,ASTModVarParam
,ASTNameAnonymous
,ASTNameIndeterminate
,ASTPatAlternative
,ASTPatArgClause
,ASTPatBind
,ASTPatExtract
,ASTPatExtractInfix
,ASTPatInterpolate
,ASTPatSeqWildcard
,ASTPatTuple
,ASTPatTyped
,ASTPatVar
,ASTPatWildcard
,ASTPatXml
,ASTPkg
,ASTPkgObject
,ASTQuasi
,ASTSelf
,ASTSource
,ASTTemplate
,ASTTermAnnotate
,ASTTermApply
,ASTTermApplyInfix
,ASTTermApplyType
,ASTTermApplyUnary
,ASTTermArgClause
,ASTTermAscribe
,ASTTermAssign
,ASTTermBlock
,ASTTermDo
,ASTTermEta
,ASTTermFor
,ASTTermForYield
,ASTTermFunction
,ASTTermIf
,ASTTermInterpolate
,ASTTermMatch
,ASTTermName
,ASTTermNew
,ASTTermNewAnonymous
,ASTTermParam
,ASTTermParamClause
,ASTTermPartialFunction
,ASTTermPlaceholder
,ASTTermRepeated
,ASTTermReturn
,ASTTermSelect
,ASTTermSuper
,ASTTermThis
,ASTTermThrow
,ASTTermTry
,ASTTermTryWithHandler
,ASTTermTuple
,ASTTermWhile
,ASTTermXml
,ASTTypeAnd
,ASTTypeAnnotate
,ASTTypeApply
,ASTTypeApplyInfix
,ASTTypeArgClause
,ASTTypeBounds
,ASTTypeByName
,ASTTypeExistential
,ASTTypeFuncParamClause
,ASTTypeFunction
,ASTTypeImplicitFunction
,ASTTypeLambda
,ASTTypeMethod
,ASTTypeName
,ASTTypeOr
,ASTTypeParam
,ASTTypeParamClause
,ASTTypePlaceholder
,ASTTypeProject
,ASTTypeRefine
,ASTTypeRepeated
,ASTTypeSelect
,ASTTypeSingleton
,ASTTypeTuple
,ASTTypeVar
,ASTTypeWith
public interface ScalaNode<T extends scala.meta.Tree> extends net.sourceforge.pmd.lang.ast.impl.GenericNode<ScalaNode<?>>
A Base interface of a Scala Node. Defines several required methods of all nodes.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
isImplicit()
Returns true if the node is implicit.-
Methods inherited from interface net.sourceforge.pmd.lang.ast.impl.GenericNode
ancestors, ancestorsOrSelf, asStream, children, descendants, descendantsOrSelf, getChild, getFirstChild, getLastChild, getNextSibling, getParent, getPreviousSibling
-
Methods inherited from interface net.sourceforge.pmd.lang.ast.Node
acceptVisitor, ancestors, children, compareLocation, descendants, firstChild, getAstInfo, getBeginColumn, getBeginLine, getEndColumn, getEndLine, getImage, getIndexInParent, getLanguageVersion, getNumChildren, getReportLocation, getRoot, getTextDocument, getTextRegion, getUserMap, getXPathAttributesIterator, getXPathNodeName, hasImageEqualTo, isFindBoundary
-
-
-
-
Method Detail
-
isImplicit
boolean isImplicit()
Returns true if the node is implicit. If this node has no non-implicit descendant, then its text bounds identify an empty region of the source document. In that case, the end column is smaller than the begin column. That's because the end column index is inclusive.
-
-