Statement.ArgsBuilder, Statement.CompoundRule, Statement.ConditionalRule, Statement.Rule, Statement.StatementBuilder, Statement.StatementContext, Statement.SwichTokenRule
Constructor and Description |
---|
DefaultStatement(java.lang.String name) |
public Statement.Rule require_any_token(java.lang.String... token)
require_any_token
in interface Statement
public Statement.Rule require_tokens(java.lang.String... token)
require_tokens
in interface Statement
public Statement.Rule require_identifier()
require_identifier
in interface Statement
public Statement.Rule require_identifiers(java.lang.String sep)
require_identifiers
in interface Statement
public Statement.Rule require_identifiers_as_string(java.lang.String sep)
require_identifiers_as_string
in interface Statement
public Statement.Rule require_literal_string()
require_literal_string
in interface Statement
public Statement.Rule set_expression(java.lang.String id, java.lang.Object value)
set_expression
in interface Statement
public Statement.Rule require_expression()
require_expression
in interface Statement
public Statement.Rule require_expression(boolean allow_assignement)
require_expression
in interface Statement
public Statement.ConditionalRule optional_expression()
optional_expression
in interface Statement
public Statement.Rule require_expressions(java.lang.String separator)
require_expressions
in interface Statement
public Statement.Rule require_expressions(java.lang.String separator, java.lang.String... terminationTokens)
require_expressions
in interface Statement
public Statement.ConditionalRule optional_any_token(java.lang.String... id)
optional_any_token
in interface Statement
public Statement.ConditionalRule if_compatibility_contains(java.lang.String compatid, java.lang.String expected)
if_compatibility_contains
in interface Statement
public Statement.ConditionalRule optional_identifiers(java.lang.String separator)
optional_identifiers
in interface Statement
public Statement.ConditionalRule optional_literal_string()
optional_literal_string
in interface Statement
public Statement.CompoundRule repeat_until_any_tokens(java.lang.String... tokens)
repeat_until_any_tokens
in interface Statement
public Statement addRule(Statement.Rule rule)
public boolean isApplicable(Statement.StatementContext context)
isApplicable
in interface Statement
public Statement.ArgsBuilder args_names(java.lang.String... args)
args_names
in interface Statement
public Statement.ArgsBuilder fixed_args_names(java.lang.String... args)
fixed_args_names
in interface Statement
public Statement.ArgsBuilder args_expand(java.lang.String... args)
args_expand
in interface Statement
public void code(java.lang.String id, Statement.ArgsBuilder argsBuilder)
public void builder(Statement.StatementBuilder builder)
public Code parse(Statement.StatementContext context)
public java.lang.String toString()
toString
in class java.lang.Object
public Statement.CompoundRule repeat()
public Statement.Rule fail()
public Statement.Rule break_loop()
break_loop
in interface Statement
public Statement.SwichTokenRule switch_token()
switch_token
in interface Statement