public class JSFunction extends ScriptStringBase implements ScriptString
COLON, COMMA, DOT, EMPTY_STRING, EQUALS, FUNCTION, LEFT_CURLY_BRACKET, LEFT_ROUND_BRACKET, LEFT_SQUARE_BRACKET, RIGHT_CURLY_BRACKET, RIGHT_ROUND_BRACKET, RIGHT_SQUARE_BRACKET| Constructor and Description |
|---|
JSFunction(String name,
Object... parameters) |
| Modifier and Type | Method and Description |
|---|---|
JSFunction |
addParameter(Object parameter) |
void |
appendScript(Appendable target)
Append JavaScript code to @link
Appendable |
List<Object> |
getParameters() |
appendScriptToStringBuilder, toScript, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitappendScriptToStringBuilder, toScriptpublic JSFunction addParameter(Object parameter)
public void appendScript(Appendable target) throws IOException
ScriptStringAppendableappendScript in interface ScriptStringIOExceptionCopyright © 2012 JBoss by Red Hat. All Rights Reserved.