Beispiel #1
0
 @Override
 public RTCode runDetails(final RTObject myEnclosedScope) {
   final RTDynamicScope activationRecord =
       RunTimeEnvironment.runTimeEnvironment_.currentDynamicScope();
   final RTSetObject theListObject = (RTSetObject) activationRecord.getObject("this");
   final RTObject rawElement = activationRecord.getObject("element");
   theListObject.add(rawElement);
   return super.nextCode();
 }
Beispiel #2
0
 @Override
 public RTCode runDetails(final RTObject myEnclosedScope) {
   final RTDynamicScope activationRecord =
       RunTimeEnvironment.runTimeEnvironment_.currentDynamicScope();
   final RTSetObject theListObject = (RTSetObject) activationRecord.getObject("this");
   theListObject.ctor();
   RunTimeEnvironment.runTimeEnvironment_.pushStack(this);
   return super.nextCode();
 }
Beispiel #3
0
    @Override
    public RTCode runDetails(final RTObject myEnclosedScope) {
      final RTDynamicScope activationRecord =
          RunTimeEnvironment.runTimeEnvironment_.currentDynamicScope();
      final RTSetObject theListObject = (RTSetObject) activationRecord.getObject("this");
      final boolean rawResult = theListObject.isEmpty();
      final RTBooleanObject result = new RTBooleanObject(rawResult);

      addRetvalTo(activationRecord);
      activationRecord.setObject("ret$val", result);

      return super.nextCode();
    }
Beispiel #4
0
    @Override
    public RTCode runDetails(final RTObject myEnclosedScope) {
      final RTDynamicScope activationRecord =
          RunTimeEnvironment.runTimeEnvironment_.currentDynamicScope();
      final RTObject argument = activationRecord.getObject("element");
      final RTSetObject theListObject = (RTSetObject) activationRecord.getObject("this");
      final RTObject result = (RTObject) theListObject.contains(argument);

      addRetvalTo(activationRecord);
      activationRecord.setObject("ret$val", result);

      return super.nextCode();
    }