Package org.allspice.structured.expr

Examples of org.allspice.structured.expr.FieldVarExpr


  }
  public static interface ShortGetFieldTest {
    public short meth(FieldTestClass arg0) ;
  }
  public void test2() throws Exception {
    ShortGetFieldTest obj = makeObject(ShortGetFieldTest.class,new FieldVarExpr(ARG0,"short_field",null)) ;
    FieldTestClass o2 = new FieldTestClass() ;
    o2.short_field = (short)45 ;
    assertEquals(obj.meth(o2),(short)45) ;
  }
View Full Code Here


  }
  public static interface CharGetFieldTest {
    public char meth(FieldTestClass arg0) ;
  }
  public void test3() throws Exception {
    CharGetFieldTest obj = makeObject(CharGetFieldTest.class,new FieldVarExpr(ARG0,"char_field",null)) ;
    FieldTestClass o2 = new FieldTestClass() ;
    o2.char_field = (char)45 ;
    assertEquals(obj.meth(o2),(char)45) ;
  }
View Full Code Here

  }
  public static interface IntGetFieldTest {
    public int meth(FieldTestClass arg0) ;
  }
  public void test5() throws Exception {
    IntGetFieldTest obj = makeObject(IntGetFieldTest.class,new FieldVarExpr(ARG0,"int_field",null)) ;
    FieldTestClass o2 = new FieldTestClass() ;
    o2.int_field = 5 ;
    assertEquals(obj.meth(o2),5) ;
  }
View Full Code Here

  }
  public static interface FloatGetFieldTest {
    public float meth(FieldTestClass arg0) ;
  }
  public void test6() throws Exception {
    FloatGetFieldTest obj = makeObject(FloatGetFieldTest.class,new FieldVarExpr(ARG0,"float_field",null)) ;
    FieldTestClass o2 = new FieldTestClass() ;
    o2.float_field = 5F ;
    assertTrue(obj.meth(o2) == 5F) ;
  }
View Full Code Here

  }
  public static interface LongGetFieldTest {
    public long meth(FieldTestClass arg0) ;
  }
  public void test7() throws Exception {
    LongGetFieldTest obj = makeObject(LongGetFieldTest.class,new FieldVarExpr(ARG0,"long_field",null)) ;
    FieldTestClass o2 = new FieldTestClass() ;
    o2.long_field = 5L ;
    assertEquals(obj.meth(o2),5L) ;
  }
View Full Code Here

  }
  public static interface DoubleGetFieldTest {
    public double meth(FieldTestClass arg0) ;
  }
  public void test8() throws Exception {
    DoubleGetFieldTest obj = makeObject(DoubleGetFieldTest.class,new FieldVarExpr(ARG0,"double_field",null)) ;
    FieldTestClass o2 = new FieldTestClass() ;
    o2.double_field = 5D ;
    assertTrue(obj.meth(o2) == 5D) ;
  }
View Full Code Here

  }
  public static interface ObjectGetFieldTest {
    public Object meth(FieldTestClass arg0) ;
  }
  public void test9() throws Exception {
    ObjectGetFieldTest obj = makeObject(ObjectGetFieldTest.class,new FieldVarExpr(ARG0,"obj_field",null)) ;
    FieldTestClass o2 = new FieldTestClass() ;
    o2.obj_field = "abc" ;
    assertEquals(obj.meth(o2),"abc") ;
  }
View Full Code Here

  }
  public static interface ArrGetFieldTest {
    public Object[] meth(FieldTestClass arg0) ;
  }
  public void test10() throws Exception {
    ObjectGetFieldTest obj = makeObject(ObjectGetFieldTest.class,new FieldVarExpr(ARG0,"arr_field",null)) ;
    Object[] arr = new Object[5] ;
    FieldTestClass o2 = new FieldTestClass() ;
    o2.arr_field = arr ;
    assertEquals(obj.meth(o2),arr) ;
  }
View Full Code Here

TOP

Related Classes of org.allspice.structured.expr.FieldVarExpr

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.