FileDocCategorySizeDatePackage
JSFunctionParametersParser.javaAPI DocAzureus 3.0.3.42047Thu Mar 01 23:47:30 GMT 2007com.aelitis.azureus.util

JSFunctionParametersParser

public class JSFunctionParametersParser extends Object

Fields Summary
private ParserState
currentState
private String
params
private List
parameters
private StringBuffer
currentParameter
Constructors Summary
private JSFunctionParametersParser(String params)

		this.params = params;
	
Methods Summary
private voidparse()

		parameters = new ArrayList();
		currentState = new ParserStateInList(null);
		currentParameter = new StringBuffer();

		for (int i = 0; i < params.length(); i++) {
			char c = params.charAt(i);
			currentState.processCharacter(c);
		}
		parameters.add(currentParameter.toString());
	
public static java.util.Listparse(java.lang.String params)

		JSFunctionParametersParser parser = new JSFunctionParametersParser(params);
		parser.parse();
		return parser.parameters;