system/src/sc/lang/java/Annotation.java
public static List<Object> toAnnotationList(List<Object> list) {
      ArrayList<Object> res = new ArrayList<Object>();
      for (Object elem:list) {
         if (elem instanceof Annotation)
            res.add(elem);
         else if (elem instanceof java.lang.annotation.Annotation)
            res.add(createFromElement((java.lang.annotation.Annotation) elem));
         else if (elem instanceof CFAnnotation)
            res.add(createFromElement((IAnnotation) elem));
         else
            throw new UnsupportedOperationException();
      }
      return res;
   }
/** Converts to an Annotation f needed */
Converts to an Annotation f needed
Converts to an Annotation f needed
public static List<Object> toAnnotationList(List<Object> list) {
      ArrayList<Object> res = new ArrayList<Object>();
      for (Object elem:list) {
         if (elem instanceof Annotation)
            res.add(elem);
         else if (elem instanceof java.lang.annotation.Annotation)
            res.add(createFromElement((java.lang.annotation.Annotation) elem));
         else if (elem instanceof CFAnnotation)
            res.add(createFromElement((IAnnotation) elem));
         else
            throw new UnsupportedOperationException();
      }
      return res;
   }
public static List < Object > toAnnotationList ( List < Object > list ) { ArrayList < Object > res = new ArrayList < Object > ( ) ; for ( Object elem : list ) { if ( elem instanceof Annotation ) res . add ( elem ) ; else if ( elem instanceof java . lang . annotation . Annotation ) res . add ( createFromElement ( ( java . lang . annotation . Annotation ) elem ) ) ; else if ( elem instanceof CFAnnotation ) res . add ( createFromElement ( ( IAnnotation ) elem ) ) ; else throw new UnsupportedOperationException ( ) ; } return res ; }
Converts to an Annotation f needed
Converts to an Annotation f needed