public class JsScopeContext extends Object implements Serializable
JsScopeContext defines the following JsScope contents:
JsScope,
JsStatement,
Serialized Form| Constructor and Description |
|---|
JsScopeContext(String... scopeVariables)
Creates a new
JsScopeContext with the given arguments. |
| Modifier and Type | Method and Description |
|---|---|
JsStatement |
append(CharSequence javascriptCode)
Creates a new
JsStatement and append the given JavaScript code in
this statement. |
JsStatement |
self()
Creates a new
JsStatement and append the "this" keyword in this
statement. |
JsStatement |
var(String variable)
Creates a new
JsStatement and append the given variable name in
this statement. |
public JsScopeContext(String... scopeVariables)
JsScopeContext with the given arguments.public JsStatement self()
JsStatement and append the "this" keyword in this
statement.JsStatement.public JsStatement var(String variable)
JsStatement and append the given variable name in
this statement.JsStatement.public JsStatement append(CharSequence javascriptCode)
JsStatement and append the given JavaScript code in
this statement.JsStatement.Copyright © 2009-2012. All Rights Reserved.