INPUT - public interface IParser<INPUT>
| Modifier and Type | Method and Description |
|---|---|
INPUT |
concat(Object... input)
concatenates given elements of type INPUT
|
INPUT |
extract(INPUT source,
INPUT part)
extracts the given part from source
|
INPUT |
extract(INPUT source,
INPUT match,
INPUT replacement)
extracts the given part from source and replaces it with replacement
|
boolean |
isEmpty(INPUT term)
isEmpty
|
void |
replace(INPUT src,
INPUT expression,
INPUT replace)
replace
|
INPUT |
subElement(INPUT src,
INPUT begin,
INPUT end,
boolean last)
searches for the given block starting with begin and ending with end. if last is true, the last block will be searched.
|
INPUT |
subEnclosing(INPUT src,
INPUT begin,
INPUT end)
searches in src for a block starting (excluding) from first begin and ending with last end.
|
INPUT |
trim(INPUT totrim)
right and left trim
|
INPUT |
unwrap(INPUT src)
see
wrap(Object). |
INPUT |
wrap(INPUT src)
should be overridden if you need a transformation.
|
boolean isEmpty(INPUT term)
term - term to checkvoid replace(INPUT src, INPUT expression, INPUT replace)
src - expression - replace - INPUT wrap(INPUT src)
src - source to be transformed/wrappedINPUT unwrap(INPUT src)
wrap(Object).src - source to be re-transformedINPUT extract(INPUT source, INPUT part)
source - part - INPUT extract(INPUT source, INPUT match, INPUT replacement)
source - match - replacement - INPUT subElement(INPUT src, INPUT begin, INPUT end, boolean last)
src - sourcebegin - block startend - block endlast - whether to search from the end.INPUT subEnclosing(INPUT src, INPUT begin, INPUT end)
src - sourcebegin - block startend - block endINPUT concat(Object... input)
input - input array to concatenate. the array is of type Object as a technical workaround on auto-creating
an INPUT[].Copyright © 2012–2020. All rights reserved.