org.mvel2.MVEL._evalFile()方法的使用及代码示例

x33g5p2x  于2022-01-25 转载在 其他  
字(7.1k)|赞(0)|评价(0)|浏览(248)

本文整理了Java中org.mvel2.MVEL._evalFile()方法的一些代码示例,展示了MVEL._evalFile()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。MVEL._evalFile()方法的具体详情如下:
包路径:org.mvel2.MVEL
类名称:MVEL
方法名:_evalFile

MVEL._evalFile介绍

暂无

代码示例

代码示例来源:origin: org.mvel/mvel2

/**
 * Evaluate a script from a file with injected variables and a context object, then return the resultant value.
 *
 * @param file The file to process
 * @param ctx  The context to evaluate the script against.
 * @param vars Variables to be injected
 * @return The resultant value
 * @throws IOException Exception thrown if there is an IO problem accessing the file.
 */
public static Object evalFile(File file, Object ctx, VariableResolverFactory vars) throws IOException {
 return _evalFile(file, ctx, vars);
}

代码示例来源:origin: io.virtdata/virtdata-lib-realer

/**
 * Evaluate a script from a file with injected variables and a context object, then return the resultant value.
 *
 * @param file The file to process
 * @param ctx  The context to evaluate the script against.
 * @param vars Variables to be injected
 * @return The resultant value
 * @throws IOException Exception thrown if there is an IO problem accessing the file.
 */
public static Object evalFile(File file, Object ctx, VariableResolverFactory vars) throws IOException {
 return _evalFile(file, ctx, vars);
}

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.mvel

/**
 * Evaluate a script from a file with injected variables and a context object, then return the resultant value.
 *
 * @param file The file to process
 * @param ctx  The context to evaluate the script against.
 * @param vars Variables to be injected
 * @return The resultant value
 * @throws IOException Exception thrown if there is an IO problem accessing the file.
 */
public static Object evalFile(File file, Object ctx, VariableResolverFactory vars) throws IOException {
  return _evalFile(file, ctx, vars);
}

代码示例来源:origin: org.mvel/mvel2

public static Object evalFile(File file, String encoding, Object ctx, VariableResolverFactory vars) throws IOException {
 return _evalFile(file, encoding, ctx, vars);
}

代码示例来源:origin: org.mvel/mvel2

private static Object _evalFile(File file, Object ctx, VariableResolverFactory factory) throws IOException {
 return _evalFile(file, null, ctx, factory);
}

代码示例来源:origin: io.virtdata/virtdata-lib-realer

public static Object evalFile(File file, String encoding, Object ctx, VariableResolverFactory vars) throws IOException {
 return _evalFile(file, encoding, ctx, vars);
}

代码示例来源:origin: org.mvel/mvel2

/**
 * Evaluate a script from a file and return the resultant value.
 *
 * @param file The file to process
 * @return The resultant value
 * @throws IOException Exception thrown if there is an IO problem accessing the file.
 */
public static Object evalFile(File file) throws IOException {
 return _evalFile(file, null, new CachedMapVariableResolverFactory(new HashMap()));
}

代码示例来源:origin: org.mvel/mvel2

/**
 * Evaluate a script from a file, against a context object and return the resultant value.
 *
 * @param file The file to process
 * @param ctx  The context to evaluate the script against.
 * @return The resultant value
 * @throws IOException Exception thrown if there is an IO problem accessing the file.
 */
public static Object evalFile(File file, Object ctx) throws IOException {
 return _evalFile(file, ctx, new CachedMapVariableResolverFactory(new HashMap()));
}

代码示例来源:origin: io.virtdata/virtdata-lib-realer

/**
 * Evaluate a script from a file and return the resultant value.
 *
 * @param file The file to process
 * @return The resultant value
 * @throws IOException Exception thrown if there is an IO problem accessing the file.
 */
public static Object evalFile(File file) throws IOException {
 return _evalFile(file, null, new CachedMapVariableResolverFactory(new HashMap()));
}

