/*
 * This file is released under terms of BSD license
 * See LICENSE file for more information
 */

package cx2x.xcodeml.xelement;

/**
 * The Xintent represents the possible value for the intent attribute in XcodeML
 * intermediate representation.
 *
 * Possible value are: in, out, inout
 *
 * @author clementval
 */
public enum Xintent {
  IN,
  OUT,
  INOUT
  ;

  /**
   * Convert current enum to String value.
   * @return Corresponding String value.
   */
  public String toString(){
    switch(this){
      case IN:
        return XelementName.INTENT_IN;
      case OUT:
        return XelementName.INTENT_OUT;
      case INOUT:
        return XelementName.INTENT_INOUT;
      default:
        return "";
    }
  }

  /**
   * Convert string value to enum.
   * @param value String value.
   * @return Corresponding enum value.
   */
  public static Xintent fromString(String value){
    if(value == null){
      return null;
    }
    switch (value) {
      case XelementName.INTENT_IN:
        return IN;
      case XelementName.INTENT_OUT:
        return OUT;
      case XelementName.INTENT_INOUT:
        return INOUT;
    }
    return null;
  }
}

@@ -355,16 +355,24 @@
 %0A  INOUT
+,%0A  NONE
 %0A  ;%0A%0A  
@@ -926,28 +926,28 @@
      return 
-null
+NONE
 ;%0A    %7D%0A    
@@ -1150,20 +1150,20 @@
  return 
-null
+NONE
 ;%0A  %7D%0A%7D%0A

Add NONE