
Java.target.apidocs.org.antlr.v4.runtime.RuleDependency.html Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of antlr4-perf-testsuite Show documentation
Show all versions of antlr4-perf-testsuite Show documentation
The ANTLR 4 grammar compiler.
RuleDependency (ANTLR 4 Runtime (Optimized) 4.13.1.3 API)
org.antlr.v4.runtime
Annotation Type RuleDependency
-
@Retention(value=RUNTIME)
@Target(value={TYPE,CONSTRUCTOR,METHOD,FIELD})
public @interface RuleDependency
Declares a dependency upon a grammar rule, along with a set of zero or more
dependent rules.
Version numbers within a grammar should be assigned on a monotonically
increasing basis to allow for accurate tracking of dependent rules.
- Author:
- Sam Harwell
-
-
Required Element Summary
Required Elements
Modifier and Type
Required Element and Description
Class<? extends Recognizer<?,?>>
recognizer
int
rule
int
version
-
Optional Element Summary
Optional Elements
Modifier and Type
Optional Element and Description
Dependents[]
dependents
Specifies the set of grammar rules related to rule()
which the
annotated element depends on.
-
-
Element Detail
-
recognizer
public abstract Class<? extends Recognizer<?,?>> recognizer
-
-
dependents
public abstract Dependents[] dependents
Specifies the set of grammar rules related to rule()
which the
annotated element depends on. Even when absent from this set, the
annotated element is implicitly dependent upon the explicitly specified
rule()
, which corresponds to the Dependents.SELF
element.
By default, the annotated element is dependent upon the specified
rule()
and its Dependents.PARENTS
, i.e. the rule within
one level of context information. The parents are included since the most
frequent assumption about a rule is where it's used in the grammar.
- Default:
- {org.antlr.v4.runtime.Dependents.SELF, org.antlr.v4.runtime.Dependents.PARENTS}
Copyright © 1992–2023 Daniel Sun. All rights reserved.
© 2015 - 2025 Weber Informatics LLC | Privacy Policy