Class Lookahead


  • public class Lookahead
    extends Expansion_
    Describes lookahead rule for a particular expansion or expansion sequence (See Sequence.java). In case this describes the lookahead rule for a single expansion unit, then a sequence is created with this node as the first element, and the expansion unit as the second and last element.
    • Constructor Detail

      • Lookahead

        public Lookahead()
        Standard constructor
    • Method Detail

      • dump

        public java.lang.StringBuilder dump​(int indent,
                                            java.util.Set<java.lang.Object> alreadyDumped)
        Overrides:
        dump in class Expansion_
        Parameters:
        indent - - the number of spaces for indenting
        alreadyDumped - - a Set of objects already dumped (unused)
        Returns:
        the formatted string dumping the class
      • getActionTokens

        public final java.util.List<Token> getActionTokens()
        Returns:
        the action_tokens
      • setAmount

        public final void setAmount​(int am)
        Parameters:
        am - - the amount to set
      • getAmount

        public final int getAmount()
        Returns:
        the amount
      • setLaExpansion

        public final void setLaExpansion​(Expansion_ laexp)
        Parameters:
        laexp - - the la_expansion to set
      • getLaExpansion

        public final Expansion_ getLaExpansion()
        Returns:
        the la_expansion
      • setExplicit

        public final void setExplicit​(boolean ise)
        Parameters:
        ise - - the isExplicit to set
      • isExplicit

        public final boolean isExplicit()
        Returns:
        the isExplicit