Package org.evolizer.famix.model.entities

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


     * @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

Related Classes of org.evolizer.famix.model.entities.FamixParameter

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.