跳过导航链接
A C E G I L M N O P R S U W 

A

addCompilationCustomizer(CompilationCustomizer) - 类 中的方法com.github.awesome.scripting.groovy.GroovyScriptCompiler
添加编译器自定义配置
asDefault() - 类 中的静态方法com.github.awesome.scripting.groovy.GroovyScriptCompiler
创建默认的 Groovy 编译器对象,在默认情况下,沙箱执行环境和安全拦截器已经注册。

C

CaffeineLocalCache - com.github.awesome.scripting.groovy.cache中的类
适配 Caffeine 作为本地缓存框架
CaffeineLocalCache(Cache<String, GroovyObject>) - 类 的构造器com.github.awesome.scripting.groovy.cache.CaffeineLocalCache
构造方法完成对象初始化
com.github.awesome.scripting.groovy - 程序包 com.github.awesome.scripting.groovy
 
com.github.awesome.scripting.groovy.cache - 程序包 com.github.awesome.scripting.groovy.cache
 
com.github.awesome.scripting.groovy.exception - 程序包 com.github.awesome.scripting.groovy.exception
 
com.github.awesome.scripting.groovy.security - 程序包 com.github.awesome.scripting.groovy.security
 
com.github.awesome.scripting.groovy.util - 程序包 com.github.awesome.scripting.groovy.util
 

E

evaluate(String, String, Object...) - 类 中的方法com.github.awesome.scripting.groovy.GroovyScriptExecutor
执行 Groovy 脚本,返回执行结果,这个方法用于执行非 class 形式的脚本,比如只是单纯的 Groovy 函数片段。
execute(String, String, Object...) - 类 中的方法com.github.awesome.scripting.groovy.GroovyScriptExecutor
执行 Groovy 脚本,返回执行结果,这个方法用于执行 class 形式的脚本。

G

getConfiguration() - 类 中的方法com.github.awesome.scripting.groovy.GroovyScriptCompiler
获取编译器配置对象
getIfPresent(String) - 类 中的方法com.github.awesome.scripting.groovy.cache.CaffeineLocalCache
 
getIfPresent(String) - 类 中的方法com.github.awesome.scripting.groovy.cache.GuavaLocalCache
 
getIfPresent(String) - 接口 中的方法com.github.awesome.scripting.groovy.cache.LocalCache
从缓存中获取指定key的缓存对象,如果缓存不存在,则返回 null
getIfPresent(String) - 类 中的方法com.github.awesome.scripting.groovy.cache.LocalCacheManager
 
getLocalCacheManager() - 类 中的方法com.github.awesome.scripting.groovy.GroovyScriptExecutor
返回本地缓存管理器对象,方便从外部进行缓存框架扩展
GroovyObjectInvokeMethodException - com.github.awesome.scripting.groovy.exception中的异常错误
当使用 GroovyObject.invokeMethod(String, Object) 方法时可能会抛出的异常。
GroovyObjectInvokeMethodException(String, Throwable) - 异常错误 的构造器com.github.awesome.scripting.groovy.exception.GroovyObjectInvokeMethodException
 
GroovyScriptCompiler - com.github.awesome.scripting.groovy中的类
对 Groovy 脚本编译器做一些定制,添加沙箱执行环境,注册安全拦截器。
GroovyScriptCompiler() - 类 的构造器com.github.awesome.scripting.groovy.GroovyScriptCompiler
构造方法完成初始化工作
GroovyScriptExecutor - com.github.awesome.scripting.groovy中的类
Groovy 脚本执行器,对外部开放的核心类以及方法都在这个类中,主要负责解析和执行 Groovy 脚本,并返回对应结果。
GroovyScriptExecutor() - 类 的构造器com.github.awesome.scripting.groovy.GroovyScriptExecutor
默认构造方法,初始化内置的默认配置,包括默认编译器配置、默认缓存配置等。
GroovyScriptParseException - com.github.awesome.scripting.groovy.exception中的异常错误
当 Groovy 脚本解析异常时可能会抛出的异常。
GroovyScriptParseException(String, Throwable) - 异常错误 的构造器com.github.awesome.scripting.groovy.exception.GroovyScriptParseException
 
GuavaLocalCache - com.github.awesome.scripting.groovy.cache中的类
适配 Guava Cache 作为本地缓存框架
GuavaLocalCache(Cache<String, GroovyObject>) - 类 的构造器com.github.awesome.scripting.groovy.cache.GuavaLocalCache
构造方法完成对象初始化

I

InvalidGroovyScriptException - com.github.awesome.scripting.groovy.exception中的异常错误
当 Groovy 脚本无效时抛出的异常,比如脚本内容为 null,为空字符串。
InvalidGroovyScriptException(String) - 异常错误 的构造器com.github.awesome.scripting.groovy.exception.InvalidGroovyScriptException
 

