public class StandardELContext extends ELContext
コンストラクターと説明 |
---|
StandardELContext(ELContext context) 別の ELContext から StandardELContext を構築します。 |
StandardELContext(ExpressionFactory factory) スタンドアロン環境のデフォルト ELContext を構築します。 |
修飾子と型 | メソッドと説明 |
---|---|
void | addELResolver(ELResolver cELResolver) コンテキストにカスタム ELResolver を追加します。 |
ObjectSE | getContext(ClassSE<?> key) 指定されたキーに関連付けられたコンテキストオブジェクトを返します。 |
ELResolver | getELResolver() (必要に応じて)構築し、デフォルトの ELResolver を返します。 |
FunctionMapper | getFunctionMapper() (必要に応じて)構築し、デフォルトの FunctionMapper を返します。 |
VariableMapper | getVariableMapper() 構築し(必要な場合)、デフォルトの VariableMapper() を返します。{ |
void | putContext(ClassSE<?> key, ObjectSE contextObject) コンテキストオブジェクトをこの ELContext に関連付けます。 |
addEvaluationListener, convertToType, enterLambdaScope, exitLambdaScope, getEvaluationListeners, getImportHandler, getLambdaArgument, getLocale, isLambdaArgument, isPropertyResolved, notifyAfterEvaluation, notifyBeforeEvaluation, notifyPropertyResolved, setLocale, setPropertyResolved, setPropertyResolved
cloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSE
public StandardELContext(ExpressionFactory factory)
factory
- ExpressionFactorypublic StandardELContext(ELContext context)
context
- ほとんどの場合デリゲートとして機能する ELContextpublic void putContext(ClassSE<?> key, ObjectSE contextObject)
ELContext
ELContext
に関連付けます。ELContext
は、式の評価に関連するコンテキストオブジェクトのコレクションを保持します。これらのコンテキストオブジェクトは ELResolver
によって使用されます。このメソッドは、そのコレクションにコンテキストオブジェクトを追加するために使用されます。
慣例により、contextObject
は key
で指定された型になります。ただし、これは必須ではなく、キーは一意の識別子として厳密に使用されます。
ELContext
の putContext
key
- このコンテキストオブジェクトを識別するために @{link ELResolver} によって使用されるキー。contextObject
- コレクションに追加するコンテキストオブジェクト。public ObjectSE getContext(ClassSE<?> key)
ELContext
ELContext
は、式の評価に関連するコンテキストオブジェクトのコレクションを保持します。これらのコンテキストオブジェクトは ELResolver
によって使用されます。このメソッドは、指定されたキーを持つコンテキストをコレクションから取得するために使用されます。
慣例により、返されるオブジェクトは key
で指定された型になります。ただし、これは必須ではなく、キーは一意の識別子として厳密に使用されます。
ELContext
の getContext
key
- コンテキストオブジェクトをこの ELContext
に関連付けるために使用された一意の識別子。public ELResolver getELResolver()
このコンテキストに関連付けられている ELResolver
を取得します。これは、ELResolver
の順序付きリストで構成される CompositeELResover
です。
BeanNameELResolver
ELResolver
sELResolver
StaticFieldELResolver
MapELResolver
ResourceBundleELResolver
ListELResolver
ArrayELResolver
BeanELResolver
ELContext
の getELResolver
public void addELResolver(ELResolver cELResolver)
cELResolver
- コンテキストに追加される新しい ELResolverpublic FunctionMapper getFunctionMapper()
ELContext
の getFunctionMapper
public VariableMapper getVariableMapper()
ELContext
の getVariableMapper
Copyright © 2018,2020 Eclipse Foundation.
Use is subject to license terms.