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

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
主站蜘蛛池模板: 嘉禾县| 榆中县| 米易县| 宜春市| 合肥市| 平果县| 诸暨市| 铅山县| 罗江县| 渝北区| 麻城市| 洪洞县| 陈巴尔虎旗| 淳安县| 游戏| 册亨县| 资溪县| 宣恩县| 山西省| 屯昌县| 镶黄旗| 灌云县| 睢宁县| 安图县| 金堂县| 西乌珠穆沁旗| 明光市| 山丹县| 岚皋县| 古交市| 南雄市| 虹口区| 南华县| 江陵县| 乌苏市| 小金县| 页游| 乐亭县| 长武县| 永川市| 明光市|