Package com.puppetlabs.geppetto.pp

Examples of com.puppetlabs.geppetto.pp.LiteralExpression


   * <!-- end-user-doc -->
   *
   * @generated
   */
  public NotificationChain basicSetParent(LiteralExpression newParent, NotificationChain msgs) {
    LiteralExpression oldParent = parent;
    parent = newParent;
    if(eNotificationRequired()) {
      ENotificationImpl notification = new ENotificationImpl(
        this, Notification.SET, PPPackage.HOST_CLASS_DEFINITION__PARENT, oldParent, newParent);
      if(msgs == null)
View Full Code Here


        if(result == null)
          result = defaultCase(theEObject);
        return result;
      }
      case PPPackage.LITERAL_EXPRESSION: {
        LiteralExpression literalExpression = (LiteralExpression) theEObject;
        T result = caseLiteralExpression(literalExpression);
        if(result == null)
          result = caseExpression(literalExpression);
        if(result == null)
          result = defaultCase(theEObject);
View Full Code Here

    final String name = ((LiteralNameOrReference) o.getLeftExpr()).getValue();
    internalLinkFunctionCall(o, o.getLeftExpr(), name, importedNames, acceptor);
  }

  private void _link(HostClassDefinition o, PPImportedNamesAdapter importedNames, IMessageAcceptor acceptor) {
    final LiteralExpression parent = o.getParent();
    if(parent == null)
      return;
    String parentString = null;
    if(parent.eClass() == PPPackage.Literals.LITERAL_DEFAULT)
      parentString = "default";
    else if(parent.eClass() == PPPackage.Literals.LITERAL_NAME_OR_REFERENCE)
      parentString = ((LiteralNameOrReference) parent).getValue();
    if(parentString == null || parentString.length() < 1)
      return;

    SearchResult searchResult = ppFinder.findHostClasses(o, parentString, importedNames);
View Full Code Here

TOP

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

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.