接口 TypeLocator

所有已知实现类:
StandardTypeLocator
函数接口:
这是一个函数接口, 因此可用作 lambda 表达式或方法引用的赋值目标。

@FunctionalInterface public interface TypeLocator
Implementers of this interface are expected to be able to locate types. They may use a custom ClassLoader and/or deal with common package prefixes (e.g. java.lang) however they wish.

See StandardTypeLocator for an example implementation.

从以下版本开始:
4.0
作者:
Andy Clement
  • 方法概要

    修饰符和类型
    方法
    说明
    findType(String typeName)
    Find a type by name.
  • 方法详细资料

    • findType

      Class<?> findType(String typeName) throws EvaluationException
      Find a type by name. The name may or may not be fully qualified (e.g. String or java.lang.String).
      参数:
      typeName - the type to be located
      返回:
      the Class object representing that type
      抛出:
      EvaluationException - if there is a problem finding the type