Class CocoParser.FunctionDeclarationContext

java.lang.Object
org.antlr.v4.runtime.RuleContext
org.antlr.v4.runtime.ParserRuleContext
net.sourceforge.pmd.lang.coco.ast.CocoParser.FunctionDeclarationContext
All Implemented Interfaces:
org.antlr.v4.runtime.tree.ParseTree, org.antlr.v4.runtime.tree.RuleNode, org.antlr.v4.runtime.tree.SyntaxTree, org.antlr.v4.runtime.tree.Tree
Enclosing class:
CocoParser

@Generated("org.antlr.v4.Tool") public static class CocoParser.FunctionDeclarationContext extends org.antlr.v4.runtime.ParserRuleContext
  • Field Summary

    Fields inherited from class org.antlr.v4.runtime.ParserRuleContext

    children, exception, start, stop

    Fields inherited from class org.antlr.v4.runtime.RuleContext

    EMPTY, invokingState, parent
  • Constructor Summary

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

    Modifier and Type
    Method
    Description
    <T> T
    accept(org.antlr.v4.runtime.tree.ParseTreeVisitor<? extends T> visitor)
     
    org.antlr.v4.runtime.tree.TerminalNode
     
    org.antlr.v4.runtime.tree.TerminalNode
     
    void
    enterRule(org.antlr.v4.runtime.tree.ParseTreeListener listener)
     
    void
    exitRule(org.antlr.v4.runtime.tree.ParseTreeListener listener)
     
     
    org.antlr.v4.runtime.tree.TerminalNode
     
     
    int
     
    org.antlr.v4.runtime.tree.TerminalNode
     
    org.antlr.v4.runtime.tree.TerminalNode
    LP()
     
     
    org.antlr.v4.runtime.tree.TerminalNode
    RP()
     
     

    Methods inherited from class org.antlr.v4.runtime.ParserRuleContext

    addAnyChild, addChild, addChild, addChild, addErrorNode, addErrorNode, copyFrom, getChild, getChild, getChildCount, getParent, getRuleContext, getRuleContexts, getSourceInterval, getStart, getStop, getToken, getTokens, removeLastChild, toInfoString

    Methods inherited from class org.antlr.v4.runtime.RuleContext

    depth, getAltNumber, getPayload, getRuleContext, getText, isEmpty, setAltNumber, setParent, toString, toString, toString, toString, toString, toStringTree, toStringTree, toStringTree

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • FunctionDeclarationContext

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

    • FUNCTION

      public org.antlr.v4.runtime.tree.TerminalNode FUNCTION()
    • IDENTIFIER

      public org.antlr.v4.runtime.tree.TerminalNode IDENTIFIER()
    • LP

      public org.antlr.v4.runtime.tree.TerminalNode LP()
    • RP

      public org.antlr.v4.runtime.tree.TerminalNode RP()
    • COLON

      public org.antlr.v4.runtime.tree.TerminalNode COLON()
    • type

      public CocoParser.TypeContext type()
    • ASSIGN

      public org.antlr.v4.runtime.tree.TerminalNode ASSIGN()
    • expression

      public CocoParser.ExpressionContext expression()
    • genericTypeDeclaration

      public CocoParser.GenericTypeDeclarationContext genericTypeDeclaration()
    • parameters

      public CocoParser.ParametersContext parameters()
    • getRuleIndex

      public int getRuleIndex()
      Overrides:
      getRuleIndex in class org.antlr.v4.runtime.RuleContext
    • enterRule

      public void enterRule(org.antlr.v4.runtime.tree.ParseTreeListener listener)
      Overrides:
      enterRule in class org.antlr.v4.runtime.ParserRuleContext
    • exitRule

      public void exitRule(org.antlr.v4.runtime.tree.ParseTreeListener listener)
      Overrides:
      exitRule in class org.antlr.v4.runtime.ParserRuleContext
    • accept

      public <T> T accept(org.antlr.v4.runtime.tree.ParseTreeVisitor<? extends T> visitor)
      Specified by:
      accept in interface org.antlr.v4.runtime.tree.ParseTree
      Overrides:
      accept in class org.antlr.v4.runtime.RuleContext