Uiinfrastructure API Docs  
 

JavascriptParser Members

JavascriptParser overview

Protected Static Fields

iconiconCLOSE_BRACKET 
iconiconCLOSE_CURLY_BRACKET 
iconiconCOLON 
iconiconCOMMA 
iconiconESCAPE 
iconiconOPEN_BRACKET 
iconiconOPEN_CURLY_BRACKET 
iconiconQUOTE 
iconiconSINGLE_QUOTE 

Public Instance Constructors

icon JavascriptParser Constructor Initializes a new instance of the JavascriptParser class.

Public Instance Methods

iconEquals (inherited from Object)Determines whether the specified Object is equal to the current Object.
iconGetHashCode (inherited from Object)Serves as a hash function for a particular type. GetHashCode is suitable for use in hashing algorithms and data structures like a hash table.
iconGetRootArray 
iconGetRootObject 
iconGetType (inherited from Object)Gets the Type of the current instance.
iconIsRootArray ACCESSORS *
iconIsRootObject 
iconParseJSString Parses Javascript string and stores a Java representation
iconToString (inherited from Object)Returns a String that represents the current Object.

Protected Instance Fields

iconm_rootList 
iconm_rootObj 

Protected Instance Methods

iconFinalize (inherited from Object)Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
iconGetEscapedTokenAndEndQuote This gets an escaped quoted sequence, starting immediately after the opening quote. It reads the end quote, but does not return it.
iconGetNextToken 
iconGetToken 
iconIsJSComment Check for Javascript comments and advance the tokenizer until end of comment
iconIsNewArray 
iconIsNewJSObject 
iconIsWhiteSpace Checks if a token is a single piece of whitespace.
iconMemberwiseClone (inherited from Object)Creates a shallow copy of the current Object.
iconParseJSArray Returns a javascript array in an XPArraList
iconParseJSObject Parse Javascript object and create hashtable representation Expects the object begin curly bracket ("{") to have been already processed in the string tokenizer
iconParseJSOMemberLabel Gets the name of a javascript object member Expects the next token of the string tokenizer to be the double quote around the label. This method will also consume the ending double quote and following colon.
iconParseJSOMemberValue Parses JS Object member value Expects next value in tokenizer to be the first character of the value. Ex: quote for strings, bracket for array, or number
iconParseJSSimpleValue 
iconSkipToken Skip the next token if it matches the expected token.

See Also

JavascriptParser Class | com.plumtree.uiinfrastructure.utils Namespace