Package org.overturetool.vdmj.definitions

Examples of org.overturetool.vdmj.definitions.Definition


    }

    String className = variableName.get(0);
    String varName = variableName.get(1);

    Definition s = classList.findName(new LexNameToken(className, varName, null), NameScope.NAMESANDSTATE);

    if (s == null)
    {
      throw new RemoteSimulationException("Unable to locate: \""
          + dotName(variableName)
          + "\" failed with: \""
          + varName
          + "\". Is this accessiable through the system while inilializing");
    }

    List<String> restOfQuantifier = variableName.subList(2, variableName.size());

    if (restOfQuantifier.size() == 0)
    {
      return s;
    } else
    {
      for (int i = 0; i < restOfQuantifier.size(); i++)
      {
        className = s.getType().getName();

        s = classList.findName(new LexNameToken(className, restOfQuantifier.get(i), null), NameScope.NAMESANDSTATE);

        // if(s== null)
        // {
View Full Code Here


          + qualifiedName);
    }

    try
    {
      Definition def = VDMClassHelper.findDefinitionInClass(SimulationManager.getInstance().controller.getInterpreter().getClasses(), qualifiedName);
      if (def == null)
      {
        return -2;
      } else
      {
View Full Code Here

      return;
    }

    for (Definition field : getFieldDefinitions(getTypeName(def), model))
    {
      Definition child = field;// getDefinition(getTypeName(field),
                    // model);
      if (child != null)
      {
        if (!expandedDefinitions.contains(child))
        {
View Full Code Here

  {
   
    if(parentElement instanceof TreeNodeContainer)
    {
      TreeNodeContainer parentNode = ((TreeNodeContainer) parentElement);
      Definition def = parentNode.data;
     
      if(addToVisited && visited.contains(def))
      {
        return new Object[] {};
      }
     
      if(addToVisited)
      {
        System.out.println("Visiting def: " + def.getName());
        visited.add(def);
      }
     
      if(!addToVisited && visitedCount.contains(def))
      {
        return new Object[] {};
      }
     
      if(!addToVisited)
      {
        System.out.println("VisitingCount def: " + def.getName());
        visitedCount.add(def);
      }
     
      if (def instanceof ClassDefinition)
      {
View Full Code Here

TOP

Related Classes of org.overturetool.vdmj.definitions.Definition

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.