| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private final boolean | |
| private final String | |
| private final Location | |
| private final String | |
| private final String | |
| private String | |
| private Tag | |
| private final String |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: boolean valueFaceletContext to use ctx)Implements abstract jakarta.
If literal,return |
| public int | Returns: int valueFaceletContext to use ctx)Implements abstract jakarta. If literal, call |
| public String | Returns: local name of this attributeImplements abstract jakarta. Local name of this attribute |
| public Location | Returns: the TagAttributeImpl's locationImplements abstract jakarta. The location of this attribute in the FaceletContext |
| public MethodExpression | Returns: a MethodExpression instanceFaceletContext to use ctx, Class<T> expected return type type, Class<T>[] parameter type paramTypes)Implements abstract jakarta. Create a MethodExpression, using this attribute's value as the expression String. |
| public String | Returns: resolved NamespaceImplements abstract jakarta. The resolved Namespace for this attribute |
| public Object | Returns: Object representation of this attribute's valueFaceletContext to use ctx)Implements abstract jakarta. Delegates to getObject with Object.class as a param |
| public Object | Returns: Object value of this attributeFaceletContext to use ctx, Class<T> expected return type type)Implements abstract jakarta. If literal, simply coerce our String literal value using an ExpressionFactory, otherwise create a ValueExpression and evaluate it. |
| public String | Returns: the qualified name for this attributeImplements abstract jakarta. The qualified name for this attribute |
| public Tag | getTag()
Overrides jakarta. A reference to the Tag for which this class represents the attributes. |
| public String | Returns: literal valueImplements abstract jakarta. Return the literal value of this attribute |
| public String | Returns: String value of this attributeFaceletContext to use ctx)Implements abstract jakarta. If literal, then return our value, otherwise delegate to getObject, passing String.class. |
| public ValueExpression | Returns: ValueExpression instanceFaceletContext to use ctx, Class<T> expected return type type)Implements abstract jakarta. Create a ValueExpression, using this attribute's literal value and the passed expected type. |
| public ValueExpression | |
| public boolean | Returns: true if this attribute is literalImplements abstract jakarta. If this TagAttributeImpl is literal (not #{..} or ${..}) |
| public void | setTag(Tag
the tag we represent. tag)Overrides jakarta. Set a reference to the Tag for which this class represents the attributes. |
| public String |
| literal | back to summary |
|---|---|
| private final boolean literal | |
| localName | back to summary |
|---|---|
| private final String localName | |
| location | back to summary |
|---|---|
| private final Location location | |
| namespace | back to summary |
|---|---|
| private final String namespace | |
| qName | back to summary |
|---|---|
| private final String qName | |
| string | back to summary |
|---|---|
| private String string | |
| tag | back to summary |
|---|---|
| private Tag tag | |
| value | back to summary |
|---|---|
| private final String value | |
| TagAttributeImpl | back to summary |
|---|---|
| public TagAttributeImpl() | |
| TagAttributeImpl | back to summary |
|---|---|
| public TagAttributeImpl(Location location, String ns, String localName, String qName, String value) | |
| getBoolean | back to summary |
|---|---|
| public boolean getBoolean(FaceletContext ctx) Implements abstract jakarta.
If literal,return
| |
| getInt | back to summary |
|---|---|
| public int getInt(FaceletContext ctx) Implements abstract jakarta. If literal, call
| |
| getLocalName | back to summary |
|---|---|
| public String getLocalName() Implements abstract jakarta. Local name of this attribute | |
| getLocation | back to summary |
|---|---|
| public Location getLocation() Implements abstract jakarta. The location of this attribute in the FaceletContext | |
| getMethodExpression | back to summary |
|---|---|
| public MethodExpression getMethodExpression(FaceletContext ctx, Class<T> type, Class<T>[] paramTypes) Implements abstract jakarta. Create a MethodExpression, using this attribute's value as the expression String.
| |
| getNamespace | back to summary |
|---|---|
| public String getNamespace() Implements abstract jakarta. The resolved Namespace for this attribute | |
| getObject | back to summary |
|---|---|
| public Object getObject(FaceletContext ctx) Implements abstract jakarta. Delegates to getObject with Object.class as a param
| |
| getObject | back to summary |
|---|---|
| public Object getObject(FaceletContext ctx, Class<T> type) Implements abstract jakarta. If literal, simply coerce our String literal value using an ExpressionFactory, otherwise create a ValueExpression and evaluate it.
| |
| getQName | back to summary |
|---|---|
| public String getQName() Implements abstract jakarta. The qualified name for this attribute | |
| getTag | back to summary |
|---|---|
| public Tag getTag() Overrides jakarta. Doc from jakarta.
A reference to the Tag for which this class represents the attributes. For compatibility with previous
implementations, an implementation is provided that returns | |
| getValue | back to summary |
|---|---|
| public String getValue() Implements abstract jakarta. Return the literal value of this attribute | |
| getValue | back to summary |
|---|---|
| public String getValue(FaceletContext ctx) Implements abstract jakarta. If literal, then return our value, otherwise delegate to getObject, passing String.class.
| |
| getValueExpression | back to summary |
|---|---|
| public ValueExpression getValueExpression(FaceletContext ctx, Class<T> type) Implements abstract jakarta. Create a ValueExpression, using this attribute's literal value and the passed expected type.
| |
| getValueExpression | back to summary |
|---|---|
| public ValueExpression getValueExpression(FaceletContext ctx, String expr, Class<T> type) | |
| isLiteral | back to summary |
|---|---|
| public boolean isLiteral() Implements abstract jakarta. If this TagAttributeImpl is literal (not #{..} or ${..})
| |
| setTag | back to summary |
|---|---|
| public void setTag(Tag tag) Overrides jakarta. Doc from jakarta.
Set a reference to the Tag for which this class represents the attributes. The VDL runtime must ensure that this
method is called before any | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |
| Modifier and Type | Field and Description |
|---|---|
| private ValueExpression | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(Object
the otherObj)Object to test for equality.Implements abstract jakarta. Determines whether the specified object is equal to this |
| public String | getExpressionString()
Implements abstract jakarta. Returns the original String used to create this |
| public MethodInfo | getMethodInfo(ELContext
The context of this evaluation elContext)Implements abstract jakarta. Evaluates the expression relative to the provided context, and returns information about the actual referenced method. |
| public int | hashCode()
Implements abstract jakarta. Returns the hash code for this |
| public Object | invoke(ELContext
The context of this evaluation. elContext, Object[] The parameters to pass to the method, or args)null if no parameters.Implements abstract jakarta. If a String literal is specified as the expression, returns the String literal coerced to the expected return type of the method signature. |
| public boolean | isLiteralText()
Implements abstract jakarta. Returns whether this expression was created from only literal text. |
| lookupExpression | back to summary |
|---|---|
| private ValueExpression lookupExpression | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| AttributeLookupMethodExpression | back to summary |
|---|---|
| public AttributeLookupMethodExpression(ValueExpression lookupExpression) | |
| AttributeLookupMethodExpression | back to summary |
|---|---|
public AttributeLookupMethodExpression()
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object otherObj) Implements abstract jakarta. Doc from jakarta. Determines whether the specified object is equal to this
The result is
Note that two expressions can be equal if their expression Strings are different. For example,
| |
| getExpressionString | back to summary |
|---|---|
| public String getExpressionString() Implements abstract jakarta. Doc from jakarta. Returns the original String used to create this This is used for debugging purposes but also for the purposes of comparison (e.g. to ensure the expression in a configuration file has not changed).
This method does not provide sufficient information to re-create an expression. Two different expressions can have
exactly the same expression string but different function mappings. Serialization should be used to save and restore
the state of an | |
| getMethodInfo | back to summary |
|---|---|
| public MethodInfo getMethodInfo(ELContext elContext) Implements abstract jakarta. Doc from jakarta. Evaluates the expression relative to the provided context, and returns information about the actual referenced method.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Implements abstract jakarta. Doc from jakarta. Returns the hash code for this
See the note in the
| |
| invoke | back to summary |
|---|---|
| public Object invoke(ELContext elContext, Object[] args) Implements abstract jakarta. Doc from jakarta. If a String literal is specified as the expression, returns the String literal coerced to the expected return type of
the method signature. An | |
| isLiteralText | back to summary |
|---|---|
| public boolean isLiteralText() Implements abstract jakarta. Doc from jakarta. Returns whether this expression was created from only literal text.
This method must return
| |