Package org.antlr.gunit.swingui.model

## Class TestSuite

- java.lang.Object
- - org.antlr.gunit.swingui.model.TestSuite

    public class TestSuite
    extends java.lang.Object

### Field Summary

Fields
`protected java.lang.String` `grammarName`
`protected java.util.List<Rule>` `rules`
`protected java.io.File` `testSuiteFile`
`protected org.antlr.runtime.CommonTokenStream` `tokens`

### Constructor Summary

Constructors
`protected` `TestSuite​(java.lang.String gname, java.io.File testFile)`

### Method Summary

All Methods Instance Methods Concrete Methods
`void` `addRule​(Rule currentRule)`
`java.lang.String` `getGrammarName​()`
`Rule` `getRule​(int index)`
`Rule` `getRule​(java.lang.String name)`
`int` `getRuleCount​()`
`java.util.List<Rule>` `getRulesForStringTemplate​()`
`java.io.File` `getTestSuiteFile​()`
`org.antlr.runtime.CommonTokenStream` `getTokens​()`
`boolean` `hasRule​(Rule rule)`
`void` `setGrammarName​(java.lang.String name)`
`void` `setRules​(java.util.List<Rule> newRules)`
`void` `setTokens​(org.antlr.runtime.CommonTokenStream ts)`

### Methods inherited from class java.lang.Object

`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

### Field Detail

#### rules

    protected java.util.List<Rule> rules

#### grammarName

    protected java.lang.String grammarName

#### tokens

    protected org.antlr.runtime.CommonTokenStream tokens

#### testSuiteFile

    protected java.io.File testSuiteFile

### Constructor Detail

#### TestSuite

    protected TestSuite​(java.lang.String gname,
                        java.io.File testFile)

### Method Detail

#### getTestSuiteFile

    public java.io.File getTestSuiteFile​()

#### addRule

    public void addRule​(Rule currentRule)

#### hasRule

    public boolean hasRule​(Rule rule)

#### getRuleCount

    public int getRuleCount​()

#### setRules

    public void setRules​(java.util.List<Rule> newRules)

#### setGrammarName

    public void setGrammarName​(java.lang.String name)

#### getGrammarName

    public java.lang.String getGrammarName​()

#### getRule

    public Rule getRule​(int index)

#### getTokens

    public org.antlr.runtime.CommonTokenStream getTokens​()

#### setTokens

    public void setTokens​(org.antlr.runtime.CommonTokenStream ts)

#### getRule

    public Rule getRule​(java.lang.String name)

#### getRulesForStringTemplate

    public java.util.List<Rule> getRulesForStringTemplate​()