Package net.sf.jmd.metarepresentation.impl

Examples of net.sf.jmd.metarepresentation.impl.Parameter


        Operation othersOperation = new Operation();
        other.addMember(othersOperation);
        assertTrue(modelItem.equals(other));
       
        Parameter modelItemParameter = new Parameter();
        modelItemOperation.addParameter(modelItemParameter);
        assertFalse(modelItem.equals(other));
       
        Parameter othersParameter = new Parameter();
        othersOperation.addParameter(othersParameter);
        assertTrue(modelItem.equals(other));
       
       
        // other.addMember(new Variable());
View Full Code Here


        assertFalse(operation.equals(otherOperation));

        otherOperation.setName(identifier);
        assertTrue(operation.equals(otherOperation));
       
        Parameter parameter = new Parameter();
        operation.addParameter(parameter);
        assertFalse(operation.equals(otherOperation));

        otherOperation.addParameter(parameter);
        assertTrue(operation.equals(otherOperation));
       
        parameter.setName("i");
    }
View Full Code Here

        assertTrue(operation.equals(operation));
    }
   
    public void testToString(){
        String operationString = operation.toString();
        operation.addParameter(new Parameter());
        assertNotNull(operationString);

    }
View Full Code Here

      List<IDifference> results = membersModified.check(differences);
        assertNotNull("The results must not be null", results);
        assertTrue(results.isEmpty());
       
        //now we modify a bit and run the check again.
        IParameter parameter = new Parameter();
        parameter.setName("newSize");
        ((IOperation)dmMember).addParameter(parameter);
        results = membersModified.check(differences);
        int size = results.size();
        assertTrue("Now there must be a difference <" + size + ">", size == 1);
    }
View Full Code Here

            doParameterDefinitionLevelAction(tmp);
        }
    }

    private void doParameterDefinitionLevelAction(AST node) {
        parameter = new Parameter();
        for (AST tmp = node.getFirstChild(); tmp != null; tmp = tmp
                .getNextSibling()) {

            int type = tmp.getType();
            switch (type) {
View Full Code Here

            doParameterDefinitionLevelAction(tmp);
        }
    }

    private void doParameterDefinitionLevelAction(AST node) {
        parameter = new Parameter();
        for (AST tmp = node.getFirstChild(); tmp != null; tmp = tmp
                .getNextSibling()) {

            int type = tmp.getType();
            switch (type) {
View Full Code Here

TOP

Related Classes of net.sf.jmd.metarepresentation.impl.Parameter

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.