GrammarScope  4.0.0
Public Member Functions | Private Attributes | List of all members
grammarscope.tweak.ClassPathForGeneratedClasses Class Reference
Inheritance diagram for grammarscope.tweak.ClassPathForGeneratedClasses:
Inheritance graph
[legend]
Collaboration diagram for grammarscope.tweak.ClassPathForGeneratedClasses:
Collaboration graph
[legend]

Public Member Functions

 ClassPathForGeneratedClasses ()
 
void addClass (final CtClass clazz) throws CannotCompileException, IOException
 
URL find (final String classname)
 
InputStream openClassfile (final String classname)
 
void close ()
 

Private Attributes

final HashMap< String, InputStream > classes
 

Detailed Description

Class path for generated classes. This is to prevent failures when compiling with newly generated classes.

Author
Yanic Inghelbrecht RSS

Constructor & Destructor Documentation

◆ ClassPathForGeneratedClasses()

grammarscope.tweak.ClassPathForGeneratedClasses.ClassPathForGeneratedClasses ( )

Member Function Documentation

◆ addClass()

void grammarscope.tweak.ClassPathForGeneratedClasses.addClass ( final CtClass  clazz) throws CannotCompileException, IOException

Add generated class

Parameters
clazzgenerated class
Exceptions
CannotCompileExceptionexception
IOExceptionexception

◆ close()

void grammarscope.tweak.ClassPathForGeneratedClasses.close ( )

◆ find()

URL grammarscope.tweak.ClassPathForGeneratedClasses.find ( final String  classname)

◆ openClassfile()

InputStream grammarscope.tweak.ClassPathForGeneratedClasses.openClassfile ( final String  classname)

Member Data Documentation

◆ classes

final HashMap<String, InputStream> grammarscope.tweak.ClassPathForGeneratedClasses.classes
private

The documentation for this class was generated from the following file: