Class KotlinParser.KtScript

java.lang.Object
net.sourceforge.pmd.lang.ast.impl.antlr4.BaseAntlrNode<net.sourceforge.pmd.lang.ast.impl.antlr4.BaseAntlrInnerNode.PmdAsAntlrInnerNode<KotlinNode>,KotlinNode>
net.sourceforge.pmd.lang.ast.impl.antlr4.BaseAntlrInnerNode<KotlinNode>
net.sourceforge.pmd.lang.kotlin.ast.KotlinParser.KtScript
All Implemented Interfaces:
net.sourceforge.pmd.lang.ast.impl.antlr4.AntlrNode<KotlinNode>, net.sourceforge.pmd.lang.ast.impl.GenericNode<KotlinNode>, net.sourceforge.pmd.lang.ast.Node, KotlinNode, net.sourceforge.pmd.reporting.Reportable
Enclosing class:
KotlinParser

@Generated("org.antlr.v4.Tool") public static class KotlinParser.KtScript extends net.sourceforge.pmd.lang.ast.impl.antlr4.BaseAntlrInnerNode<KotlinNode>
  • Nested Class Summary

    Nested classes/interfaces inherited from class net.sourceforge.pmd.lang.ast.impl.antlr4.BaseAntlrInnerNode

    net.sourceforge.pmd.lang.ast.impl.antlr4.BaseAntlrInnerNode.PmdAsAntlrInnerNode<N extends net.sourceforge.pmd.lang.ast.impl.antlr4.AntlrNode<N>>

    Nested classes/interfaces inherited from class net.sourceforge.pmd.lang.ast.impl.antlr4.BaseAntlrNode

    net.sourceforge.pmd.lang.ast.impl.antlr4.BaseAntlrNode.AntlrToPmdParseTreeAdapter<N extends net.sourceforge.pmd.lang.ast.impl.antlr4.AntlrNode<N>>
  • Field Summary

    Fields inherited from class net.sourceforge.pmd.lang.ast.impl.antlr4.BaseAntlrInnerNode

    exception

    Fields inherited from interface net.sourceforge.pmd.lang.ast.Node

    COORDS_COMPARATOR
  • Constructor Summary

    Constructors
    Constructor
    Description
    KtScript(org.antlr.v4.runtime.ParserRuleContext parent, int invokingState)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    <P, R> R
    acceptVisitor(net.sourceforge.pmd.lang.ast.AstVisitor<? super P,? extends R> visitor, P data)
     
    protected net.sourceforge.pmd.lang.ast.impl.antlr4.BaseAntlrInnerNode.PmdAsAntlrInnerNode<KotlinNode>
     
    void
    enterRule(org.antlr.v4.runtime.tree.ParseTreeListener listener)
     
    org.antlr.v4.runtime.tree.TerminalNode
    EOF()
     
    void
    exitRule(org.antlr.v4.runtime.tree.ParseTreeListener listener)
     
     
     
    int
     
     
     
    List<org.antlr.v4.runtime.tree.TerminalNode>
    NL()
     
    org.antlr.v4.runtime.tree.TerminalNode
    NL(int i)
     
     
     
    semi(int i)
     
     
     
    statement(int i)
     

    Methods inherited from class net.sourceforge.pmd.lang.ast.impl.antlr4.BaseAntlrInnerNode

    copyFrom, getChild, getFirstAntlrToken, getLastAntlrToken, getNumChildren, getRuleContext, getRuleContexts, getToken, getTokens

    Methods inherited from class net.sourceforge.pmd.lang.ast.impl.antlr4.BaseAntlrNode

    getBeginColumn, getBeginLine, getEndColumn, getEndLine, getIndexInParent, getParent, getTextRegion, getUserMap

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    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

    ancestors, children, compareLocation, descendants, firstChild, getAstInfo, getBeginColumn, getBeginLine, getEndColumn, getEndLine, getImage, getIndexInParent, getLanguageVersion, getNumChildren, getReportLocation, getRoot, getTextDocument, getTextRegion, getUserMap, getXPathAttributesIterator, hasImageEqualTo, isFindBoundary
  • Constructor Details

    • KtScript

      public KtScript(org.antlr.v4.runtime.ParserRuleContext parent, int invokingState)
  • Method Details

    • packageHeader

      public KotlinParser.KtPackageHeader packageHeader()
    • importList

      public KotlinParser.KtImportList importList()
    • EOF

      public org.antlr.v4.runtime.tree.TerminalNode EOF()
    • shebangLine

      public KotlinParser.KtShebangLine shebangLine()
    • NL

      public List<org.antlr.v4.runtime.tree.TerminalNode> NL()
    • NL

      public org.antlr.v4.runtime.tree.TerminalNode NL(int i)
    • fileAnnotation

      public List<KotlinParser.KtFileAnnotation> fileAnnotation()
    • fileAnnotation

      public KotlinParser.KtFileAnnotation fileAnnotation(int i)
    • statement

      public List<KotlinParser.KtStatement> statement()
    • statement

      public KotlinParser.KtStatement statement(int i)
    • semi

      public List<KotlinParser.KtSemi> semi()
    • semi

      public KotlinParser.KtSemi semi(int i)
    • getRuleIndex

      public int getRuleIndex()
      Specified by:
      getRuleIndex in class net.sourceforge.pmd.lang.ast.impl.antlr4.BaseAntlrInnerNode<KotlinNode>
    • enterRule

      public void enterRule(org.antlr.v4.runtime.tree.ParseTreeListener listener)
      Overrides:
      enterRule in class net.sourceforge.pmd.lang.ast.impl.antlr4.BaseAntlrInnerNode<KotlinNode>
    • exitRule

      public void exitRule(org.antlr.v4.runtime.tree.ParseTreeListener listener)
      Overrides:
      exitRule in class net.sourceforge.pmd.lang.ast.impl.antlr4.BaseAntlrInnerNode<KotlinNode>
    • acceptVisitor

      public <P, R> R acceptVisitor(net.sourceforge.pmd.lang.ast.AstVisitor<? super P,? extends R> visitor, P data)
      Specified by:
      acceptVisitor in interface net.sourceforge.pmd.lang.ast.Node
    • asAntlrNode

      protected net.sourceforge.pmd.lang.ast.impl.antlr4.BaseAntlrInnerNode.PmdAsAntlrInnerNode<KotlinNode> asAntlrNode()
      Overrides:
      asAntlrNode in class net.sourceforge.pmd.lang.ast.impl.antlr4.BaseAntlrInnerNode<KotlinNode>
    • getXPathNodeName

      public String getXPathNodeName()
      Specified by:
      getXPathNodeName in interface net.sourceforge.pmd.lang.ast.Node