org.stjs.javascript.stjs
Interface STJS


public interface STJS

this is a wrapper around some of the stjs functions provided in the stjs.js javascript.

Author:
acraciun

Method Summary
 Exception exception(Object ex)
          throw an exception of any type in Javascript.
 boolean isEnum(Object obj)
           
<T> T
parseJSON(String json, Class<T> clazz)
          parse the given json String and build the object hierarchy in a typed-manner: i.e it builds the objects using their corresponding constructors.
 

Method Detail

isEnum

boolean isEnum(Object obj)
Parameters:
obj -
Returns:
true if the given object is an STJS enum entry

exception

Exception exception(Object ex)
throw an exception of any type in Javascript. Java allowes and Throwable derived classes to be thrown, but Javascript allows any other type.

Parameters:
ex -

parseJSON

<T> T parseJSON(String json,
                Class<T> clazz)
parse the given json String and build the object hierarchy in a typed-manner: i.e it builds the objects using their corresponding constructors. If the intermediary classes don't have an empty constructor, it will be called with null values for all the parameters.

Parameters:
json -
clazz -
Returns:


Copyright © 2013. All Rights Reserved.