Examples of FamixParameter


Examples of org.evolizer.famix.model.entities.FamixParameter

  @Test
  public void testUnresolvedArrayParameter(){
    FamixMethod method = (FamixMethod)aModel.getElement(aFactory.createMethod("testPackage.Test.myMethod(<undef>.Hunter[])",null));
    assertNotNull(method);
   
    FamixParameter param = (FamixParameter) aModel.getElement(aFactory.createFormalParameter("testPackage.Test.myMethod(<undef>.Hunter[]).h",null,0));
    assertNotNull(param);
    assertEquals(new Integer(0), param.getParamIndex());
    FamixClass clazz = (FamixClass)aModel.getElement(aFactory.createClass(AbstractFamixEntity.ARRAY_TYPE_NAME,null));
    assertEquals(clazz, param.getDeclaredClass());
    assertTrue(method.getParameters().contains(param));
    assertEquals(method, param.getParent());
  }
View Full Code Here

Examples of org.evolizer.famix.model.entities.FamixParameter

     * @param parent FamixMethod declaring the parameter (optional).
     * @param position Position of the parameter in the method declaration.
     * @return FamixParameter.
     */
    public FamixParameter createFormalParameter(String uniqueName, FamixMethod parent, Integer position) {
        return new FamixParameter(uniqueName, parent, position);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.