public class DefaultStatement.RuleOptionalAnyToken extends java.lang.Object implements Statement.ConditionalRule
Constructor and Description |
---|
RuleOptionalAnyToken(java.lang.String... optional_token) |
Modifier and Type | Method and Description |
---|---|
DefaultStatement.RuleOptionalAnyToken |
addRuleOnFalse(Statement.Rule rule) |
DefaultStatement.RuleOptionalAnyToken |
addRuleOnTrue(Statement.Rule rule) |
Statement.ConditionalRule |
capture_as(java.lang.String... ids) |
void |
parse(Statement.StatementContext context) |
java.lang.String |
toString() |
public RuleOptionalAnyToken(java.lang.String... optional_token)
public Statement.ConditionalRule capture_as(java.lang.String... ids)
capture_as
in interface Statement.ConditionalRule
capture_as
in interface Statement.Rule
public void parse(Statement.StatementContext context)
parse
in interface Statement.Rule
public DefaultStatement.RuleOptionalAnyToken addRuleOnTrue(Statement.Rule rule)
addRuleOnTrue
in interface Statement.ConditionalRule
public DefaultStatement.RuleOptionalAnyToken addRuleOnFalse(Statement.Rule rule)
addRuleOnFalse
in interface Statement.ConditionalRule
public java.lang.String toString()
toString
in class java.lang.Object