| Package | system.text.parser |
| Class | public class GenericParser |
| Inheritance | GenericParser Object |
| Subclasses | ECMAScript, SRTParser |
| Property | Defined 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 | ||
| Method | Defined 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 | ||
| ch | property |
public var ch:StringThe current character to parse.
| pos | property |
public var pos:uintThe current parser position in the string expression to parse.
| source | property |
source:String [read-only] Indicates the String source representation of the parser (read-only).
public function get source():String| GenericParser | () | Constructor |
public function GenericParser(source:String)Creates a new GenericParser instance.
Parameterssource:String — The string expression to parse.
|
| getChar | () | method |
public function getChar():StringReturns the current char in the parse process.
ReturnsString — the current char in the parse process.
|
| getCharAt | () | method |
public function getCharAt(pos:uint):StringReturns the char in the source to parse at the specified position.
Parameters
pos:uint |
String — the char in the source to parse at the specified position.
|
| hasMoreChar | () | method |
public function hasMoreChar():BooleanIndicates if the source parser has more char.
ReturnsBoolean |
| next | () | method |
public function next():StringReturns the next character in the source of this parser.
ReturnsString — the next character in the source of this parser.
|