Package org.antlr.gunit.swingui.runner

## Class ParserLoader

- java.lang.Object
- - java.lang.ClassLoader
  - - org.antlr.gunit.swingui.runner.ParserLoader

    public class ParserLoader
    extends java.lang.ClassLoader

Class loader for parser & lexer generated by antlr.

Author:
  Shaoting

### Nested Class Summary

Nested Classes
`protected static class` `ParserLoader.ClassFilenameFilter` Accepts grammarname...($...)?.class

### Constructor Summary

Constructors
`ParserLoader​(java.lang.String grammarName, java.lang.String classDir)` Create a class loader for antlr parser/lexer.

### Method Summary

All Methods Instance Methods Concrete Methods
`java.lang.Class<?>` `loadClass​(java.lang.String name, boolean resolve)`

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

`clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findClass, findClass, findLibrary, findLoadedClass, findResource, findResource, findResources, findSystemClass, getClassLoadingLock, getDefinedPackage, getDefinedPackages, getName, getPackage, getPackages, getParent, getPlatformClassLoader, getResource, getResourceAsStream, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, getUnnamedModule, isRegisteredAsParallelCapable, loadClass, registerAsParallelCapable, resolveClass, resources, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners`

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

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

### Constructor Detail

#### ParserLoader

    public ParserLoader​(java.lang.String grammarName,
                        java.lang.String classDir)
                 throws java.io.IOException,
                        java.lang.ClassNotFoundException

Create a class loader for antlr parser/lexer.

Parameters:
  `grammarName` -
  `classDir` -
Throws:
  `java.io.IOException`
  `java.lang.ClassNotFoundException`

### Method Detail

#### loadClass

    public java.lang.Class<?> loadClass​(java.lang.String name,
                                        boolean resolve)
                                 throws java.lang.ClassNotFoundException

Overrides:
  `loadClass` in class `java.lang.ClassLoader`
Throws:
  `java.lang.ClassNotFoundException`