Package com.puppetlabs.geppetto.pp

Examples of com.puppetlabs.geppetto.pp.Expression


   * <!-- end-user-doc -->
   *
   * @generated
   */
  public NotificationChain basicSetLeftExpr(Expression newLeftExpr, NotificationChain msgs) {
    Expression oldLeftExpr = leftExpr;
    leftExpr = newLeftExpr;
    if(eNotificationRequired()) {
      ENotificationImpl notification = new ENotificationImpl(
        this, Notification.SET, PPPackage.BINARY_EXPRESSION__LEFT_EXPR, oldLeftExpr, newLeftExpr);
      if(msgs == null)
View Full Code Here


   * <!-- end-user-doc -->
   *
   * @generated
   */
  public NotificationChain basicSetRightExpr(Expression newRightExpr, NotificationChain msgs) {
    Expression oldRightExpr = rightExpr;
    rightExpr = newRightExpr;
    if(eNotificationRequired()) {
      ENotificationImpl notification = new ENotificationImpl(
        this, Notification.SET, PPPackage.BINARY_EXPRESSION__RIGHT_EXPR, oldRightExpr, newRightExpr);
      if(msgs == null)
View Full Code Here

        if(result == null)
          result = defaultCase(theEObject);
        return result;
      }
      case PPPackage.EXPRESSION: {
        Expression expression = (Expression) theEObject;
        T result = caseExpression(expression);
        if(result == null)
          result = defaultCase(theEObject);
        return result;
      }
View Full Code Here

   * <!-- end-user-doc -->
   *
   * @generated
   */
  public NotificationChain basicSetCondExpr(Expression newCondExpr, NotificationChain msgs) {
    Expression oldCondExpr = condExpr;
    condExpr = newCondExpr;
    if(eNotificationRequired()) {
      ENotificationImpl notification = new ENotificationImpl(
        this, Notification.SET, PPPackage.IF_EXPRESSION__COND_EXPR, oldCondExpr, newCondExpr);
      if(msgs == null)
View Full Code Here

   * <!-- end-user-doc -->
   *
   * @generated
   */
  public NotificationChain basicSetElseStatement(Expression newElseStatement, NotificationChain msgs) {
    Expression oldElseStatement = elseStatement;
    elseStatement = newElseStatement;
    if(eNotificationRequired()) {
      ENotificationImpl notification = new ENotificationImpl(
        this, Notification.SET, PPPackage.IF_EXPRESSION__ELSE_STATEMENT, oldElseStatement, newElseStatement);
      if(msgs == null)
View Full Code Here

   * <!-- end-user-doc -->
   *
   * @generated
   */
  public NotificationChain basicSetCondExpr(Expression newCondExpr, NotificationChain msgs) {
    Expression oldCondExpr = condExpr;
    condExpr = newCondExpr;
    if(eNotificationRequired()) {
      ENotificationImpl notification = new ENotificationImpl(
        this, Notification.SET, PPPackage.UNLESS_EXPRESSION__COND_EXPR, oldCondExpr, newCondExpr);
      if(msgs == null)
View Full Code Here

   * <!-- end-user-doc -->
   *
   * @generated
   */
  public NotificationChain basicSetElseStatement(Expression newElseStatement, NotificationChain msgs) {
    Expression oldElseStatement = elseStatement;
    elseStatement = newElseStatement;
    if(eNotificationRequired()) {
      ENotificationImpl notification = new ENotificationImpl(
        this, Notification.SET, PPPackage.UNLESS_EXPRESSION__ELSE_STATEMENT, oldElseStatement, newElseStatement);
      if(msgs == null)
View Full Code Here

   * <!-- end-user-doc -->
   *
   * @generated
   */
  public NotificationChain basicSetKey(Expression newKey, NotificationChain msgs) {
    Expression oldKey = key;
    key = newKey;
    if(eNotificationRequired()) {
      ENotificationImpl notification = new ENotificationImpl(
        this, Notification.SET, PPPackage.HASH_ENTRY__KEY, oldKey, newKey);
      if(msgs == null)
View Full Code Here

   * <!-- end-user-doc -->
   *
   * @generated
   */
  public NotificationChain basicSetValue(Expression newValue, NotificationChain msgs) {
    Expression oldValue = value;
    value = newValue;
    if(eNotificationRequired()) {
      ENotificationImpl notification = new ENotificationImpl(
        this, Notification.SET, PPPackage.HASH_ENTRY__VALUE, oldValue, newValue);
      if(msgs == null)
View Full Code Here

      PPImportedNamesAdapter importedNames, SearchStrategy matchingStrategy) {
    TreeIterator<EObject> itor = lambda.eAllContents();
    while(itor.hasNext()) {
      EObject o = itor.next();
      if(o instanceof AssignmentExpression || o instanceof AppendExpression) {
        Expression lhs = ((BinaryExpression) o).getLeftExpr();
        if(lhs instanceof VariableExpression) {
          String vname = ((VariableExpression) lhs).getVarName();
          if(vname.startsWith("$"))
            if(vname.length() > 1)
              vname = name.substring(1);
View Full Code Here

TOP

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

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.