public class WurbletArgumentParser extends Object
An expression consists of operands (which may be arguments or nested expressions) connected via logical operators. There are 3 kinds of operators:
ANDORNOTAND.fee fie (foe or foo) and (voice or plugh) ((fee or fie) and foe) or fooA complete wurblet example:
@wurblet selectUpTo PdoSelectList --remote processed:=:null or processed:>= +id *address
| Constructor and Description |
|---|
WurbletArgumentParser(org.tentackle.model.Entity entity,
boolean argumentGroupingEnabled,
List<String> arguments)
Creates a parser.
|
| Modifier and Type | Method and Description |
|---|---|
WurbletArgument |
createArgument(String arg,
boolean expressionFinished,
boolean argumentGroupingEnabled)
Creates a wurblet argument.
|
List<WurbletArgument> |
getAllArguments()
Gets all arguments.
|
org.tentackle.model.Entity |
getEntity()
Gets the entity the wurblet is applied to.
|
WurbletArgumentExpression |
getExpression()
Gets the where expression.
|
List<WurbletArgument> |
getExpressionArguments()
Gets all arguments part of the expression.
|
List<WurbletArgument> |
getExtraArguments()
Gets the extra arguments.
Those are not part of the expression and not sorting arguments. |
List<WurbletArgument> |
getJoinArguments()
Gets the join arguments.
|
List<JoinPath> |
getJoinPaths()
Gets the consolidated relation paths for the join arguments.
|
List<WurbletArgument> |
getMethodArguments()
Gets the method arguments.
|
List<WurbletArgument> |
getSortingArguments()
Gets the sorting arguments.
|
String |
toString() |
public WurbletArgumentParser(org.tentackle.model.Entity entity,
boolean argumentGroupingEnabled,
List<String> arguments)
throws org.wurbelizer.wurbel.WurbelException
entity - the entity the wurblet is applied toargumentGroupingEnabled - true if pipe character separates expression from extra argumentsarguments - the wurblet argumentsorg.wurbelizer.wurbel.WurbelException - if parsing failedpublic org.tentackle.model.Entity getEntity()
public WurbletArgumentExpression getExpression()
public List<WurbletArgument> getExpressionArguments()
public List<WurbletArgument> getExtraArguments()
public List<WurbletArgument> getSortingArguments()
public List<WurbletArgument> getJoinArguments()
public List<JoinPath> getJoinPaths()
public List<WurbletArgument> getMethodArguments()
public List<WurbletArgument> getAllArguments()
public WurbletArgument createArgument(String arg, boolean expressionFinished, boolean argumentGroupingEnabled) throws org.wurbelizer.wurbel.WurbelException
arg - the argument stringexpressionFinished - true if expression is finishedargumentGroupingEnabled - true if argument grouping is enabledorg.wurbelizer.wurbel.WurbelException - if parsing arg failedTentackle - distributed, domain- and model-driven