CPQuotedToken Class Reference
Inherits from | CPToken : NSObject |
Declared in | CPQuotedToken.h CPQuotedToken.m |
Overview
The CPQuotedToken class reperesents a quoted literal appearing in the input.
These tokens return the name specified on their creation as their name.
Tasks
Creating and Initialising a Quoted Literal Token
-
+ content:quotedWith:name:
Creates a quoted literal token with the quoted literal found in the input.
-
– initWithContent:quoteType:name:
Initialises a quoted literal token with the quoted literal found in the input.
Configuring a Quoted Literal Token
-
content
The content found inside the quoted literal.
property -
quoteType
The quote used to begin the quoted literal.
property
Other Methods
-
– name
The token name.
Properties
Class Methods
content:quotedWith:name:
Creates a quoted literal token with the quoted literal found in the input.
+ (id)content:(NSString *)content quotedWith:(NSString *)startQuote name:(NSString *)name
Parameters
- content
The string found inside the quotes.
- startQuote
The symbol used to quote the content.
- name
The name to use for this token.
Return Value
Returns a CPQuotedToken representing the specified quoted literal.
Discussion
Creates a quoted literal token with the quoted literal found in the input.
See Also
Declared In
CPQuotedToken.h
Instance Methods
initWithContent:quoteType:name:
Initialises a quoted literal token with the quoted literal found in the input.
- (id)initWithContent:(NSString *)content quoteType:(NSString *)startQuote name:(NSString *)name
Parameters
- content
The string found inside the quotes.
- startQuote
The symbol used to quote the content.
- name
The name to use for this token.
Return Value
Returns a CPQuotedToken representing the specified quoted literal.
Discussion
Initialises a quoted literal token with the quoted literal found in the input.
See Also
Declared In
CPQuotedToken.h