ParsedPattern
AfterPattern
, ChoicePattern
, GroupPattern
, InterleavePattern
public abstract class BinaryPattern extends Pattern
Modifier and Type | Method | 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() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
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 © 2018 Oracle Corporation. All rights reserved.