| Package | Description |
|---|---|
| org.stjs.javascript | |
| org.stjs.javascript.stjs |
| Modifier and Type | Method and Description |
|---|---|
static <K extends String,V> |
JSCollections.$map() |
static <K extends String,V> |
JSCollections.$map(K k1,
V v1) |
static <K extends String,V> |
JSCollections.$map(K k1,
V v1,
K k2,
V v2) |
static <K extends String,V> |
JSCollections.$map(K k1,
V v1,
K k2,
V v2,
K k3,
V v3) |
static <K extends String,V> |
JSCollections.$map(K k1,
V v1,
K k2,
V v2,
K k3,
V v3,
K k4,
V v4) |
static <K extends String,V> |
JSCollections.$map(K k1,
V v1,
K k2,
V v2,
K k3,
V v3,
K k4,
V v4,
K k5,
V v5) |
static <K extends String,V> |
JSCollections.$map(K k1,
V v1,
K k2,
V v2,
K k3,
V v3,
K k4,
V v4,
K k5,
V v5,
K k6,
Object... morePairs) |
static Map<String,Object> |
JSObjectAdapter.$properties(Object obj) |
static Map<String,Object> |
JSObjectAdapter.$prototype(Object obj) |
static <KK extends String,VV> |
Map.copyOf(Map<KK,VV> map)
constructors used on the server side only.
|
static <KK extends String,VV> |
Map.wrap(Map<KK,VV> map)
constructors used on the server side only.
|
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
JSObjectAdapter.$object(Map<String,Object> properties) |
| Modifier and Type | Method and Description |
|---|---|
Map<String,Map<String,Map<String,Object>>> |
STJS.getAnnotations(Class<?> clazz)
return the annotations of the given type in the format:
|
Map<String,Object> |
STJS.getMemberAnnotation(Class<?> clazz,
String memberName,
String annTypeName) |
Map<String,Object> |
STJS.getParameterAnnotation(Class<?> clazz,
String methodName,
int idx,
String annTypeName) |
Map<String,Object> |
STJS.getTypeAnnotation(Class<?> clazz,
String annTypeName) |
<T> Map<String,? extends Object> |
STJS.stringify(T obj,
Class<T> cls)
using the type description it converts the fields of the object in strings or other primitve types to be able to send the object via AJAX
for example.You need to include stjs-ext.js
|
| Modifier and Type | Method and Description |
|---|---|
Map<String,Map<String,Map<String,Object>>> |
STJS.getAnnotations(Class<?> clazz)
return the annotations of the given type in the format:
|
Map<String,Map<String,Map<String,Object>>> |
STJS.getAnnotations(Class<?> clazz)
return the annotations of the given type in the format:
|
| Modifier and Type | Method and Description |
|---|---|
<T> T |
STJS.typefy(Map<String,? extends Object> obj,
Class<T> cls)
using the type description, it converts a POJO (i.e arrived as JSON in your client) to an object of the given type, transforming
recursively the fields.
|
Copyright © 2015. All Rights Reserved.