public abstract class CustomPatternElementBuilder<T,B extends Buildable<T>> extends Object implements Buildable<T>
| Modifier and Type | Field and Description |
|---|---|
protected String |
id |
protected List<Function<?,?>> |
mappers |
protected boolean |
optional |
protected CustomReader<? extends T> |
reader |
protected Collection<CustomVerify<? extends T>> |
verifies |
| Modifier | Constructor and Description |
|---|---|
protected |
CustomPatternElementBuilder(String id) |
| Modifier and Type | Method and Description |
|---|---|
org.panda_lang.framework.language.interpreter.pattern.custom.CustomPatternElement |
build() |
B |
custom(CustomReader<T> reader) |
<V> CustomPatternElementBuilder<V,? extends Buildable<V>> |
map(Function<T,V> mapper) |
B |
optional() |
B |
verify(CustomVerify<? extends T> verify) |
protected final String id
protected boolean optional
protected CustomReader<? extends T> reader
protected final Collection<CustomVerify<? extends T>> verifies
protected CustomPatternElementBuilder(String id)
public org.panda_lang.framework.language.interpreter.pattern.custom.CustomPatternElement build()
public B optional()
public B custom(CustomReader<T> reader)
public B verify(CustomVerify<? extends T> verify)
public <V> CustomPatternElementBuilder<V,? extends Buildable<V>> map(Function<T,V> mapper)
Copyright © 2020. All rights reserved.