CPRecoveryAction Class Reference
Inherits from | NSObject |
Declared in | CPRecoveryAction.h CPRecoveryAction.m |
Tasks
-
recoveryType
The type of recovery action to take. May be CPRecoveryTypeAddToken or CPRecoveryTypeRemoveToken.
property -
additionalToken
The token to insert in the token streem if a CPRecoveryTypeAddToken action is taken.
property -
+ recoveryActionWithAdditionalToken:
Allocates an initialises a new CPRecoveryAction asking the parser to add a new token to the token stream.
-
+ recoveryActionDeletingCurrentToken
Allocates an initialises a new CPRecoveryAction asking the parser to delete an offending token from the token stream.
-
+ recoveryActionStop
Allocates and initialise a new CPRecovery action asking the parser to stop immediately.
-
– initWithAdditionalToken:
Initialises a CPRecoveryAction asking the parser to add a new token to the token stream.
-
– initWithDeleteAction
Initialises a CPRecoveryAction asking the parser to delete an offending token from the token stream.
-
– initWithStopAction
Initialises a CPRecoveryAction asking the parser to stop immediately.
Properties
additionalToken
The token to insert in the token streem if a CPRecoveryTypeAddToken action is taken.
@property (readwrite, retain) CPToken *additionalToken
Discussion
The token to insert in the token streem if a CPRecoveryTypeAddToken action is taken.
Declared In
CPRecoveryAction.h
recoveryType
The type of recovery action to take. May be CPRecoveryTypeAddToken or CPRecoveryTypeRemoveToken.
@property (readwrite, assign) CPRecoveryType recoveryType
Discussion
The type of recovery action to take. May be CPRecoveryTypeAddToken or CPRecoveryTypeRemoveToken.
Declared In
CPRecoveryAction.h
Class Methods
recoveryActionDeletingCurrentToken
Allocates an initialises a new CPRecoveryAction asking the parser to delete an offending token from the token stream.
+ (id)recoveryActionDeletingCurrentToken
Return Value
A new recovery action.
Discussion
Allocates an initialises a new CPRecoveryAction asking the parser to delete an offending token from the token stream.
Declared In
CPRecoveryAction.h
recoveryActionStop
Allocates and initialise a new CPRecovery action asking the parser to stop immediately.
+ (id)recoveryActionStop
Discussion
Allocates and initialise a new CPRecovery action asking the parser to stop immediately.
Declared In
CPRecoveryAction.h
recoveryActionWithAdditionalToken:
Allocates an initialises a new CPRecoveryAction asking the parser to add a new token to the token stream.
+ (id)recoveryActionWithAdditionalToken:(CPToken *)token
Parameters
- token
The token to add to the stream.
Return Value
A new recovery action.
Discussion
Allocates an initialises a new CPRecoveryAction asking the parser to add a new token to the token stream.
Declared In
CPRecoveryAction.h
Instance Methods
initWithAdditionalToken:
Initialises a CPRecoveryAction asking the parser to add a new token to the token stream.
- (id)initWithAdditionalToken:(CPToken *)token
Parameters
- token
The token to add to the stream.
Return Value
An initialised recovery action.
Discussion
Initialises a CPRecoveryAction asking the parser to add a new token to the token stream.
Declared In
CPRecoveryAction.h
initWithDeleteAction
Initialises a CPRecoveryAction asking the parser to delete an offending token from the token stream.
- (id)initWithDeleteAction
Return Value
An initialised recovery action.
Discussion
Initialises a CPRecoveryAction asking the parser to delete an offending token from the token stream.
Declared In
CPRecoveryAction.h