public abstract class BinaryPattern extends Pattern
Modifier and Type | Field and Description |
---|---|
protected Pattern |
p1 |
protected Pattern |
p2 |
Modifier and Type | Method and Description |
---|---|
void |
fillChildren(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() |
accept, apply, isNullable
public final Pattern getOperand1()
public final Pattern getOperand2()
public final void fillChildren(Collection col)
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)).
public final Pattern[] getChildren()
fillChildren(Collection)
but returns an array.Copyright © 2021 JBoss by Red Hat. All rights reserved.