public final class LinearPatternResult extends Object implements PatternResult, PatternMapping
| Modifier and Type | Field and Description |
|---|---|
protected static LinearPatternResult |
NOT_MATCHED |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
get(String identifier)
Get value using the given name
|
List<? extends String> |
getIdentifiers() |
Snippet |
getSource()
Get matched source
|
boolean |
isMatched()
Check if result is matched
|
protected static final LinearPatternResult NOT_MATCHED
public boolean isMatched()
PatternResultisMatched in interface PatternResultpublic <T> T get(String identifier)
PatternMappingget in interface PatternMappingT - type of resultidentifier - the name to search forpublic Snippet getSource()
PatternResultgetSource in interface PatternResultCopyright © 2020. All rights reserved.