代码示例来源:origin: io.virtdata/virtdata-lib-realer

/**
 * Evaluate a script from a file, against a context object and return the resultant value.
 *
 * @param file The file to process
 * @param ctx  The context to evaluate the script against.
 * @return The resultant value
 * @throws IOException Exception thrown if there is an IO problem accessing the file.
 */
public static Object evalFile(File file, Object ctx) throws IOException {
 return _evalFile(file, ctx, new CachedMapVariableResolverFactory(new HashMap()));
}

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.mvel

/**
 * Evaluate a script from a file and return the resultant value.
 *
 * @param file The file to process
 * @return The resultant value
 * @throws IOException Exception thrown if there is an IO problem accessing the file.
 */
public static Object evalFile(File file) throws IOException {
  return _evalFile(file, null, new MapVariableResolverFactory(new HashMap()));
}

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.mvel

/**
 * Evaluate a script from a file with injected variables and return the resultant value.
 *
 * @param file The file to process
 * @param vars Variables to be injected
 * @return The resultant value
 * @throws IOException Exception thrown if there is an IO problem accessing the file.
 */
public static Object evalFile(File file, Map<String, Object> vars) throws IOException {
  return _evalFile(file, null, new MapVariableResolverFactory(vars));
}

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.mvel

/**
 * Evaluate a script from a file with injected variables and a context object, then return the resultant value.
 *
 * @param file The file to process
 * @param ctx  The context to evaluate the script against.
 * @param vars Variables to be injected
 * @return The resultant value
 * @throws IOException Exception thrown if there is an IO problem accessing the file.
 */
public static Object evalFile(File file, Object ctx, Map<String, Object> vars) throws IOException {
  return _evalFile(file, ctx, new MapVariableResolverFactory(vars));
}

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.mvel

/**
 * Evaluate a script from a file, against a context object and return the resultant value.
 *
 * @param file The file to process
 * @param ctx  The context to evaluate the script against.
 * @return The resultant value
 * @throws IOException Exception thrown if there is an IO problem accessing the file.
 */
public static Object evalFile(File file, Object ctx) throws IOException {
  return _evalFile(file, ctx, new MapVariableResolverFactory(new HashMap()));
}

代码示例来源:origin: org.mvel/mvel2

public static Object evalFile(File file, String encoding) throws IOException {
 return _evalFile(file, encoding, null, new CachedMapVariableResolverFactory(new HashMap()));
}

代码示例来源:origin: org.mvel/mvel2

public static Object evalFile(File file, String encoding, Object ctx) throws IOException {
 return _evalFile(file, encoding, ctx, new CachedMapVariableResolverFactory(new HashMap()));
}

代码示例来源:origin: io.virtdata/virtdata-lib-realer

public static Object evalFile(File file, String encoding, Object ctx) throws IOException {
 return _evalFile(file, encoding, ctx, new CachedMapVariableResolverFactory(new HashMap()));
}

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.mvel

public static Object evalFile(File file, String encoding, Object ctx, Map<String, Object> vars) throws IOException {
  return _evalFile(file, encoding, ctx, new MapVariableResolverFactory(vars));
}

代码示例来源:origin: org.mvel/mvel2

public static Object evalFile(File file, String encoding, Object ctx, Map<String, Object> vars) throws IOException {
 CachingMapVariableResolverFactory factory = new CachingMapVariableResolverFactory(vars);
 try {
  return _evalFile(file, encoding, ctx, factory);
 }
 finally {
  factory.externalize();
 }
}

代码示例来源:origin: io.virtdata/virtdata-lib-realer

public static Object evalFile(File file, String encoding, Object ctx, Map<String, Object> vars) throws IOException {
 CachingMapVariableResolverFactory factory = new CachingMapVariableResolverFactory(vars);
 try {
  return _evalFile(file, encoding, ctx, factory);
 }
 finally {
  factory.externalize();
 }
}

相关文章