Table of Contents
Page
iv
•
Javelin Stamp Manual v1.1
•
www.javelinstamp.com
switch .............................................................................................................................. 145
this .................................................................................................................................. 146
throw, throws .................................................................................................................. 147
try ................................................................................................................................... 147
void ................................................................................................................................. 149
while ............................................................................................................................... 149
J
AVELIN
S
TAMP
O
PERATOR
R
EFERENCE
............................................................................. 150
[ ] .................................................................................................................................... 150
++, -- .............................................................................................................................. 150
(type) ............................................................................................................................... 150
+, -, *, /, %, () ................................................................................................................. 151
<<, >>, >>> ................................................................................................................. 152
<, >, <=, >=, ==, != .................................................................................................... 153
&, |, ^ .............................................................................................................................. 153
&&, || ............................................................................................................................. 154
~, ! .................................................................................................................................. 154
?: ..................................................................................................................................... 154
instanceof ....................................................................................................................... 155
U
NUSED
K
EYWORDS
........................................................................................................... 156
Unsupported Reserved Words: ....................................................................................... 156
7: WORKING WITH OBJECTS ....................................................................................... 157
W
HAT
'
S AN
O
BJECT
? ........................................................................................................... 157
Encapsulation ................................................................................................................. 159
Polymorphism ................................................................................................................. 160
Class Relationships ........................................................................................................ 161
An Object Oriented Example .......................................................................................... 161
Decoupling the Code ...................................................................................................... 164
Virtual Peripherals ......................................................................................................... 167
A Timer Example ............................................................................................................ 168
Object-Oriented Opportunity ......................................................................................... 170
8: OBJECT REFERENCE .................................................................................................. 173
T
HE
JAVA
.
LANG
P
ACKAGE
.................................................................................................... 173
Boolean ........................................................................................................................... 173
Error ............................................................................................................................... 174
Exception ........................................................................................................................ 174
IndexOutOfBoundsException ......................................................................................... 175
Math ............................................................................................................................... 175
NullPointerException ..................................................................................................... 175