O
- R
- C
- public abstract class OBContext<R,O,C>
extends java.lang.Object
OBRecognizer
and OBBuilder
.
Provides access to the environment under which recognition or build should
be performed.OBFramework
,
OBSpiRecognizer
Constructor and Description |
---|
OBContext(OBFramework<R,O,C> mainProfiler,
C context,
java.util.List<OBRecognizer<R,O,C>> recognizers,
int rSize,
OBContext parent) |
Modifier and Type | Method and Description |
---|---|
void |
consume() |
void |
firePostBuildEvent(O object,
OBBuilder<R,O,C> builder) |
void |
firePreBuildEvent(java.lang.Class<O> objectClass,
OBBuilder<R,O,C> builder) |
C |
getContext() |
OBSpiRecognizer<R,O,C> |
getSpiRecognizer() |
boolean |
isConsumed() |
protected abstract OBContext<R,O,C> |
newOBContext(OBFramework<R,O,C> recognizer,
C userContext,
java.util.List<OBRecognizer<R,O,C>> recognizers,
int rSize,
OBContext<R,O,C> parent) |
protected abstract OBSpiRecognizer<R,O,C> |
newSpiRecognizer(OBContext<R,O,C> context) |
public OBContext(OBFramework<R,O,C> mainProfiler, C context, java.util.List<OBRecognizer<R,O,C>> recognizers, int rSize, OBContext parent)
public C getContext()
public void consume()
public boolean isConsumed()
protected abstract OBContext<R,O,C> newOBContext(OBFramework<R,O,C> recognizer, C userContext, java.util.List<OBRecognizer<R,O,C>> recognizers, int rSize, OBContext<R,O,C> parent)
public OBSpiRecognizer<R,O,C> getSpiRecognizer()
protected abstract OBSpiRecognizer<R,O,C> newSpiRecognizer(OBContext<R,O,C> context)
public void firePreBuildEvent(java.lang.Class<O> objectClass, OBBuilder<R,O,C> builder)