|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectooc.SourceContextAbstract
ooc.SourceContextClassPath
Represents the class path context for a current class loader or a given one.
Field Summary | |
static java.lang.String |
NAME
Contains the default name of this context which is 'classpath'. |
Constructor Summary | |
SourceContextClassPath()
Constructs a context using current class loader and the default name. |
|
SourceContextClassPath(java.lang.ClassLoader classLoader)
Constructs a context using the given class loader and name. |
|
SourceContextClassPath(java.lang.ClassLoader classLoader,
java.lang.String name)
Constructs a context using the given class loader and name. |
Method Summary | |
Source |
createSource(java.lang.String sourceName)
Returns a newly created source from which tags can be parsed. |
boolean |
isSourceInContext(java.lang.String sourceName)
Returns true if the given source exists in this contexts. |
Methods inherited from class ooc.SourceContextAbstract |
getName |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String NAME
Constructor Detail |
public SourceContextClassPath()
public SourceContextClassPath(java.lang.ClassLoader classLoader)
classLoader
- is the class loader from which sources will
be retained.public SourceContextClassPath(java.lang.ClassLoader classLoader, java.lang.String name)
classLoader
- is the class loader from which sources will
be retained.name
- is the name for which this context will be assosiatedMethod Detail |
public boolean isSourceInContext(java.lang.String sourceName)
SourceContext
public Source createSource(java.lang.String sourceName)
SourceContext
sourceName
- is the name of the source created.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |