org.odlabs.wiquery.core.javascript
Class JsScopeContext

java.lang.Object
  extended by org.odlabs.wiquery.core.javascript.JsScopeContext
All Implemented Interfaces:
Serializable

public class JsScopeContext
extends Object
implements Serializable

$Id$

JsScopeContext defines the following JsScope contents:

Since:
0.7
Author:
Lionel Armanet
See Also:
JsScope, JsStatement, Serialized Form

Constructor Summary
JsScopeContext(String... scopeVariables)
          Creates a new JsScopeContext with the given arguments.
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JsScopeContext

public JsScopeContext(String... scopeVariables)
Creates a new JsScopeContext with the given arguments.

Method Detail

self

public JsStatement self()
Creates a new JsStatement and append the "this" keyword in this statement.

Returns:
the created JsStatement.

var

public JsStatement var(String variable)
Creates a new JsStatement and append the given variable name in this statement.

Returns:
the created JsStatement.

append

public JsStatement append(CharSequence javascriptCode)
Creates a new JsStatement and append the given JavaScript code in this statement.

Returns:
the created JsStatement.


Copyright © 2012. All Rights Reserved.