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