Package gen

Examples of gen.JavaObject


  public CoopObject mod(CoopObject other) {
    return new Float(this.value % ((Float) other).value);
  }
 
  public CoopObject toString$() {
    return new JavaObject(java.lang.Double.toString(value));
  }
View Full Code Here


  public CoopObject mod(CoopObject other) {
    return new Integer(this.value % ((Integer) other).value);
  }
 
  public CoopObject toString$() {
    return new JavaObject(java.lang.Integer.toString(value));
  }
View Full Code Here

 
  public boolean toBoolean(){
    return this.value;
  }
  public CoopObject toString$() {
    return new JavaObject(java.lang.Boolean.toString(value));
  }
View Full Code Here

  public static final CoopObject NULL = new Null();
 
  private Null() {};
 
  public CoopObject toString$() {
    return new JavaObject("null");
  }
View Full Code Here

    try {
      Object obj = java.lang.Class.forName(name.toString()).newInstance();
      if (obj instanceof CoopObject) {
        return (CoopObject) obj;
      } else { // For Java integration
        return new JavaObject(obj);
      }
    } catch (Exception e) {
      throw new Error(e);
    }
  }
View Full Code Here

      throw new Error(e);
    }
  }
 
  public CoopObject toString$() {
    return new JavaObject("class " + name);
  }
View Full Code Here

TOP

Related Classes of gen.JavaObject

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.