public class ConstantVerifierState extends BaseAppState
Modifier and Type | Class and Description |
---|---|
static class |
ConstantVerifierState.ErrorType |
Constructor and Description |
---|
ConstantVerifierState()
Creates a verifier app state that will check all of the default
constant checks using asserts.
|
ConstantVerifierState(ConstantVerifierState.ErrorType errorType)
Creates a verifier app state that will check all of the default
constant checks using the specified error reporting mechanism.
|
Modifier and Type | Method and Description |
---|---|
void |
addChecker(java.lang.Object constant,
java.lang.Object goodValue) |
protected void |
checkValues() |
protected void |
cleanup(Application app)
Called after the app state is detached or during
application shutdown if the state is still attached.
|
ConstantVerifierState.ErrorType |
getErrorType() |
protected void |
initialize(Application app)
Called during initialization once the app state is
attached and before onEnable() is called.
|
protected void |
onDisable()
Called when the state was previously enabled but is
now disabled either because setEnabled(false) was called
or the state is being cleaned up.
|
protected void |
onEnable()
Called when the state is fully enabled, ie: is attached
and isEnabled() is true or when the setEnabled() status
changes after the state is attached.
|
void |
postRender()
Called after all rendering commands are flushed.
|
void |
setErrorType(ConstantVerifierState.ErrorType errorType) |
cleanup, getApplication, getId, getState, getState, getState, getState, getStateManager, initialize, isEnabled, isInitialized, render, setEnabled, setId, stateAttached, stateDetached, update
public ConstantVerifierState()
public ConstantVerifierState(ConstantVerifierState.ErrorType errorType)
errorType
- the mechanism to usepublic void addChecker(java.lang.Object constant, java.lang.Object goodValue)
public void setErrorType(ConstantVerifierState.ErrorType errorType)
public ConstantVerifierState.ErrorType getErrorType()
protected void initialize(Application app)
BaseAppState
initialize
in class BaseAppState
app
- the applicationprotected void cleanup(Application app)
BaseAppState
cleanup
in class BaseAppState
app
- the applicationprotected void onEnable()
BaseAppState
onEnable
in class BaseAppState
protected void onDisable()
BaseAppState
onDisable
in class BaseAppState
public void postRender()
AppState
AppState
is both attached and enabled.postRender
in interface AppState
postRender
in class BaseAppState
protected void checkValues()