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, updatepublic 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)
BaseAppStateinitialize in class BaseAppStateapp - the applicationprotected void cleanup(Application app)
BaseAppStatecleanup in class BaseAppStateapp - the applicationprotected void onEnable()
BaseAppStateonEnable in class BaseAppStateprotected void onDisable()
BaseAppStateonDisable in class BaseAppStatepublic void postRender()
AppStateAppState is both attached and enabled.postRender in interface AppStatepostRender in class BaseAppStateprotected void checkValues()