Class Scope

Direct Known Subclasses:
Grammar

public class Scope extends Pattern
A pattern defined by a <define> and <start>. A start pattern is represented by name==null.
Author:
Kohsuke Kawaguchi (kk@kohsuke.org)
  • Field Details

    • name

      public final String name
      Name of this pattern. Copied from the name attribute of the <define> element.

      For the start pattern, this field is null.

  • Constructor Details

  • Method Details

    • setParam

      public void setParam(NGCCDefineParam p)
    • getParam

      public NGCCDefineParam getParam()
      NGCC parameters associated to this scope.
    • getPattern

      public Pattern getPattern()
    • appendImport

      public void appendImport(String code)
    • getImport

      public String getImport()
    • appendBody

      public void appendBody(String code)
    • getBody

      public String getBody()
    • append

      public void append(Pattern pattern, String method)
      Incorporates the newly discovered <define>.
    • apply

      public Object apply(PatternFunction f)
      Specified by:
      apply in class Pattern
    • getParamCount

      public int getParamCount()
    • clear

      public void clear()