• 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏吧

Java SimpleValueResolver类的典型用法和代码示例

java 3次浏览

本文整理汇总了Java中org.mvel2.integration.impl.SimpleValueResolver的典型用法代码示例。如果您正苦于以下问题:Java SimpleValueResolver类的具体用法?Java SimpleValueResolver怎么用?Java SimpleValueResolver使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。

SimpleValueResolver类属于org.mvel2.integration.impl包,在下文中一共展示了SimpleValueResolver类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: createFactory

点赞 2

import org.mvel2.integration.impl.SimpleValueResolver; //导入依赖的package包/类
public VariableResolverFactory createFactory() {
  VariableResolver[] resolvers = new VariableResolver[allVars.length];
  for (int i = 0; i < resolvers.length; i++) {
    if (i >= cachedGlobalResolvers.length) {
      resolvers[i] = new SimpleValueResolver(null);
    }
    else {
      resolvers[i] = cachedGlobalResolvers[i];
    }
  }

  return new IndexedVariableResolverFactory(allVars, resolvers);
}
 

开发者ID:osswangxining,
项目名称:mvel-jsr223,
代码行数:14,
代码来源:SharedVariableSpaceModel.java

示例2: createFactory

点赞 2

import org.mvel2.integration.impl.SimpleValueResolver; //导入依赖的package包/类
public VariableResolverFactory createFactory(Object[] vals) {
  VariableResolver[] resolvers = new VariableResolver[allVars.length];
  for (int i = 0; i < resolvers.length; i++) {
    if (i >= vals.length) {
      resolvers[i] = new SimpleValueResolver(null);
    }
    else {
      resolvers[i] = new IndexVariableResolver(i, vals);
    }
  }

  return new IndexedVariableResolverFactory(allVars, resolvers);
}
 

开发者ID:osswangxining,
项目名称:mvel-jsr223,
代码行数:14,
代码来源:SimpleVariableSpaceModel.java

示例3: getVariableResolver

点赞 2

import org.mvel2.integration.impl.SimpleValueResolver; //导入依赖的package包/类
/**
 * {@inheritDoc}
 */
@Override
public VariableResolver getVariableResolver(String name) {
    Object value = name != null ? _propertyResolver.resolveProperty(name) : null;
    return new SimpleValueResolver(value);
}
 

开发者ID:jboss-switchyard,
项目名称:switchyard,
代码行数:9,
代码来源:MVELExpression.java

示例4: getVariableResolver

点赞 2

import org.mvel2.integration.impl.SimpleValueResolver; //导入依赖的package包/类
/** {@inheritDoc} */
@Override
public VariableResolver getVariableResolver(String name) {
    Object value = name != null ? _propertyResolver.resolveProperty(name) : null;
    return new SimpleValueResolver(value);
}
 

开发者ID:jboss-integration,
项目名称:fuse-bxms-integ,
代码行数:7,
代码来源:MVELExpression.java


版权声明:本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系管理员进行删除。
喜欢 (0)