官术网_书友最值得收藏!

EL syntax

In this section, you can see an overview of the main aspects of EL 2.2 and 3.0 syntax. EL supports a handful of operators and reserved words. Each of these are quickly described in the following section (more details are in the EL specification document (http://download.oracle.com/otndocs/jcp/el-3_0-fr-eval-spec/index.html)).

EL operators

EL supports the following categories of operators—arithmetic, relational, logical, conditional, empty and added starting with EL 3.0, string concatenation, assignment and semicolon operators:

EL precedence of operators

Conforming to EL specification, the precedence of operators from the highest to lowest, left to right is as follows:

  • [].
  • () (used to change the precedence of operators)
  • - (unary) not ! empty
  • * / div % mod
  • + - (binary)
  • +=
  • < > <= >= lt gt le ge
  • == != eq ne
  • && and
  • || or
  • ? :
  • -> (lambda expression)
  • =
  • ;

EL reserved words

EL defines the following reserved words:

  • and, or, not, eq, ne, lt, gt, le, ge, true (Boolean literal), false (Boolean literal), null, instanceof (a Java keyword to do a class comparison between objects), empty, div, and mod
主站蜘蛛池模板: 长治县| 泰来县| 和平县| 确山县| 三都| 贵溪市| 榆中县| 南靖县| 萨嘎县| 青州市| 苗栗县| 临江市| 新余市| 武冈市| 龙川县| 保康县| 万年县| 屏南县| 济南市| 上栗县| 林周县| 宜丰县| 瑞金市| 永德县| 蓬安县| 合作市| 固原市| 息烽县| 永福县| 吉安市| 离岛区| 乐业县| 河曲县| 莫力| 桑日县| 玉山县| 咸阳市| 双峰县| 鄂托克旗| 宁陕县| 喀喇|