本文整理汇总了Java中bsh.Capabilities.Unavailable类的典型用法代码示例。如果您正苦于以下问题:Java Unavailable类的具体用法?Java Unavailable怎么用?Java Unavailable使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Unavailable类属于bsh.Capabilities包,在下文中一共展示了Unavailable类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: getReflectManager
import bsh.Capabilities.Unavailable; //导入依赖的package包/类
/**
Return the singleton bsh ReflectManager.
@throws Unavailable
*/
public static ReflectManager getReflectManager()
throws Unavailable
{
if ( rfm == null )
{
Class clas;
try {
clas = Class.forName( "bsh.reflect.ReflectManagerImpl" );
rfm = (ReflectManager)clas.newInstance();
} catch ( Exception e ) {
throw new Unavailable("Reflect Manager unavailable: "+e);
}
}
return rfm;
}
开发者ID:ajmath,项目名称:VASSAL-src,代码行数:21,代码来源:ReflectManager.java
示例2: getClassGenerator
import bsh.Capabilities.Unavailable; //导入依赖的package包/类
public static ClassGenerator getClassGenerator()
throws UtilEvalError
{
if ( cg == null )
{
try {
Class clas = Class.forName( "bsh.ClassGeneratorImpl" );
cg = (ClassGenerator)clas.newInstance();
} catch ( Exception e ) {
throw new Unavailable("ClassGenerator unavailable: "+e);
}
}
return cg;
}
开发者ID:ajmath,项目名称:VASSAL-src,代码行数:16,代码来源:ClassGenerator.java
示例3: getClassGenerator
import bsh.Capabilities.Unavailable; //导入依赖的package包/类
public static ClassGenerator getClassGenerator() throws UtilEvalError {
if (cg == null) {
try {
Class<?> clas = Class.forName("bsh.ClassGeneratorImpl");
cg = (ClassGenerator) clas.newInstance();
} catch (Exception e) {
throw new Unavailable("ClassGenerator unavailable: " + e);
}
}
return cg;
}
开发者ID:sing-group,项目名称:aibench-project,代码行数:13,代码来源:ClassGenerator.java
示例4: getReflectManager
import bsh.Capabilities.Unavailable; //导入依赖的package包/类
/**
* Return the singleton bsh ReflectManager.
*
* @return the singleton bsh ReflectManager.
* @throws Unavailable if the manager is unavailable.
*/
public static ReflectManager getReflectManager() throws Unavailable {
if (rfm == null) {
Class clas;
try {
clas = Class.forName("bsh.reflect.ReflectManagerImpl");
rfm = (ReflectManager) clas.newInstance();
} catch (Exception e) {
throw new Unavailable("Reflect Manager unavailable: " + e);
}
}
return rfm;
}
开发者ID:sing-group,项目名称:aibench-project,代码行数:20,代码来源:ReflectManager.java
示例5: RMSetAccessible
import bsh.Capabilities.Unavailable; //导入依赖的package包/类
/**
Reflect Manager Set Accessible.
Convenience method to invoke the reflect manager.
@throws Unavailable
*/
public static boolean RMSetAccessible( Object obj )
throws Unavailable
{
return getReflectManager().setAccessible( obj );
}
开发者ID:ajmath,项目名称:VASSAL-src,代码行数:11,代码来源:ReflectManager.java
示例6: RMSetAccessible
import bsh.Capabilities.Unavailable; //导入依赖的package包/类
/**
* Reflect Manager Set Accessible. Convenience method to invoke the reflect
* manager.
*
* @param obj the object to set accessible.
* @return {@code true} if the object was accessible or {@code false} if it was not.
* @throws Unavailable if the manager is unavailable.
*/
public static boolean RMSetAccessible(Object obj) throws Unavailable {
return getReflectManager().setAccessible(obj);
}
开发者ID:sing-group,项目名称:aibench-project,代码行数:12,代码来源:ReflectManager.java
注:本文中的bsh.Capabilities.Unavailable类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论