Package net.sourceforge.veditor.parser.vhdl.VhdlOutlineElementFactory

Examples of net.sourceforge.veditor.parser.vhdl.VhdlOutlineElementFactory.ComponentInstElement


            childInstantiations.add(e);
          }
        }
        if (children[i] instanceof ComponentInstElement) {
          //do not add recursive children
          ComponentInstElement comp = (ComponentInstElement)children[i];
          if(comp.GetEntityName().toUpperCase().equals(arch.GetEntityName().toUpperCase())==false){
            childInstantiations.add(comp);
          }         
        }
      }
      return (Object[]) childInstantiations.toArray();
    }
    //child instantiation
    else if (parentElement instanceof EntityInstElement) {
      EntityInstElement entityInst = (EntityInstElement) parentElement;
      String entityName= entityInst.GetEntityName().toUpperCase();
      //list of architectures for this entity
      return (Object[])m_EntityArchList.get(entityName).toArray();
    }
    else if (parentElement instanceof ComponentInstElement) {
      ComponentInstElement compInst = (ComponentInstElement) parentElement;
      String componentName= compInst.GetEntityName().toUpperCase();
      //list of architectures for this entity
      return (Object[])m_EntityArchList.get(componentName).toArray();
    }
   
    return null;
View Full Code Here


          if(entityInst.GetEntityName().toUpperCase().equals(arch.GetEntityName().toUpperCase()) == false){
            return true;
          }
        }
        if (children[i] instanceof ComponentInstElement) {
          ComponentInstElement componentInst = (ComponentInstElement)children[i];
          //if we hit one instantiation, we've got children
          //beware of recursive definitions
          if(componentInst.GetEntityName().toUpperCase().equals(arch.GetEntityName().toUpperCase()) == false){
            return true;
          }         
        }
      }
      return false;
    }
    //child instantiation
    else if (element instanceof EntityInstElement) {
      EntityInstElement entityInst = (EntityInstElement) element;
      String entityName= entityInst.GetEntityName().toUpperCase();
      //list of architectures for this entity
      Vector<ArchitectureElement> archList=m_EntityArchList.get(entityName);
      if(archList==null){
        return false;
      }
      return (archList.size() != 0);
    }
    else if (element instanceof ComponentInstElement) {
      ComponentInstElement compInst = (ComponentInstElement) element;
      String componentName= compInst.GetEntityName().toUpperCase();
      //list of architectures for this entity
      Vector<ArchitectureElement> archList=m_EntityArchList.get(componentName);
      if(archList==null){
        return false;
      }
View Full Code Here

              nameParts.length==0 ? entityInst.GetEntityName() : nameParts[nameParts.length-1];
            //remove the name from the top level
            topLevelEntities.remove(n.toUpperCase());
          }
          if (childElements[j] instanceof ComponentInstElement) {
            ComponentInstElement compInst = (ComponentInstElement) childElements[j];
            String nameParts[] = compInst.GetEntityName().toUpperCase().split("\\.");
            String n=
              nameParts.length==0 ? compInst.GetEntityName() : nameParts[nameParts.length-1];
            //remove the name from the top level
            topLevelEntities.remove(n.toUpperCase());
          }
        }
      }
View Full Code Here

TOP

Related Classes of net.sourceforge.veditor.parser.vhdl.VhdlOutlineElementFactory.ComponentInstElement

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.