Packagesystem.text.parser
Classpublic class GenericParser
InheritanceGenericParser Inheritance Object
Subclasses ECMAScript, SRTParser

The GenericParser static tool class.



Public Properties
 PropertyDefined By
  ch : String
The current character to parse.
GenericParser
  pos : uint
The current parser position in the string expression to parse.
GenericParser
  source : String
[read-only] Indicates the String source representation of the parser (read-only).
GenericParser
Public Methods
 MethodDefined By
  
GenericParser(source:String)
Creates a new GenericParser instance.
GenericParser
  
getChar():String
Returns the current char in the parse process.
GenericParser
  
getCharAt(pos:uint):String
Returns the char in the source to parse at the specified position.
GenericParser
  
hasMoreChar():Boolean
Indicates if the source parser has more char.
GenericParser
  
next():String
Returns the next character in the source of this parser.
GenericParser
Property Detail
chproperty
public var ch:String

The current character to parse.

posproperty 
public var pos:uint

The current parser position in the string expression to parse.

sourceproperty 
source:String  [read-only]

Indicates the String source representation of the parser (read-only).


Implementation
    public function get source():String
Constructor Detail
GenericParser()Constructor
public function GenericParser(source:String)

Creates a new GenericParser instance.

Parameters
source:String — The string expression to parse.
Method Detail
getChar()method
public function getChar():String

Returns the current char in the parse process.

Returns
String — the current char in the parse process.
getCharAt()method 
public function getCharAt(pos:uint):String

Returns the char in the source to parse at the specified position.

Parameters

pos:uint

Returns
String — the char in the source to parse at the specified position.
hasMoreChar()method 
public function hasMoreChar():Boolean

Indicates if the source parser has more char.

Returns
Boolean
next()method 
public function next():String

Returns the next character in the source of this parser.

Returns
String — the next character in the source of this parser.