Пример #1
0
 public void verifyEntry() {
   boolean notDone;
   notDone = true;
   while (notDone) {
     if ((incrementInternal > 0 && (indexInternal < lastValueInternal))
         || (incrementInternal < 0 && (indexInternal >= lastValueInternal))) {
       if ((arrayInternal.intFetch(indexInternal)) == null) {
         indexInternal = indexInternal + incrementInternal;
       } else {
         notDone = false;
       }
     } else {
       notDone = false;
     }
   }
   /*
   udanax-top.st:56100:ITGenericStepper methodsFor: 'private: private'!
   {void} verifyEntry
   	| notDone {BooleanVar} |
   	notDone _ true.
   	[notDone]
   		whileTrue: [
   			((incrementInternal > Int32Zero and: [indexInternal < lastValueInternal])
   					or: [incrementInternal < Int32Zero and: [indexInternal >= lastValueInternal]])
   				ifTrue: [(arrayInternal intFetch: indexInternal) == NULL
   						ifTrue: [indexInternal _ indexInternal + incrementInternal]
   						ifFalse: [notDone _ false]]
   				ifFalse: [notDone _ false]]!
   */
 }
Пример #2
0
 public Heaper fetch() {
   if (hasValue()) {
     return arrayInternal.intFetch(indexInternal);
   } else {
     return null;
   }
   /*
   udanax-top.st:56025:ITGenericStepper methodsFor: 'operations'!
   {Heaper wimpy} fetch
   	self hasValue
   		ifTrue: [^ arrayInternal intFetch: indexInternal]
   		ifFalse: [^NULL]!
   */
 }