Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.kohsuke.rngom.binary
Class BinaryPattern

    java.lang.Object
      org.kohsuke.rngom.binary.Pattern
          org.kohsuke.rngom.binary.BinaryPattern

All Implemented Interfaces:
  ParsedPattern

Direct Known Subclasses:
  AfterPattern, ChoicePattern, GroupPattern, InterleavePattern

    public abstract class BinaryPattern

extends Pattern

Field Summary
`protected Pattern` | `p1`
`protected Pattern` | `p2`

Method Summary
`void` | `fillChildren(java.util.Collection col)` Adds all the children of this pattern to the given collection.
`Pattern[]` | `getChildren()` Same as `fillChildren(Collection)` but returns an array.
`Pattern` | `getOperand1()`
`Pattern` | `getOperand2()`

Methods inherited from class org.kohsuke.rngom.binary.Pattern
`accept, apply, isNullable`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Field Detail

### p1

    protected final Pattern p1

### p2

    protected final Pattern p2

Method Detail

### getOperand1

    public final Pattern getOperand1()

### getOperand2

    public final Pattern getOperand2()

### fillChildren

    public final void fillChildren(java.util.Collection col)

  Adds all the children of this pattern to the given collection.

  For example, if this pattern is (A|B|C), it adds A, B, and C to the collection, even though internally it's represented as (A|(B|C)).

### getChildren

    public final Pattern[] getChildren()

  Same as `fillChildren(Collection)` but returns an array.

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD