|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.qedeq.kernel.se.common.ModuleContext
public class ModuleContext
Define context for an instance of Qedeq
.
It consists of a location information: where is this module located.
Also the location within the Qedeq
object
should be described in an XPath like manner.
The idea behind this context is a caller perspective. The caller sets the context (at least the module location information) and if the called method throws an exception a try/catch block can retrieve the context information.
Constructor Summary | |
---|---|
ModuleContext(ModuleAddress moduleLocation)
Constructor. |
|
ModuleContext(ModuleAddress moduleLocation,
java.lang.String locationWithinModule)
Constructor. |
|
ModuleContext(ModuleAddress moduleLocation,
java.lang.String locationWithinModule,
SourcePosition startDelta,
SourcePosition endDelta)
Constructor. |
|
ModuleContext(ModuleContext original)
Copy constructor. |
|
ModuleContext(ModuleContext main,
java.lang.String moduleLocation)
Constructor. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
|
SourcePosition |
getEndDelta()
Get delta position (relative to location start). |
java.lang.String |
getLocationWithinModule()
Get location information where are we within the module. |
ModuleAddress |
getModuleLocation()
Get location information about module. |
SourcePosition |
getStartDelta()
Get delta position (relative to location start). |
int |
hashCode()
|
void |
setLocationWithinModule(java.lang.String locationWithinModule)
Set location information where are we within the module. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ModuleContext(ModuleAddress moduleLocation, java.lang.String locationWithinModule, SourcePosition startDelta, SourcePosition endDelta)
moduleLocation
- Module location information. Must not be null
.locationWithinModule
- Location within module. Must not be null
.startDelta
- Skip position (relative to location start). Could be
null
.endDelta
- Mark until this column (relative to location start). Could
be null
.
java.lang.NullPointerException
- At least one parameter is null.
java.lang.IllegalArgumentException
- One parameter is below its allowed minimum.public ModuleContext(ModuleAddress moduleLocation, java.lang.String locationWithinModule)
moduleLocation
- Module location information. Must not be null
.locationWithinModule
- Location within module. Must not be null
.
java.lang.NullPointerException
- At least one parameter is null.public ModuleContext(ModuleAddress moduleLocation)
moduleLocation
- Module location information.public ModuleContext(ModuleContext original)
original
- Original context.public ModuleContext(ModuleContext main, java.lang.String moduleLocation)
main
- Main context. Must not be null
.moduleLocation
- Module location information. Must not be null
.Method Detail |
---|
public final ModuleAddress getModuleLocation()
public final java.lang.String getLocationWithinModule()
public final void setLocationWithinModule(java.lang.String locationWithinModule)
locationWithinModule
- Location within module.public final SourcePosition getStartDelta()
null
.
public final SourcePosition getEndDelta()
null
.
public final int hashCode()
hashCode
in class java.lang.Object
public final boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public final java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |