public static class JavaParser.CompilationUnitContext
extends org.antlr.v4.runtime.ParserRuleContext
Constructor and Description |
---|
CompilationUnitContext(org.antlr.v4.runtime.ParserRuleContext parent,
int invokingState) |
Modifier and Type | Method and Description |
---|---|
<T> T |
accept(org.antlr.v4.runtime.tree.ParseTreeVisitor<? extends T> visitor) |
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 |
getRuleIndex() |
List<JavaParser.ImportDeclarationContext> |
importDeclaration() |
JavaParser.ImportDeclarationContext |
importDeclaration(int i) |
JavaParser.PackageDeclarationContext |
packageDeclaration() |
List<JavaParser.TypeDeclarationContext> |
typeDeclaration() |
JavaParser.TypeDeclarationContext |
typeDeclaration(int i) |
addAnyChild, addChild, addChild, addChild, addErrorNode, addErrorNode, copyFrom, getChild, getChild, getChildCount, getParent, getRuleContext, getRuleContexts, getSourceInterval, getStart, getStop, getToken, getTokens, removeLastChild, toInfoString
public CompilationUnitContext(org.antlr.v4.runtime.ParserRuleContext parent, int invokingState)
public org.antlr.v4.runtime.tree.TerminalNode EOF()
public JavaParser.PackageDeclarationContext packageDeclaration()
public List<JavaParser.ImportDeclarationContext> importDeclaration()
public JavaParser.ImportDeclarationContext importDeclaration(int i)
public List<JavaParser.TypeDeclarationContext> typeDeclaration()
public JavaParser.TypeDeclarationContext typeDeclaration(int i)
public int getRuleIndex()
getRuleIndex
in class org.antlr.v4.runtime.RuleContext
public void enterRule(org.antlr.v4.runtime.tree.ParseTreeListener listener)
enterRule
in class org.antlr.v4.runtime.ParserRuleContext
public void exitRule(org.antlr.v4.runtime.tree.ParseTreeListener listener)
exitRule
in class org.antlr.v4.runtime.ParserRuleContext
public <T> T accept(org.antlr.v4.runtime.tree.ParseTreeVisitor<? extends T> visitor)
accept
in interface org.antlr.v4.runtime.tree.ParseTree
accept
in class org.antlr.v4.runtime.RuleContext
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.