|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpobs.PContext
Immutable class containg a PDirective
instance and optional a
PTarget
and a PErrorHandler
.
For threadsafe usage, a PTarget must be specified.
Constructor Summary | |
PContext()
Creates an instance with a default directive, no target and no error handler. |
|
PContext(PDirective directive)
Creates an instance with the specified directive, no target and no error handler. |
|
PContext(PDirective directive,
PTarget target,
PErrorHandler errorHandler)
Creates an instance with the specified directive and target. |
Method Summary | |
PDirective |
getDirective()
Returns parsing directive. |
PErrorHandler |
getErrorHandler()
Returns error handler. |
PTarget |
getTarget()
Returns action target. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public PContext()
public PContext(PDirective directive)
directive
- Parser directive. null
is not allowed.
java.lang.IllegalArgumentException
- if directive == null
.public PContext(PDirective directive, PTarget target, PErrorHandler errorHandler)
directive
- Parser directive. null
is not allowed.target
- Action target. Can be null
.
java.lang.IllegalArgumentException
- if directive == null
.Method Detail |
public PDirective getDirective()
public PTarget getTarget()
null
if undefined.public PErrorHandler getErrorHandler()
null
if undefined.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |