Class VariableDeclarationParser
- java.lang.Object
-
- nz.net.ultraq.thymeleaf.layoutdialect.models.VariableDeclarationParser
-
public class VariableDeclarationParser extends Object
Parser for variable declaration strings, which are the expressions that are found withingth:with
processors. This is really a wrapper around Thymeleaf'sAssignationUtils
class, which is a crazy house of code that splits the expression string into the parts needed by this dialect.- Author:
- zhanhb, Emanuel Rabina
-
-
Constructor Summary
Constructors Constructor Description VariableDeclarationParser(IExpressionContext context)
Constructor, sets the processing context for the parser.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IExpressionContext
getContext()
List<VariableDeclaration>
parse(String declarationString)
Parse a variable declaration string, returning as many variable declaration objects as there are variable declarations.
-
-
-
Constructor Detail
-
VariableDeclarationParser
public VariableDeclarationParser(IExpressionContext context)
Constructor, sets the processing context for the parser.- Parameters:
context
-
-
-
Method Detail
-
parse
public List<VariableDeclaration> parse(String declarationString)
Parse a variable declaration string, returning as many variable declaration objects as there are variable declarations.- Parameters:
declarationString
-- Returns:
- List of variable declaration objects.
-
getContext
public final IExpressionContext getContext()
-
-