L

LocalCache - com.github.awesome.scripting.groovy.cache中的接口
这是一个本地缓存聚合接口,主要是为了适配底层不同的本地缓存框架,在上层抽象一套统一的缓存操作接口。
LocalCacheManager - com.github.awesome.scripting.groovy.cache中的类
本地缓存管理器,这个类相当于所有缓存框架对外的门面,负责与外部其它类做缓存相关的接口交互。
LocalCacheManager() - 类 的构造器com.github.awesome.scripting.groovy.cache.LocalCacheManager
 

M

md5(String) - 类 中的静态方法com.github.awesome.scripting.groovy.util.MessageDigestUtils
 
md5Hex(String) - 类 中的静态方法com.github.awesome.scripting.groovy.util.MessageDigestUtils
 
MessageDigestUtils - com.github.awesome.scripting.groovy.util中的类
消息摘要计算工具类,内部实现,减少一些外部依赖。

N

newBuilder() - 类 中的静态方法com.github.awesome.scripting.groovy.cache.LocalCacheManager
创建当前类的一个新的对象
newBuilder() - 类 中的静态方法com.github.awesome.scripting.groovy.GroovyScriptExecutor
创建一个默认的 GroovyScriptExecutor 对象。

O

onStaticCall(GroovyInterceptor.Invoker, Class, String, Object...) - 类 中的方法com.github.awesome.scripting.groovy.security.RuntimeClassInterceptor
 
onStaticCall(GroovyInterceptor.Invoker, Class, String, Object...) - 类 中的方法com.github.awesome.scripting.groovy.security.SystemClassInterceptor
 

P

put(String, GroovyObject) - 类 中的方法com.github.awesome.scripting.groovy.cache.CaffeineLocalCache
 
put(String, GroovyObject) - 类 中的方法com.github.awesome.scripting.groovy.cache.GuavaLocalCache
 
put(String, GroovyObject) - 接口 中的方法com.github.awesome.scripting.groovy.cache.LocalCache
将指定key的缓存对象存入缓存,key和缓存对象都不能为 null
put(String, GroovyObject) - 类 中的方法com.github.awesome.scripting.groovy.cache.LocalCacheManager
 

R

registerSecurityInterceptor(GroovyInterceptor) - 类 中的方法com.github.awesome.scripting.groovy.GroovyScriptCompiler
注册安全拦截器,使用这个方法可以在外部扩展添加自己的安全拦截器,例如:限制访问其它系统类或方法。
RuntimeClassInterceptor - com.github.awesome.scripting.groovy.security中的类
Groovy 脚本执行拦截器,提供沙箱环境,禁止调用 Runtime 类的方法,保证脚本执行的安全性。
RuntimeClassInterceptor() - 类 的构造器com.github.awesome.scripting.groovy.security.RuntimeClassInterceptor
 

S

stats() - 类 中的方法com.github.awesome.scripting.groovy.cache.CaffeineLocalCache
 
stats() - 类 中的方法com.github.awesome.scripting.groovy.cache.GuavaLocalCache
 
stats() - 接口 中的方法com.github.awesome.scripting.groovy.cache.LocalCache
获取缓存的统计信息,注意使用这个方法前必须保证开启了缓存框架的统计功能 比如像 Caffeine.recordStats()CacheBuilder.recordStats()
stats() - 类 中的方法com.github.awesome.scripting.groovy.cache.LocalCacheManager
 
SystemClassInterceptor - com.github.awesome.scripting.groovy.security中的类
Groovy 脚本执行拦截器,提供沙箱环境,禁止调用 System 类的一些方法,保证脚本执行的安全性。
SystemClassInterceptor() - 类 的构造器com.github.awesome.scripting.groovy.security.SystemClassInterceptor
 

U

use(LocalCache) - 类 中的方法com.github.awesome.scripting.groovy.cache.LocalCacheManager
决定使用哪个缓存框架,比如 use(new CaffeineLocalCache(Caffeine.newBuilder().build())) use(new GuavaLocalCache(CacheBuilder.newBuilder().build()))
useDefaultCache() - 类 中的方法com.github.awesome.scripting.groovy.cache.LocalCacheManager
使用默认的缓存框架(Caffeine),如果你想使用自定义的缓存框架以及配置,请使用 LocalCacheManager.use(LocalCache) 方法

W

with(GroovyScriptCompiler) - 类 中的方法com.github.awesome.scripting.groovy.GroovyScriptExecutor
设置自定义的 GroovyScriptCompiler 对象。
with(LocalCacheManager) - 类 中的方法com.github.awesome.scripting.groovy.GroovyScriptExecutor
设置自定义的 LocalCacheManager 对象。
A C E G I L M N O P R S U W 
跳过导航链接

Copyright © 2024. All rights reserved.