/** * * Returns a StringLiteral parsed from the given token (enclosed by * single or double quotes) **/ public static StringLiteral fromToken (String pToken) { return new StringLiteral (getValueFromToken (pToken)); }
/** * * Returns the Map that "wraps" session-scoped attributes **/ public Map getSessionScopeMap () { if (mSession == null) { mSession = createSessionScopeMap (mContext); } return mSession; }
/** * * Returns a StringLiteral with the given string value **/ public static StringLiteral fromLiteralValue (String pValue) { return new StringLiteral (pValue); }
public Object evaluate( VariableResolver vResolver ) throws ELException { return evaluator.evaluate(this.expression, this.expectedType, vResolver, this.fMapper); } }
/** * * Logs an error **/ public void logError (String pTemplate) throws ELException { if (isLoggingError ()) { logError (pTemplate, null); } }
/** * * Returns the expression in the expression language syntax **/ public String getExpressionString () { return "[" + mIndex.getExpressionString () + "]"; }
/** * * Returns the expression in the expression language syntax **/ public String getExpressionString () { return "." + StringLiteral.toIdentifierToken (mName); }
/** * * Returns the expression in the expression language syntax **/ public String getExpressionString () { return (getValue () == Boolean.TRUE) ? "true" : "false"; }
/** * * Applies the operator to the given value **/ public Object apply (Object pLeft, Object pRight, Logger pLogger) throws ELException { return Coercions.applyEqualityOperator (pLeft, pRight, this, pLogger); }
/** * * Returns the Map that "wraps" request-scoped attributes **/ public Map getRequestScopeMap () { if (mRequest == null) { mRequest = createRequestScopeMap (mContext); } return mRequest; }
/** * * Returns the Map that maps parameter name to an array of parameter * values. **/ public Map getParamsMap () { if (mParams == null) { mParams = createParamsMap (mContext); } return mParams; }
/** * * Returns the Map that maps init parameter name to a single init * parameter values. **/ public Map getInitParamMap () { if (mInitParam == null) { mInitParam = createInitParamMap (mContext); } return mInitParam; }
/** * * Returns the Map that "wraps" page-scoped attributes **/ public Map getPageScopeMap () { if (mPage == null) { mPage = createPageScopeMap (mContext); } return mPage; }
/** * * Returns the Map that maps header name to an array of header * values. **/ public Map getHeadersMap () { if (mHeaders == null) { mHeaders = createHeadersMap (mContext); } return mHeaders; }
/** * * Returns the BeanInfo for the class **/ BeanInfo getBeanInfo (Logger pLogger) throws ELException { checkInitialized (pLogger); return mBeanInfo; }
/** * * Returns the Map that maps parameter name to a single parameter * values. **/ public Map getParamMap () { if (mParam == null) { mParam = createParamMap (mContext); } return mParam; }
/** * * Returns the Map that maps header name to a single header * values. **/ public Map getHeaderMap () { if (mHeader == null) { mHeader = createHeaderMap (mContext); } return mHeader; }
/** * * Constructor **/ public BooleanLiteral (String pToken) { super (getValueFromToken (pToken)); }
/** * * Logs an error **/ public void logError (Throwable pRootCause) throws ELException { if (isLoggingError ()) { logError (null, pRootCause); } }
/** * * Returns the expression in the expression language syntax **/ public String getExpressionString () { return StringLiteral.toIdentifierToken (mName); }