Class SrcOp

Direct Known Subclasses:
AddToLabelList, CaptureNextToken, CaptureNextTokenType, CodeBlock, Decl, ExceptionClause, RuleElement, Sync, TestSetInline, ThrowRecognitionException

public abstract class SrcOp extends OutputModelObject
  • Field Details

    • uniqueID

      public int uniqueID
      Used to create unique var names etc...
    • enclosingBlock

      public CodeBlock enclosingBlock
      All operations know in which block they live: CodeBlock, CodeBlockForAlt Templates might need to know block nesting level or find a specific declaration, etc...
    • enclosingRuleRunction

      public RuleFunction enclosingRuleRunction
  • Constructor Details

  • Method Details

    • getOuterMostAltCodeBlock

      public CodeBlockForOuterMostAlt getOuterMostAltCodeBlock()
      Walk upwards in model tree, looking for outer alt's code block
    • getContextName

      public String getContextName()
      Return label alt or return name of rule