Package com.fizzed.rocker.model
Class WithStatement
- java.lang.Object
-
- com.fizzed.rocker.model.WithStatement
-
- All Implemented Interfaces:
NullSafety
public class WithStatement extends java.lang.Object implements NullSafety
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classWithStatement.VariableWithExpressionWrapper around one variable and its expression
-
Field Summary
Fields Modifier and Type Field Description private booleannullSafeprivate java.util.List<WithStatement.VariableWithExpression>variablesprivate static WithBlockParserListenerWITH_BLOCK_PARSER_LISTENER
-
Constructor Summary
Constructors Constructor Description WithStatement(java.util.List<WithStatement.VariableWithExpression> variables)WithStatement(java.util.List<WithStatement.VariableWithExpression> variables, boolean nullSafe)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<WithStatement.VariableWithExpression>getVariables()booleanhasAnyVariableNullType()booleanisNullSafe()static WithStatementparse(java.lang.String statement, java.lang.String templatePath)private static java.util.List<java.lang.String>parseWithStatement(java.lang.String value, java.lang.String templatePath)
-
-
-
Field Detail
-
WITH_BLOCK_PARSER_LISTENER
private static final WithBlockParserListener WITH_BLOCK_PARSER_LISTENER
-
variables
private final java.util.List<WithStatement.VariableWithExpression> variables
-
nullSafe
private final boolean nullSafe
-
-
Constructor Detail
-
WithStatement
public WithStatement(java.util.List<WithStatement.VariableWithExpression> variables)
-
WithStatement
public WithStatement(java.util.List<WithStatement.VariableWithExpression> variables, boolean nullSafe)
-
-
Method Detail
-
getVariables
public java.util.List<WithStatement.VariableWithExpression> getVariables()
-
hasAnyVariableNullType
public boolean hasAnyVariableNullType()
-
isNullSafe
public boolean isNullSafe()
- Specified by:
isNullSafein interfaceNullSafety
-
parse
public static WithStatement parse(java.lang.String statement, java.lang.String templatePath) throws TokenException
- Throws:
TokenException
-
parseWithStatement
private static java.util.List<java.lang.String> parseWithStatement(java.lang.String value, java.lang.String templatePath)
-
-