Package edu.cmu.cs.fusion.xml

Examples of edu.cmu.cs.fusion.xml.NamedTypeBinding


    StubVariable tVar = new StubVariable("t", "Bar");
    List<StubVariable> params = new ArrayList<StubVariable>();
    params.add(rVar);
    params.add(tVar);

    NamedTypeBinding rBinding = new NamedTypeBinding("Foo");   
    NamedTypeBinding[] vBindings = new NamedTypeBinding[] {new NamedTypeBinding("Foo"), new NamedTypeBinding("Bar")};
    StubMethodCallInstruction instr = new StubMethodCallInstruction("mName", rVar, params, new StubMethodBinding(rBinding, vBindings), tVar)
   
    SpecVar[] vars = new SpecVar[] {utils.getVar(0), utils.getVar(1)};
    String[] vTypes = new String[] {"Foo", "Bar"};
    MethodInvocationOp op = new MethodInvocationOp("mName", "Foo", vars, vTypes, "Bar", false);
View Full Code Here


    assertEquals(4, list.size());

  }

  private MethodCallInstruction getMCI(StubVariable resVar, List<StubVariable> params, StubVariable tarVar) {
    NamedTypeBinding rBinding = new NamedTypeBinding("Foo");   
    NamedTypeBinding[] vBindings = new NamedTypeBinding[] {new NamedTypeBinding("Bar"), new NamedTypeBinding("Baz")};
    resVar.setType(rBinding);
    params.get(0).setType(vBindings[0]);   
    params.get(1).setType(vBindings[1]);
    tarVar.setType(new NamedTypeBinding("Bazaz"));
   
    return new StubMethodCallInstruction("mName", resVar, params, new StubMethodBinding(rBinding, vBindings), tarVar)
  }
View Full Code Here

TOP

Related Classes of edu.cmu.cs.fusion.xml.NamedTypeBinding

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.