public class ConstantVerifierState extends BaseAppState
Modifier and Type | Class and Description |
---|---|
static class |
ConstantVerifierState.ErrorType |
Modifier and Type | Field and Description |
---|---|
static com.jme3.app.state.ConstantVerifierState.Checker[] |
DEFAULT_CHECKS |
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.
|
ConstantVerifierState(ConstantVerifierState.ErrorType errorType,
com.jme3.app.state.ConstantVerifierState.Checker... checkers)
Creates a verifier app state that will check all of the specified
checks and report errors using the specified error type.
|
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.
|
protected SafeArrayList<com.jme3.app.state.ConstantVerifierState.Checker> |
getCheckers() |
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 static final com.jme3.app.state.ConstantVerifierState.Checker[] DEFAULT_CHECKS
public ConstantVerifierState()
public ConstantVerifierState(ConstantVerifierState.ErrorType errorType)
public ConstantVerifierState(ConstantVerifierState.ErrorType errorType, com.jme3.app.state.ConstantVerifierState.Checker... checkers)
public void addChecker(java.lang.Object constant, java.lang.Object goodValue)
public void setErrorType(ConstantVerifierState.ErrorType errorType)
public ConstantVerifierState.ErrorType getErrorType()
protected SafeArrayList<com.jme3.app.state.ConstantVerifierState.Checker> getCheckers()
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()