A B C E G I J L M N P S T V 
All Classes All Packages

A

apply() - Method in interface com.diffplug.jscriptbox.ArityN.Func0
 
apply() - Method in interface com.diffplug.jscriptbox.ArityN.Void0
 
apply(A) - Method in interface com.diffplug.jscriptbox.ArityN.Func1
 
apply(A) - Method in interface com.diffplug.jscriptbox.ArityN.Void1
 
apply(A, B) - Method in interface com.diffplug.jscriptbox.ArityN.Func2
 
apply(A, B) - Method in interface com.diffplug.jscriptbox.ArityN.Void2
 
apply(A, B, C) - Method in interface com.diffplug.jscriptbox.ArityN.Func3
 
apply(A, B, C) - Method in interface com.diffplug.jscriptbox.ArityN.Void3
 
apply(A, B, C, D) - Method in interface com.diffplug.jscriptbox.ArityN.Func4
 
apply(A, B, C, D) - Method in interface com.diffplug.jscriptbox.ArityN.Void4
 
ArityN - Class in com.diffplug.jscriptbox
We'd like to pass lambdas to JScriptBox through a fluent API, which means that we need to describe the function signature in the method name.
ArityN.Func0<R> - Interface in com.diffplug.jscriptbox
 
ArityN.Func1<A,​R> - Interface in com.diffplug.jscriptbox
 
ArityN.Func2<A,​B,​R> - Interface in com.diffplug.jscriptbox
 
ArityN.Func3<A,​B,​C,​R> - Interface in com.diffplug.jscriptbox
 
ArityN.Func4<A,​B,​C,​D,​R> - Interface in com.diffplug.jscriptbox
 
ArityN.Void0 - Interface in com.diffplug.jscriptbox
 
ArityN.Void1<A> - Interface in com.diffplug.jscriptbox
 
ArityN.Void2<A,​B> - Interface in com.diffplug.jscriptbox
 
ArityN.Void3<A,​B,​C> - Interface in com.diffplug.jscriptbox
 
ArityN.Void4<A,​B,​C,​D> - Interface in com.diffplug.jscriptbox
 

B

build(Language) - Method in class com.diffplug.jscriptbox.JScriptBox
Returns a ScriptEngine which has been populated with the values of this box.
buildTyped(Language) - Method in class com.diffplug.jscriptbox.JScriptBox
Returns a TypedScriptEngine which has been populated with the values of this box.

C

cast(Object, Class<T>) - Static method in class com.diffplug.jscriptbox.Check
 
castOpt(Object, Class<T>) - Static method in class com.diffplug.jscriptbox.Check
 
Check - Class in com.diffplug.jscriptbox
Cheap (and performant) knock-off of Guava's Preconditions class.
com.diffplug.jscriptbox - package com.diffplug.jscriptbox
 
com.diffplug.jscriptbox.javascript - package com.diffplug.jscriptbox.javascript
 
create() - Static method in class com.diffplug.jscriptbox.JScriptBox
Creates a new JScriptBox and returns it.

E

ERROR - com.diffplug.jscriptbox.javascript.Nashorn.OnReservedKeyword
 
eval(Reader) - Method in class com.diffplug.jscriptbox.TypedScriptEngine
No return value.
eval(Reader, Class<T>) - Method in class com.diffplug.jscriptbox.TypedScriptEngine
Nulls and wrong class are errors.
eval(String) - Method in class com.diffplug.jscriptbox.TypedScriptEngine
No return value.
eval(String, Class<T>) - Method in class com.diffplug.jscriptbox.TypedScriptEngine
Nulls and wrong class are errors.
evalOpt(Reader, Class<T>) - Method in class com.diffplug.jscriptbox.TypedScriptEngine
Wrong class is an error.
evalOpt(String, Class<T>) - Method in class com.diffplug.jscriptbox.TypedScriptEngine
Wrong class is an error.

G

get(String, Class<T>) - Method in class com.diffplug.jscriptbox.TypedScriptEngine
Nulls and wrong class are errors.
getOpt(String, Class<T>) - Method in class com.diffplug.jscriptbox.TypedScriptEngine
Wrong class is an error.
getRaw() - Method in class com.diffplug.jscriptbox.TypedScriptEngine
The underlying ScriptEngine.

I

initializeEngine(Map<String, Object>) - Method in interface com.diffplug.jscriptbox.Language
 
