system/src/sc/lang/java/Annotation.java
public static Annotation toAnnotation(Object elem) {
      if (elem instanceof Annotation)
         return (Annotation) elem;

      if (elem instanceof java.lang.annotation.Annotation)
         return createFromElement((java.lang.annotation.Annotation) elem);

      if (elem instanceof CFAnnotation)
         return createFromElement((IAnnotation) elem);

      throw new UnsupportedOperationException();
   }
/** Converts to an Annotation if needed */
Converts to an Annotation if needed
Converts to an Annotation if needed
public static Annotation toAnnotation(Object elem) {
      if (elem instanceof Annotation)
         return (Annotation) elem;
      if (elem instanceof java.lang.annotation.Annotation)
         return createFromElement((java.lang.annotation.Annotation) elem);
      if (elem instanceof CFAnnotation)
         return createFromElement((IAnnotation) elem);
      throw new UnsupportedOperationException();
   }
public static Annotation toAnnotation ( Object elem ) { if ( elem instanceof Annotation ) return ( Annotation ) elem ; if ( elem instanceof java . lang . annotation . Annotation ) return createFromElement ( ( java . lang . annotation . Annotation ) elem ) ; if ( elem instanceof CFAnnotation ) return createFromElement ( ( IAnnotation ) elem ) ; throw new UnsupportedOperationException ( ) ; }
Converts to an Annotation if needed
Converts to an Annotation if needed