public class EscapedParameterReference extends Object implements ParameterToken
| Modifier and Type | Field and Description |
|---|---|
private int |
endOffset |
private String |
referenceText |
private int |
startOffset |
| Constructor and Description |
|---|
EscapedParameterReference(int startOffset,
int endOffset,
String referenceText) |
| Modifier and Type | Method and Description |
|---|---|
int |
getEndOffset() |
int |
getStartOffset() |
String |
getText() |
String |
getValue(ParameterLookup parameterLookup)
Returns the 'value' of the token.
|
boolean |
isEscapeSequence() |
boolean |
isParameterReference() |
private final int startOffset
private final int endOffset
private final String referenceText
public EscapedParameterReference(int startOffset,
int endOffset,
String referenceText)
public int getStartOffset()
getStartOffset in interface ParameterTokenpublic int getEndOffset()
getEndOffset in interface ParameterTokenpublic String getText()
getText in interface ParameterTokenpublic boolean isEscapeSequence()
isEscapeSequence in interface ParameterTokentrue if this token represents an escape sequence such as ##{param} or ## in the case of ###{param} or ####{param}, false if this
token does not represent an escape sequence.public boolean isParameterReference()
isParameterReference in interface ParameterTokentrue if this token represents a reference to a Parameter. If this method returns true, then this token can be cast
as a ParameterReference.public String getValue(ParameterLookup parameterLookup)
ParameterTokengetValue in interface ParameterTokenparameterLookup - the Parameter Lookup to use for looking up valuesCopyright © 2023 Apache NiFi Project. All rights reserved.