PXValueParser Class Reference
Inherits from | PXParserBase |
Declared in | PXValueParser.h |
Overview
PXValueParser is responsible for converting a list of lexemes into a concrete type. Since it is possible that the same sequence of tokens may represent different concrete values, it is up to the caller to designate which type is expected from the lexeme sequence.
Tasks
-
+ lexemesForSource:
Convert a source string into an array of lexemes.
-
– parseAnimationInfos:
Convert the lexeme array to a list of animation infos, each separated by a comma
-
– parseTransitionInfos:
Convert the lexeme array to a list of transition infos, each separated by a comma
-
– parseAnimationDirectionList:
Convert the lexeme array to a list of animation directions, each separated by a comma
-
– parseAnimationFillModeList:
Convert the lexeme array to a list of animation file modes, each separated by a comma
-
– parseAnimationPlayStateList:
Convert the lexeme array to a list of animation play states, each separated by a comma
-
– parseAnimationTimingFunctionList:
Convert the lexeme array to a list of animation timing functions, each separated by a comma
-
– parseBorder:
Convert the lexeme array to border properties
-
– parseBorderRadiusList:
Convert the lexeme array to a list of radii, each represented by a CGSize
-
– parseBorderStyle:
Convert the lexeme array to a border style
-
– parseBorderStyleList:
Convert the lexeme array to a list of border styles
-
– parseColor:
Convert the lexeme array to a color
-
– parseFloat:
Convert the lexeme array to a float
-
– parseFloatList:
Convert the lexeme array to a list of floats, each separated by a comma
-
– parseNameList:
Convert the lexeme array to a list of names, each separated by a comma
-
– parsePaint:
Convert the lexeme array to a paint
-
– parsePaints:
Convert the lexeme array to a list of paints, one for each side.
-
– parseSecondsList:
Convert the lexeme array to a list of seconds, each separatebed by a comma
-
– parseShadow:
Convert the lexeme array to a shadow
-
– parseSize:
Convert the lexeme array to a size
-
– parseSeconds:
Conver the lexeme array to seconds
-
– parseURL:
Convert the lexeme array to a URL
-
– parseInsets:
Convert the lexeme array to a UIEdgeInset
-
– parseOffsets:
Convert the lexeme array to a PXOffsets
Instance Methods
parseAnimationDirectionList:
Convert the lexeme array to a list of animation directions, each separated by a comma
- (NSArray *)parseAnimationDirectionList:(NSArray *)lexemes
Parameters
- lexemes
An array of lexemes to convert
Discussion
Convert the lexeme array to a list of animation directions, each separated by a comma
Declared In
PXValueParser.h
parseAnimationFillModeList:
Convert the lexeme array to a list of animation file modes, each separated by a comma
- (NSArray *)parseAnimationFillModeList:(NSArray *)lexemes
Parameters
- lexemes
An array of lexemes to convert
Discussion
Convert the lexeme array to a list of animation file modes, each separated by a comma
Declared In
PXValueParser.h
parseAnimationInfos:
Convert the lexeme array to a list of animation infos, each separated by a comma
- (NSArray *)parseAnimationInfos:(NSArray *)lexemes
Parameters
- lexemes
An array of lexemes to convert
Discussion
Convert the lexeme array to a list of animation infos, each separated by a comma
Declared In
PXValueParser.h
parseAnimationPlayStateList:
Convert the lexeme array to a list of animation play states, each separated by a comma
- (NSArray *)parseAnimationPlayStateList:(NSArray *)lexemes
Parameters
- lexemes
An array of lexemes to convert
Discussion
Convert the lexeme array to a list of animation play states, each separated by a comma
Declared In
PXValueParser.h
parseAnimationTimingFunctionList:
Convert the lexeme array to a list of animation timing functions, each separated by a comma
- (NSArray *)parseAnimationTimingFunctionList:(NSArray *)lexemes
Parameters
- lexemes
An array of lexemes to convert
Discussion
Convert the lexeme array to a list of animation timing functions, each separated by a comma
Declared In
PXValueParser.h
parseBorder:
Convert the lexeme array to border properties
- (PXBorderInfo *)parseBorder:(NSArray *)lexemes
Discussion
Convert the lexeme array to border properties
Declared In
PXValueParser.h
parseBorderRadiusList:
Convert the lexeme array to a list of radii, each represented by a CGSize
- (NSArray *)parseBorderRadiusList:(NSArray *)lexemes
Discussion
Convert the lexeme array to a list of radii, each represented by a CGSize
Declared In
PXValueParser.h
parseBorderStyle:
Convert the lexeme array to a border style
- (PXBorderStyle)parseBorderStyle:(NSArray *)lexemes
Discussion
Convert the lexeme array to a border style
Declared In
PXValueParser.h
parseBorderStyleList:
Convert the lexeme array to a list of border styles
- (NSArray *)parseBorderStyleList:(NSArray *)lexemes
Discussion
Convert the lexeme array to a list of border styles
Declared In
PXValueParser.h
parseColor:
Convert the lexeme array to a color
- (UIColor *)parseColor:(NSArray *)lexemes
Parameters
- lexemes
An array of lexemes to convert
Discussion
Convert the lexeme array to a color
Declared In
PXValueParser.h
parseFloat:
Convert the lexeme array to a float
- (CGFloat)parseFloat:(NSArray *)lexemes
Parameters
- lexemes
An array of lexemes to convert
Discussion
Convert the lexeme array to a float
Declared In
PXValueParser.h
parseFloatList:
Convert the lexeme array to a list of floats, each separated by a comma
- (NSArray *)parseFloatList:(NSArray *)lexemes
Parameters
- lexemes
An array of lexemes to convert
Discussion
Convert the lexeme array to a list of floats, each separated by a comma
Declared In
PXValueParser.h
parseInsets:
Convert the lexeme array to a UIEdgeInset
- (UIEdgeInsets)parseInsets:(NSArray *)lexemes
Parameters
- lexemes
An array of lexemes to convert
Discussion
Convert the lexeme array to a UIEdgeInset
Declared In
PXValueParser.h
parseNameList:
Convert the lexeme array to a list of names, each separated by a comma
- (NSArray *)parseNameList:(NSArray *)lexemes
Parameters
- lexeme
An Array of lexemes to convert
Discussion
Convert the lexeme array to a list of names, each separated by a comma
Declared In
PXValueParser.h
parseOffsets:
Convert the lexeme array to a PXOffsets
- (PXOffsets *)parseOffsets:(NSArray *)lexemes
Parameters
- lexemes
An array of lexemes to convert
Discussion
Convert the lexeme array to a PXOffsets
Declared In
PXValueParser.h
parsePaint:
Convert the lexeme array to a paint
- (id<PXPaint>)parsePaint:(NSArray *)lexemes
Parameters
- lexemes
An array of lexemes to convert
Discussion
Convert the lexeme array to a paint
Declared In
PXValueParser.h
parsePaints:
Convert the lexeme array to a list of paints, one for each side.
- (NSArray *)parsePaints:(NSArray *)lexemes
Discussion
Convert the lexeme array to a list of paints, one for each side.
Declared In
PXValueParser.h
parseSeconds:
Conver the lexeme array to seconds
- (CGFloat)parseSeconds:(NSArray *)lexemes
Parameters
- lexemes
An Array of lexemes to convert
Discussion
Conver the lexeme array to seconds
Declared In
PXValueParser.h
parseSecondsList:
Convert the lexeme array to a list of seconds, each separatebed by a comma
- (NSArray *)parseSecondsList:(NSArray *)lexemes
Parameters
- lexemes
An array of lexemes to convert
Discussion
Convert the lexeme array to a list of seconds, each separatebed by a comma
Declared In
PXValueParser.h
parseShadow:
Convert the lexeme array to a shadow
- (id<PXShadowPaint>)parseShadow:(NSArray *)lexemes
Parameters
- lexemes
An array of lexemes to convert
Discussion
Convert the lexeme array to a shadow
Declared In
PXValueParser.h
parseSize:
Convert the lexeme array to a size
- (CGSize)parseSize:(NSArray *)lexemes
Parameters
- lexemes
An array of lexemes to convert
Discussion
Convert the lexeme array to a size
Declared In
PXValueParser.h
parseTransitionInfos:
Convert the lexeme array to a list of transition infos, each separated by a comma
- (NSArray *)parseTransitionInfos:(NSArray *)lexemes
Parameters
- lexemes
An array of lexemes to convert
Discussion
Convert the lexeme array to a list of transition infos, each separated by a comma
Declared In
PXValueParser.h