isReserved(String) - Static method in class com.diffplug.jscriptbox.javascript.Nashorn
Returns true if the given identifier is a JavaScript reserved keyword.
isValidIdentifier(String) - Static method in class com.diffplug.jscriptbox.JScriptBox
Returns true if the given name is a valid Java identifier.

J

JScriptBox - Class in com.diffplug.jscriptbox
API for exposing objects and functions to a scripting environment.
JScriptBox() - Constructor for class com.diffplug.jscriptbox.JScriptBox
 
JScriptBox.NameSetter - Class in com.diffplug.jscriptbox
Fluent API for setting names in this JsHarness.

L

language() - Static method in class com.diffplug.jscriptbox.javascript.Nashorn
Language implementation for javascript using the nashorn engine.
language(Nashorn.OnReservedKeyword) - Static method in class com.diffplug.jscriptbox.javascript.Nashorn
Language implementation for javascript using the given policy for resolving any potential conflicts with reserved keywords.
Language - Interface in com.diffplug.jscriptbox
Interface which converts the result of a JScriptBox into a ScriptEngine.

M

MANGLE - com.diffplug.jscriptbox.javascript.Nashorn.OnReservedKeyword
 

N

NameSetter(String) - Constructor for class com.diffplug.jscriptbox.JScriptBox.NameSetter
 
Nashorn - Class in com.diffplug.jscriptbox.javascript
 
Nashorn() - Constructor for class com.diffplug.jscriptbox.javascript.Nashorn
 
Nashorn.OnReservedKeyword - Enum in com.diffplug.jscriptbox.javascript
Describes a policy for dealing with reserved keywords.

P

put(String, Object) - Method in class com.diffplug.jscriptbox.TypedScriptEngine
Puts the given value into the script engine.

S

set(String) - Method in class com.diffplug.jscriptbox.JScriptBox
Sets a name in the script environment to be a value or a function.
SKIP - com.diffplug.jscriptbox.javascript.Nashorn.OnReservedKeyword
 

T

that(boolean, String, Object) - Static method in class com.diffplug.jscriptbox.Check
If test is false, throws an exception with a message where %0 is replaced with Objects.toString(o0).
that(boolean, String, Object, Object) - Static method in class com.diffplug.jscriptbox.Check
If test is false, throws an exception with a message where %0, %1 is replaced with Objects.toString(o0), Objects.toString(o1).
toFunc0(ArityN.Func0<R>) - Method in class com.diffplug.jscriptbox.JScriptBox.NameSetter
 
toFunc1(ArityN.Func1<A, R>) - Method in class com.diffplug.jscriptbox.JScriptBox.NameSetter
 
toFunc2(ArityN.Func2<A, B, R>) - Method in class com.diffplug.jscriptbox.JScriptBox.NameSetter
 
toFunc3(ArityN.Func3<A, B, C, R>) - Method in class com.diffplug.jscriptbox.JScriptBox.NameSetter
 
toFunc4(ArityN.Func4<A, B, C, D, R>) - Method in class com.diffplug.jscriptbox.JScriptBox.NameSetter
 
toValue(Object) - Method in class com.diffplug.jscriptbox.JScriptBox.NameSetter
 
toVoid0(ArityN.Void0) - Method in class com.diffplug.jscriptbox.JScriptBox.NameSetter
 
toVoid1(ArityN.Void1<A>) - Method in class com.diffplug.jscriptbox.JScriptBox.NameSetter
 
toVoid2(ArityN.Void2<A, B>) - Method in class com.diffplug.jscriptbox.JScriptBox.NameSetter
 
toVoid3(ArityN.Void3<A, B, C>) - Method in class com.diffplug.jscriptbox.JScriptBox.NameSetter
 
toVoid4(ArityN.Void4<A, B, C, D>) - Method in class com.diffplug.jscriptbox.JScriptBox.NameSetter
 
TypedScriptEngine - Class in com.diffplug.jscriptbox
Wraps up a ScriptEngine with a null-checking and type-checking API.
TypedScriptEngine(ScriptEngine) - Constructor for class com.diffplug.jscriptbox.TypedScriptEngine
 

V

valueOf(String) - Static method in enum com.diffplug.jscriptbox.javascript.Nashorn.OnReservedKeyword
Returns the enum constant of this type with the specified name.
values() - Static method in enum com.diffplug.jscriptbox.javascript.Nashorn.OnReservedKeyword
Returns an array containing the constants of this enum type, in the order they are declared.
A B C E G I J L M N P S T V 
All Classes All Packages