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 Detail

      • name

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

        For the start pattern, this field is null.

    • Constructor Detail

      • Scope

        public Scope​(ParserRuntime rt,
                     java.lang.String name_)
    • Method Detail

      • getParam

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

        public Pattern getPattern()
      • appendImport

        public void appendImport​(java.lang.String code)
      • getImport

        public java.lang.String getImport()
      • appendBody

        public void appendBody​(java.lang.String code)
      • getBody

        public java.lang.String getBody()
      • append

        public void append​(Pattern pattern,
                           java.lang.String method)
        Incorporates the newly discovered <define>.
      • getParamCount

        public int getParamCount()
      • clear

        public void clear()