next up previous
Next: Operator new Up: Java language Binding Previous: Accessing global variable


Operators

Table 2 summarize the operators which is new to or overloaded from Java, and their functionalities in HPJava.


Table 2: Operator
Operator Operand type(s) Operation performed
/ Group, Location restrict a group to a subgroup by a location, used as the divide operator in Java
| Range, triplet expression restrict a range to a location by an integer expression or a subrange by a triplet expression; also in over construct control header. used as the bit-or operator in Java
: int, int form a triplet expression
# global scalar reference access values of the global scalar reference, also in definition of a global scalar reference, and a non collapsed dimension
[[]] global array reference, Location, Range or triplet expression section subscript a global array, also in definition of a global array reference
[] global array reference, Location access array element
=   in over construct control header. used as an assignment expression in Java


The first three items are used upon built-in classes in HPJava. Though we list symbol : here, it is different from other operators. As we introduced earlier, when it is used on integer, no value in Java type is returned, only a triplet expression is formed. The next four items are concerned with defining and accessing global data. We consider [] as an operator on array reference here.

There are two things we need to pay attention to in this section.



Subsections
next up previous
Next: Operator new Up: Java language Binding Previous: Accessing global variable
Bryan Carpenter 2002-07-12