Class Macro.ReplacementUnit

java.lang.Object
edu.udel.cis.vsl.abc.token.IF.Macro.ReplacementUnit
Direct Known Subclasses:
FunctionMacro.FunctionReplacementUnit
Enclosing interface:
Macro

public static class Macro.ReplacementUnit extends Object
The body of a Macro definition consists of a sequence of Macro.ReplacementUnits, each of which comprises a preprocessing token (a non-whitespace token known as the "replacement token" in C11) plus some possible whitespace.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    int
    Index of this replacement token in the sequence of replacement tokens that constitute the macro definition body, numbered from 0.
    org.antlr.runtime.Token
    The preprocessing (non-whitespace) replacement token itself.
    org.antlr.runtime.Token[]
    Possible 0 or more whitespace tokens following this replacement token.
  • Constructor Summary

    Constructors
    Constructor
    Description
    ReplacementUnit(int index, org.antlr.runtime.Token token, org.antlr.runtime.Token[] whitespace)
     
  • Method Summary

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • index

      public int index
      Index of this replacement token in the sequence of replacement tokens that constitute the macro definition body, numbered from 0.
    • token

      public org.antlr.runtime.Token token
      The preprocessing (non-whitespace) replacement token itself.
    • whitespace

      public org.antlr.runtime.Token[] whitespace
      Possible 0 or more whitespace tokens following this replacement token.
  • Constructor Details

    • ReplacementUnit

      public ReplacementUnit(int index, org.antlr.runtime.Token token, org.antlr.runtime.Token[] whitespace)