|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
javax.el Class FunctionMapper
java.lang.Object javax.el.FunctionMapper
public abstract class FunctionMapper
- extends Object
在 EL 函数名称和方法之间映射的接口。
FunctionMapper
将 ${prefix:name()}
样式函数映射到可以执行该函数的静态方法。
since | JSP 2.1 |
The interface to a map between EL function names and methods.
A FunctionMapper
maps ${prefix:name()}
style functions to a static method that can execute that function.
- Since:
- JSP 2.1
Constructor Summary | |
---|---|
FunctionMapper()
|
Method Summary | |
---|---|
abstract Method |
resolveFunction(String prefix,
String localName)
Resolves the specified prefix and local name into a java.lang.Method . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public
FunctionMapper()
英文文档:
FunctionMapper
public FunctionMapper()
Method Detail |
---|
abstract public Method
resolveFunction(String prefix, String localName)
将指定的前缀和本地名称解析为 java.lang.Method
。
如果找不到与给定前缀和本地名称匹配的函数,则返回 null
。
prefix |
函数前缀;如果没有前缀,则为 ""。例如,${fn:method()} 中的 "fn" 或 ${method()} 中的 "" 。 |
localName |
函数的短名称。例如,${fn:method()} 中的 "method" 。 |
return |
要调用的静态方法;如果找不到匹配的方法,则返回 null 。 |
resolveFunction
public abstract Method resolveFunction(String prefix, String localName)
- Resolves the specified prefix and local name into a
java.lang.Method
.Returns
null
if no function could be found that matches the given prefix and local name. - Parameters:
prefix
- the prefix of the function, or "" if no prefix. For example,"fn"
in${fn:method()}
, or""
in${method()}
.localName
- the short name of the function. For example,"method"
in${fn:method()}
.- Returns:
- the static method to invoke, or
null
if no match was found.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Submit a bug or feature
Copyright 2007 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.
PS : 未经我党受权你也可自由散发此文档。 如有任何错误请自行修正;若因此而造成任何损失请直接找人民主席,请勿与本人联系。谢谢!