Java Reference
In-Depth Information
Table 3-3. EL Operator Precedence
Operator
[] .
1
()
2
- (unary) not ! empty
3
* / div % mod
4
+ - (binary)
5
cat
6
< > <= >= lt gt le ge
7
== != eq ne
8
&& and
9
|| or
10
? :
11
->
12
=
13
;
14
Static Field and Methods
A static field or method can be referenced by referring to the class that embodies the field or method and then using
the dot (.) operator to denote the static field or method. To refer to a given class, use the following notation, where
className refers to the fully qualified name of the class:
T(className)
Therefore, the following references would be valid:
T(classA).myVar
T(java.lang.Boolean).FALSE
T is used with Java generics to specify a type whenever there is nothing more specific about the type to
distinguish it.
Note
Stand-Alone API
The 3.0 release provides a stand-alone API for the Expression Language (EL). Utilization of such an API can be handy
in various situations. In the forefront, a stand-alone API can be useful if you are interested in making use of Expression
Language within a Java SE environment. However, it can also be useful when developing EL that will be later utilized
within JSPs or JSF views.
 
 
Search WWH ::




Custom Search