Package it.unive.lisa.imp.antlr
Class IMPParser.MethodDeclarationContext
- java.lang.Object
-
- org.antlr.v4.runtime.RuleContext
-
- org.antlr.v4.runtime.ParserRuleContext
-
- it.unive.lisa.imp.antlr.IMPParser.MethodDeclarationContext
-
- 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:
- IMPParser
public static class IMPParser.MethodDeclarationContext extends org.antlr.v4.runtime.ParserRuleContext
-
-
Field Summary
Fields Modifier and Type Field Description IMPParser.BlockContext
code
org.antlr.v4.runtime.Token
name
IMPParser.FormalsContext
pars
-
Constructor Summary
Constructors Constructor Description MethodDeclarationContext(org.antlr.v4.runtime.ParserRuleContext parent, int invokingState)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> T
accept(org.antlr.v4.runtime.tree.ParseTreeVisitor<? extends T> visitor)
IMPParser.AnnotationsContext
annotations()
IMPParser.BlockContext
block()
org.antlr.v4.runtime.tree.TerminalNode
FINAL()
IMPParser.FormalsContext
formals()
int
getRuleIndex()
org.antlr.v4.runtime.tree.TerminalNode
IDENTIFIER()
-
Methods inherited from class org.antlr.v4.runtime.ParserRuleContext
addAnyChild, addChild, addChild, addChild, addErrorNode, addErrorNode, copyFrom, enterRule, exitRule, getChild, getChild, getChildCount, getParent, getRuleContext, getRuleContexts, getSourceInterval, getStart, getStop, getToken, getTokens, removeLastChild, toInfoString
-
-
-
-
Field Detail
-
name
public org.antlr.v4.runtime.Token name
-
pars
public IMPParser.FormalsContext pars
-
code
public IMPParser.BlockContext code
-
-
Method Detail
-
IDENTIFIER
public org.antlr.v4.runtime.tree.TerminalNode IDENTIFIER()
-
formals
public IMPParser.FormalsContext formals()
-
block
public IMPParser.BlockContext block()
-
annotations
public IMPParser.AnnotationsContext annotations()
-
FINAL
public org.antlr.v4.runtime.tree.TerminalNode FINAL()
-
getRuleIndex
public int getRuleIndex()
- Overrides:
getRuleIndex
in classorg.antlr.v4.runtime.RuleContext
-
accept
public <T> T accept(org.antlr.v4.runtime.tree.ParseTreeVisitor<? extends T> visitor)
- Specified by:
accept
in interfaceorg.antlr.v4.runtime.tree.ParseTree
- Overrides:
accept
in classorg.antlr.v4.runtime.RuleContext
-
-