接口 TypeLocator
- 所有已知实现类:
StandardTypeLocator
public interface TypeLocator
Implementers of this interface are expected to be able to locate types. They may use a customClassLoader
and/or deal with common package prefixes (e.g.java.lang
) however they wish.See
StandardTypeLocator
for an example implementation.- 从以下版本开始:
- 3.0
- 作者:
- Andy Clement
方法详细资料
findType
Class<?> findType(String typeName) throws EvaluationException
Find a type by name. The name may or may not be fully qualified (e.g.String
orjava.lang.String
).- 参数:
typeName
- the type to be located- 返回:
- the
Class
object representing that type - 抛出:
EvaluationException
- if there is a problem finding the type