Package eu.simuline.relana.model
Class CClassLoader
- java.lang.Object
-
- eu.simuline.relana.model.CClassLoader
-
public final class CClassLoader extends Object
The loader for allCClass
es. Created: Thu Apr 14 23:35:25 2005- Version:
- 1.0
- Author:
- Ernst Reissner
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static class
CClassLoader.ClassResolver
Resolver forCClassLink
s(package private) static class
CClassLoader.Occurrence
-
Field Summary
Fields Modifier and Type Field Description private URL
library
private Map<ClassLocator,CClassLink>
name2class
private SClassLoader
scLoader
private Stack<ClassLocator>
unresolvedClasses
-
Constructor Summary
Constructors Constructor Description CClassLoader(URL library)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CClass
loadCClass(ClassLocator loc)
CClass
loadCClass(ClassLocator loc, Package pkg)
SClass
loadSClass(ClassLocator loc, Package pkg)
private CClassLink
resolveLocInOcc(ClassLocator loc, CClassLoader.Occurrence occ)
CClassLink
resolveLocInOcc(ClassLocator toBeResolved, ClassLocator loc, String comp)
-
-
-
Field Detail
-
library
private final URL library
-
name2class
private final Map<ClassLocator,CClassLink> name2class
-
unresolvedClasses
private final Stack<ClassLocator> unresolvedClasses
-
scLoader
private final SClassLoader scLoader
-
-
Constructor Detail
-
CClassLoader
public CClassLoader(URL library)
-
-
Method Detail
-
loadSClass
public SClass loadSClass(ClassLocator loc, Package pkg) throws IOException, RecognitionException
- Throws:
IOException
RecognitionException
-
loadCClass
public CClass loadCClass(ClassLocator loc, Package pkg) throws IOException, RecognitionException
- Throws:
IOException
RecognitionException
-
loadCClass
public CClass loadCClass(ClassLocator loc) throws IOException, RecognitionException
- Throws:
IOException
RecognitionException
-
resolveLocInOcc
public CClassLink resolveLocInOcc(ClassLocator toBeResolved, ClassLocator loc, String comp)
-
resolveLocInOcc
private CClassLink resolveLocInOcc(ClassLocator loc, CClassLoader.Occurrence occ)
-
-