All Downloads are FREE. Search and download functionalities are using the official Maven repository.

Java.target.apidocs.org.antlr.v4.runtime.RuleDependency.html Maven / Gradle / Ivy

There is a newer version: 4.9.0
Show newest version






RuleDependency (ANTLR 4 Runtime (Optimized) 4.7.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
    • 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

      • rule

        public abstract int rule
      • version

        public abstract int version
      • 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–2019 Tunnel Vision Laboratories, LLC. All rights reserved.





© 2015 - 2024 Weber Informatics LLC | Privacy Policy