Package org.jboss.logmanager.config
Class ValueExpressionImpl<T>
- java.lang.Object
-
- org.jboss.logmanager.config.ValueExpressionImpl<T>
-
- All Implemented Interfaces:
ValueExpression<T>
class ValueExpressionImpl<T> extends java.lang.Object implements ValueExpression<T>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.jboss.logmanager.config.ValueExpression
ValueExpression.Resolver<T>
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.Stringexpressionprivate TresolvedValue-
Fields inherited from interface org.jboss.logmanager.config.ValueExpression
BOOLEAN_RESOLVER, NULL_BOOLEAN_EXPRESSION, NULL_STRING_EXPRESSION, STRING_RESOLVER
-
-
Constructor Summary
Constructors Constructor Description ValueExpressionImpl(java.lang.String expression, T resolvedValue)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TgetResolvedValue()The resolved value.java.lang.StringgetValue()Gets the value of the value which may or may not be anexpression.booleanisExpression()Checks whether this is an expression or not.java.lang.StringtoString()
-
-
-
Field Detail
-
expression
private final java.lang.String expression
-
resolvedValue
private final T resolvedValue
-
-
Constructor Detail
-
ValueExpressionImpl
ValueExpressionImpl(java.lang.String expression, T resolvedValue)
-
-
Method Detail
-
getResolvedValue
public T getResolvedValue()
Description copied from interface:ValueExpressionThe resolved value. If this is anexpressionthe resolved value will be the value from a system property or the default value from the expression if the system property is not set. If this is not anexpressionthe value returned will be the non-expression value ornullif allowed for the property.- Specified by:
getResolvedValuein interfaceValueExpression<T>- Returns:
- the resolved value
-
isExpression
public boolean isExpression()
Description copied from interface:ValueExpressionChecks whether this is an expression or not.- Specified by:
isExpressionin interfaceValueExpression<T>- Returns:
trueif this is an expression, otherwisefalse
-
getValue
public java.lang.String getValue()
Description copied from interface:ValueExpressionGets the value of the value which may or may not be anexpression.- Specified by:
getValuein interfaceValueExpression<T>- Returns:
- the value
-
toString
public java.lang.String toString()
- Specified by:
toStringin interfaceValueExpression<T>- Overrides:
toStringin classjava.lang.Object
-
-