Interface EdmExpression
- All Known Subinterfaces:
EdmAnd,EdmAnnotationPath,EdmApply,EdmCast,EdmCollection,EdmConstantExpression,EdmDynamicExpression,EdmEq,EdmGe,EdmGt,EdmIf,EdmIsOf,EdmLabeledElement,EdmLabeledElementReference,EdmLe,EdmLogicalOrComparisonExpression,EdmLt,EdmNavigationPropertyPath,EdmNe,EdmNot,EdmNull,EdmOr,EdmPath,EdmPropertyPath,EdmRecord,EdmUrlRef
public interface EdmExpression
Super type of all annotation expressions
A expression is either constant or dynamic
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionCasts the expression toEdmConstantExpressionCast the expression toEdmDynamicExpressionWill return the name of the expression e.g.SeeEdmExpression.EdmExpressionTypefor details.booleanReturn true if the expression is constantbooleanReturn true if the expression is dynamic
-
Method Details
-
getExpressionType
EdmExpression.EdmExpressionType getExpressionType()SeeEdmExpression.EdmExpressionTypefor details.- Returns:
- the type of this expression
-
getExpressionName
String getExpressionName()Will return the name of the expression e.g. Apply or Cast.- Returns:
- the name of the expression
-
isConstant
boolean isConstant()Return true if the expression is constant- Returns:
- true if the expression is constant
-
asConstant
EdmConstantExpression asConstant()Casts the expression toEdmConstantExpression- Returns:
- Constant Expression
-
isDynamic
boolean isDynamic()Return true if the expression is dynamic- Returns:
- true if the expression is dynamic
-
asDynamic
EdmDynamicExpression asDynamic()Cast the expression toEdmDynamicExpression- Returns:
- Dynamic Expression
-