public interface IScriptScope
| Modifier and Type | Method and Description |
|---|---|
IScriptScope |
addObjectProperty(String name)
Create a new object property inside this one, with the specified name.
|
<T> T |
eval(Class<T> targetType,
Reader r,
String sourceFileNameIndicator) |
<T> T |
eval(Class<T> targetType,
String expression,
String sourceFileNameIndicator) |
<T> T |
getAdapter(Class<T> clz) |
<T> List<T> |
getProperties(Class<T> filterClass)
Get all properties of this object.
|
<T> T |
getValue(Class<T> valueClass,
String name)
Return the value for the specified variable in this scope.
|
IScriptScope |
newScope()
Create a new writable scope that has this scope as the "delegate".
|
<T> void |
put(String name,
T instance)
Put a simple value inside the scope.
|
@Nullable <T> T getValue(@Nonnull Class<T> valueClass, @Nonnull String name)
name - <T> void put(@Nonnull String name, @Nullable T instance)
name - instance - @Nonnull <T> List<T> getProperties(@Nonnull Class<T> filterClass)
filterClass - @Nonnull IScriptScope addObjectProperty(@Nonnull String name)
name - @Nullable <T> T eval(@Nonnull Class<T> targetType, @Nonnull Reader r, @Nonnull String sourceFileNameIndicator) throws Exception
Exception@Nullable <T> T eval(@Nonnull Class<T> targetType, @Nonnull String expression, @Nonnull String sourceFileNameIndicator) throws Exception
Exception@Nonnull IScriptScope newScope()
Copyright © 2017 etc.to. All rights reserved.