| Package | system.serializers.eden |
| Class | public class ECMAScript |
| Inheritance | ECMAScript GenericParser Object |
| Property | Defined By | ||
|---|---|---|---|
![]() | ch : String
The current character to parse. | GenericParser | |
| comments : String [static]
The comments string representation. | ECMAScript | ||
| localscope : *
The local scope reference. | ECMAScript | ||
![]() | 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 | ||
|---|---|---|---|
ECMAScript(source:String)
Creates a new ECMAScript instance. | ECMAScript | ||
eval():*
Eval the source and returns the serialized object. | ECMAScript | ||
evaluate(source:String):* [static]
Evaluate the specified string source value with the parser. | ECMAScript | ||
![]() | 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 | |
isAuthorized(path:String):Boolean
Indicates if the specified path is authorized in the config.authorized Array. | ECMAScript | ||
isDigitNumber(num:String):Boolean
Indicates if the specified expression is a digit number value. | ECMAScript | ||
isFutureReservedKeyword(identifier:String):Boolean
Indicates if the specified identifier string value is a future reserved keyword. | ECMAScript | ||
isIdentifierPart(c:String):Boolean
Indicates if the identifier is a part. | ECMAScript | ||
isIdentifierStart(c:String):Boolean
Indicates if the specified expression is a start identifier. | ECMAScript | ||
isLineTerminator(c:String):Boolean
Inidcates if the specified character is a line terminator. | ECMAScript | ||
isReservedKeyword(identifier:String):Boolean
Indicates if the specified indentifier is a reserved keyword. | ECMAScript | ||
isValidPath(path:String):Boolean
Indicates if the specified path is valid. | ECMAScript | ||
log(str:String):void
Dispatch a log message. | ECMAScript | ||
![]() | next():String
Returns the next character in the source of this parser. | GenericParser | |
| Method | Defined By | ||
|---|---|---|---|
trace(message:String):void
Hook to catch the global trace function call
| ECMAScript | ||
| Constant | Defined By | ||
|---|---|---|---|
| FUTUR_KEYWORDS : Array [static]
The following are reserved as future keywords by the ECMAScript specification. | ECMAScript | ||
| RESERVED_KEYWORDS : Array [static]
The following are reserved words and may not be used as variables, functions, methods, or object identifiers. | ECMAScript | ||
| comments | property |
public static var comments:StringThe comments string representation.
| localscope | property |
public var localscope:*The local scope reference.
| ECMAScript | () | Constructor |
public function ECMAScript(source:String)Creates a new ECMAScript instance.
Parameterssource:String — The string expression to parse.
|
| debug | () | method |
debug function debug(message:String):voidParameters
message:String |
| eval | () | method |
public function eval():*Eval the source and returns the serialized object.
Returns* |
| evaluate | () | method |
public static function evaluate(source:String):*Evaluate the specified string source value with the parser.
Parameters
source:String |
* |
| isAuthorized | () | method |
public function isAuthorized(path:String):BooleanIndicates if the specified path is authorized in the config.authorized Array.
Parameters
path:String |
Boolean |
| isDigitNumber | () | method |
public function isDigitNumber(num:String):BooleanIndicates if the specified expression is a digit number value.
Parameters
num:String |
Boolean |
| isFutureReservedKeyword | () | method |
public function isFutureReservedKeyword(identifier:String):BooleanIndicates if the specified identifier string value is a future reserved keyword.
Note : Future Reserved Keywords in ECMA-262 spec 7.5.3
Parameters
identifier:String |
Boolean |
| isIdentifierPart | () | method |
public function isIdentifierPart(c:String):BooleanIndicates if the identifier is a part.
Parameters
c:String |
Boolean |
| isIdentifierStart | () | method |
public function isIdentifierStart(c:String):BooleanIndicates if the specified expression is a start identifier.
Parameters
c:String |
Boolean |
See also
| isLineTerminator | () | method |
public function isLineTerminator(c:String):BooleanInidcates if the specified character is a line terminator.
Note: line terminators
"\n" - u000A - LF : Line Feed
"\R" - u000D - CR : Carriage Return
??? - u2028 - LS : Line Separator
??? - u2029 - PS : Paragraphe Separator
Parameters
c:String |
Boolean |
See also
| isReservedKeyword | () | method |
public function isReservedKeyword(identifier:String):BooleanIndicates if the specified indentifier is a reserved keyword. Reserved Keywords see : ECMA-262 spec 7.5.2 p13 (PDF p25/188)
Parameters
identifier:String |
Boolean |
| isValidPath | () | method |
public function isValidPath(path:String):BooleanIndicates if the specified path is valid.
Parameters
path:String |
Boolean |
| log | () | method |
public function log(str:String):voidDispatch a log message. Add a config to either
Parameters
str:String |
| trace | () | method |
protected function trace(message:String):voidHook to catch the global trace function call
Parameters
message:String |
| traceGlobalPool | () | method |
debug function traceGlobalPool():void| tracePool | () | method |
debug function tracePool():void| FUTUR_KEYWORDS | Constant |
public static const FUTUR_KEYWORDS:ArrayThe following are reserved as future keywords by the ECMAScript specification.
| RESERVED_KEYWORDS | Constant |
public static const RESERVED_KEYWORDS:ArrayThe following are reserved words and may not be used as variables, functions, methods, or object identifiers. The following are reserved as existing keywords by the ECMAScript specification: