Class Index | File Index

Classes


Namespace RXBuild.Utils

RXBuild.Utils is a namespace to group utility functions written for the RXBuild project.
Defined in: utils.js.

Namespace Summary
Constructor Attributes Constructor Name and Description
 
Method Summary
Method Attributes Method Name and Description
<static>  
RXBuild.Utils.buildRegexpFromTokens(tokens, noncapturing, caseinsensitive)
Builds an optimised regular expression to parse a list of tokens.
<static>  
RXBuild.Utils.createDelegate(object, method)
Creates a callable delegate by using a closure to store the objects instance
<static>  
RXBuild.Utils.getObjectDesc(o, skip, includeFunctions, i)
Generates a recursive print out of the provided object (o), skipping any properties contained in skip, and functions (unless requested).
<static>  
RXBuild.Utils.getXMLInnerText(item)
Recreates and returns all the text in all nodes under the provided item
<static>  
RXBuild.Utils.JoinArrays()
Tries really hard to build a flat array with all parameters If the first argument is an array, it will be the one to which the other items are added.
Namespace Detail
RXBuild.Utils
Method Detail
<static> {String} RXBuild.Utils.buildRegexpFromTokens(tokens, noncapturing, caseinsensitive)
Builds an optimised regular expression to parse a list of tokens.
Parameters:
{String[]} tokens
An array of tokens to match
{Boolean} noncapturing
If set to true, generated groups are non-capturing (ie: (?:))
{Boolean} caseinsensitive
If set to true, tokens are considered case insensitive
Returns:
{String} The regular expression that would match those tokens

<static> {Function} RXBuild.Utils.createDelegate(object, method)
Creates a callable delegate by using a closure to store the objects instance
Parameters:
{object} object
The scope for the callback.
{Function} method
The method to call

<static> {String} RXBuild.Utils.getObjectDesc(o, skip, includeFunctions, i)
Generates a recursive print out of the provided object (o), skipping any properties contained in skip, and functions (unless requested).
Parameters:
{object} o
The object to explore.
{String[]} skip
A list of names of properties to exclude from the result
{boolean} includeFunctions
If set to true, function names are printed out too
{String} i
Initial indent string. (you can set to null)

<static> {String} RXBuild.Utils.getXMLInnerText(item)
Recreates and returns all the text in all nodes under the provided item
Parameters:
{XMLNodeList|XMLNode|Array} item
The root item whos content we want
Returns:
{String} All text content in the provided item

<static> {Array} RXBuild.Utils.JoinArrays()
Tries really hard to build a flat array with all parameters If the first argument is an array, it will be the one to which the other items are added. You can call JoinArrays(null, ...) to make sure you get a new array. It returns null if the result would have been empty.
Parameters:
...
{Array} A list of arrays.

Documentation generated by JsDoc Toolkit 2.0.2 on Mon May 02 2016 20:27:57 GMT+0200 (CEST)