接口 TypeLocator
- 所有已知实现类:
StandardTypeLocator
- 函数接口:
- 这是一个函数接口, 因此可用作 lambda 表达式或方法引用的赋值目标。
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
Find a type by name. The name may or may not be fully qualified (e.g.Stringorjava.lang.String).- 参数:
typeName- the type to be located- 返回:
- the
Classobject representing that type - 抛出:
EvaluationException- if there is a problem finding the type
-