public class VariableToken extends ChangeableToken
Copyright (C) 2012 JIOWA Business Solutions GmbH, Bettinastr. 30 , 60325 Frankfurt am Main, Germany
Homepage: www.jiowa.de
All rights reserved.
Download: www.jiowa.de/download.html
License: www.jiowa.de/license.html
Modifier and Type | Field and Description |
---|---|
protected VariableOperatorList |
operators
List of operators that have been encoded in the variable string during the parsing process.
|
original
Constructor and Description |
---|
VariableToken(java.lang.String name,
java.lang.String original,
VariableOperatorList operators,
TextPosition position)
Constructor for variable tokens
Hint: Parsing is done via
VariableParser to create instances of VariableToken. |
VariableToken(VariableToken token) |
VariableToken(VariableToken token,
int leftOffsetToBeAdded)
Copy constructor with new textposition information.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
applyOperators(java.lang.String s) |
java.util.List<VariableOperator> |
getOperators() |
java.lang.String |
toString() |
getOriginal
compareTo, getText, getTextPosition, update
protected VariableOperatorList operators
public VariableToken(java.lang.String name, java.lang.String original, VariableOperatorList operators, TextPosition position)
VariableParser
to create instances of VariableToken.name
- effective variable nameoriginal
- original unmodified text containing the variable name ( inclusive operators and superfluous white spaces ).operators
- parsed variable operatorsposition
- text position of this variable token within the template.public VariableToken(VariableToken token)
public VariableToken(VariableToken token, int leftOffsetToBeAdded)
token
- the variable tokenleftOffsetToBeAdded
- left offsetpublic java.util.List<VariableOperator> getOperators()
public java.lang.String applyOperators(java.lang.String s)