public class DefaultStatement.RuleSwitchToken extends java.lang.Object implements Statement.SwichTokenRule
Constructor and Description |
---|
RuleSwitchToken() |
Modifier and Type | Method and Description |
---|---|
Statement.SwichTokenRule |
addCase(java.lang.String token,
Statement.Rule... rules) |
Statement.SwichTokenRule |
addDefault(Statement.Rule... rules) |
Statement.Rule |
capture_as(java.lang.String... ids) |
void |
parse(Statement.StatementContext context) |
java.lang.String |
toString() |
public Statement.Rule capture_as(java.lang.String... ids)
capture_as
in interface Statement.Rule
public void parse(Statement.StatementContext context)
parse
in interface Statement.Rule
public Statement.SwichTokenRule addCase(java.lang.String token, Statement.Rule... rules)
addCase
in interface Statement.SwichTokenRule
public Statement.SwichTokenRule addDefault(Statement.Rule... rules)
addDefault
in interface Statement.SwichTokenRule
public java.lang.String toString()
toString
in class java.lang.Object