oracle.cabo.share.expl
Class ExpressionParser
java.lang.Object
|
+--oracle.cabo.share.expl.ExpressionParser
- Direct Known Subclasses:
- DataExpressionParser, ELExpressionParser
- public abstract class ExpressionParser
- extends java.lang.Object
ExpressionParser is the abstraction for parsing expressions and literal
values.
Method Summary |
abstract java.lang.String |
getName()
gets the name of this bindingParser |
abstract boolean |
isBinding(ExpressionContext context,
java.lang.String attrURI,
java.lang.String attrName,
java.lang.String attrText)
|
abstract java.lang.Object |
parseExpression(ExpressionContext context,
java.lang.String text,
java.lang.Class type)
Returns the parsed expression as a BoundValue or literal. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EL_EXPRESSION_PARSER_NAME
public static final java.lang.String EL_EXPRESSION_PARSER_NAME
DATA_EXPRESSION_PARSER_NAME
public static final java.lang.String DATA_EXPRESSION_PARSER_NAME
ExpressionParser
public ExpressionParser()
parseExpression
public abstract java.lang.Object parseExpression(ExpressionContext context,
java.lang.String text,
java.lang.Class type)
throws ExplException
- Returns the parsed expression as a BoundValue or literal.
- Parameters:
context
- the binding contexttext
- the expression to parsetype
- the type of the parsed literal
or the return type of the parsed bound value- Returns:
- the parsed expression as a BoundValue or literal
isBinding
public abstract boolean isBinding(ExpressionContext context,
java.lang.String attrURI,
java.lang.String attrName,
java.lang.String attrText)
- Parameters:
context
- the binding contextattrURI
- the attribute namespaceattrName
- the attribute nameattrText
- the attribute string value- Returns:
- true if the value for the specified attribute is not a literal
and needs to be parsed into a BoundValue by
parseExpression(oracle.cabo.share.expl.ExpressionContext, java.lang.String, java.lang.Class)
.
getName
public abstract java.lang.String getName()
- gets the name of this bindingParser