static void parse ( String inString , IContext context , INode parent ) { List < String > tokens = getCommaTokens ( inString ) ; for ( String token : tokens ) { int isFunction = token . indexOf ( OPEN_PARENTHESIS ) ; if ( isFunction >= 0 ) { String funcName = token . substring ( 0 , isFunction ) ; INode newParent = addChild ( parent , context , funcName ) ; String arguments = token . substring ( isFunction + 1 , token . length ( ) - 1 ) ; parse ( arguments , context , newParent ) ; } else { addChild ( parent , context , token ) ; } } }
Parses the string to get the children of the given node .