Package com.sun.tools.javac.code

Examples of com.sun.tools.javac.code.Attribute$Class


    @Override
    public Object getValue(String fieldName) {
        Object result = attributes.get(fieldName);
        if (result == null) {
            Attribute attr = member(fieldName);
            result = attributeToRefl(attr);
            attributes.put(fieldName, result);
        }
        return result;
    }
View Full Code Here


     * @see org.andromda.metafacades.uml.FrontEndActivityGraph#getController()
     */
    protected java.lang.Object handleGetController()
    {
        // Take the frist class inside the FSM
        Class controller = null;
        for (Iterator it = ((StateMachine)this.metaObject).getOwnedMembers().iterator();
            it.hasNext() && controller == null;)
        {
            Object next = it.next();
            if (next instanceof Class)
View Full Code Here

    Iterator it = res.iterator();
    while (it.hasNext()) {
      GroupDataItem level01 = (GroupDataItem)it.next();
      String className = level01.getDataName();
     
      Class c = getClass(p, className);
      if (c == null) {
        addClass(p, className);
        System.out.println("INFO [jIvalo] Added class: " + className);
        c = getClass(p, className);
      }
View Full Code Here

        }
      }
      else if ( level01.getDataItems()[i] instanceof GroupDataItem ) {
        GroupDataItem gdi = (GroupDataItem)level01.getDataItems()[i];
        String className = c.getName() + "_" + gdi.getDataName();
        Class cl = getClass(p, className);
        if (cl == null) {
          addClass(p, className);
          System.out.println("INFO [jIvalo] Added class: " + className);
          cl = getClass(p, className);
        }
        else {
          System.out.println("INFO [jIvalo] Updating existing class: " + className);
        }
       
        if (cl != null) {
          addAttributes(gdi, p, cl, model);
   
          Property newAttr = null;
          if ( level01.getDataItems()[i] instanceof GroupDataItemOccurs ) {
            GroupDataItemOccurs gdio = (GroupDataItemOccurs)level01.getDataItems()[i];
            newAttr = c.createOwnedAttribute(className,p.getOwnedType(cl.getName()),gdio.getOccurs(),gdio.getOccurs());
          }
          else {
            newAttr = c.createOwnedAttribute(className,p.getOwnedType(cl.getName()),1,1);
          }
          if (newAttr != null) {
            newAttr.setVisibility(VisibilityKind.PUBLIC_LITERAL);
            addStereotype(newAttr, jIvaloAttributeStereotype);
            setTagValue(newAttr, "timestampFormat", "");
View Full Code Here

    setTagValue(p, "fraction", fraction);
    return p;
  }

  private Class addClass(Package p, String name) {
    Class newclass = p.createOwnedClass(name, false);
    setTagValue(newclass, "dataGroupName", name);
    return newclass;
  }
View Full Code Here

TOP

Related Classes of com.sun.tools.javac.code.Attribute$Class

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.