E - the exception type that can be thrown by the expansion functionpublic final class ResolveContext<E extends java.lang.Exception>
extends java.lang.Object
The expression context is not thread-safe and is not valid outside of the property expansion function body.
| Modifier and Type | Method and Description |
|---|---|
void |
expandDefault()
Expand the default value to the current target string builder.
|
void |
expandDefault(java.lang.StringBuilder target)
Expand the default value to the given string builder.
|
java.lang.String |
getExpandedDefault()
Expand the default value to a string.
|
java.lang.String |
getKey()
Get the expression resolution key, as a string.
|
boolean |
hasDefault()
Determine if the current expression has a default value.
|
public java.lang.String getKey()
throws E extends java.lang.Exception
Expression.Flag.NO_RECURSE_KEY was given.
The result is not cached and will be re-expanded every time this method is called.null)E - if the recursive expansion threw an exceptionE extends java.lang.Exceptionpublic void expandDefault(java.lang.StringBuilder target)
throws E extends java.lang.Exception
Expression.Flag.NO_RECURSE_DEFAULT was given.
The result is not cached and will be re-expanded every time this method is called.target - the string builder targetE - if the recursive expansion threw an exceptionE extends java.lang.Exceptionpublic void expandDefault()
throws E extends java.lang.Exception
Expression.Flag.NO_RECURSE_DEFAULT was given.
The result is not cached and will be re-expanded every time this method is called.E - if the recursive expansion threw an exceptionE extends java.lang.Exceptionpublic java.lang.String getExpandedDefault()
throws E extends java.lang.Exception
Expression.Flag.NO_RECURSE_DEFAULT was given.
The result is not cached and will be re-expanded every time this method is called.null)E - if the recursive expansion threw an exceptionE extends java.lang.Exceptionpublic boolean hasDefault()
true if there is a default value, false otherwiseCopyright © 2015 JBoss, a division of Red Hat, Inc.