Package com.puppetlabs.geppetto.pp

Examples of com.puppetlabs.geppetto.pp.VirtualNameOrReference


        if(result == null)
          result = defaultCase(theEObject);
        return result;
      }
      case PPPackage.VIRTUAL_NAME_OR_REFERENCE: {
        VirtualNameOrReference virtualNameOrReference = (VirtualNameOrReference) theEObject;
        T result = caseVirtualNameOrReference(virtualNameOrReference);
        if(result == null)
          result = caseLiteralExpression(virtualNameOrReference);
        if(result == null)
          result = caseExpression(virtualNameOrReference);
View Full Code Here


    }
    else if(resourceExpr instanceof LiteralClass) {
      resourceTypeName = "class";
    }
    else if(resourceExpr instanceof VirtualNameOrReference) {
      VirtualNameOrReference vn = (VirtualNameOrReference) resourceExpr;
      resourceTypeName = vn.getValue();
    }
    if(resourceTypeName != null) {
      if("class".equals(resourceTypeName))
        resourceType = RESOURCE_IS_CLASSPARAMS;
      else if(patternHelper.isCLASSREF(resourceTypeName))
View Full Code Here

    AtExpression at = pf.createAtExpression();
    at.setLeftExpr(createNameOrReference("x"));
    at.getParameters().add(createNameOrReference("a"));
    r1.setResourceExpr(at); // resource reference

    VirtualNameOrReference vn = pf.createVirtualNameOrReference();
    vn.setValue("y");
    vn.setExported(true);
    r2.setResourceExpr(vn);

    CollectExpression ce = pf.createCollectExpression();
    ce.setClassReference(createNameOrReference("User"));
    EqualityExpression predicate = pf.createEqualityExpression();
View Full Code Here

    ResourceExpression re = pf.createResourceExpression();

    Expression resourceExpr = null;
    if(virtual) {
      VirtualNameOrReference resourceName = pf.createVirtualNameOrReference();
      resourceName.setValue(type);
      resourceName.setExported(exported);
      resourceExpr = resourceName;

    }
    else {
      LiteralNameOrReference resourceName = pf.createLiteralNameOrReference();
      resourceName.setValue(type);
      resourceExpr = resourceName;
    }
    re.setResourceExpr(resourceExpr);

    re.getResourceData().add(createResourceBody(additive, title, keyValPairs));
View Full Code Here

TOP

Related Classes of com.puppetlabs.geppetto.pp.VirtualNameOrReference

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.