system/src/sc/lang/java/Annotation.java
public static Annotation createFromAnnotation(Object elem) {
      if (elem instanceof Annotation)
         return (Annotation) ((Annotation) elem).deepCopy(ISemanticNode.CopyNormal, null);

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

      throw new UnsupportedOperationException();

   }
/** Like toAnnotation but guarantees a copy */
Like toAnnotation but guarantees a copy
Like toAnnotation but guarantees a copy
public static Annotation createFromAnnotation(Object elem) {
      if (elem instanceof Annotation)
         return (Annotation) ((Annotation) elem).deepCopy(ISemanticNode.CopyNormal, null);
      if (elem instanceof java.lang.annotation.Annotation)
         return createFromElement((java.lang.annotation.Annotation) elem);
      throw new UnsupportedOperationException();
   }
public static Annotation createFromAnnotation ( Object elem ) { if ( elem instanceof Annotation ) return ( Annotation ) ( ( Annotation ) elem ) . deepCopy ( ISemanticNode . CopyNormal , null ) ; if ( elem instanceof java . lang . annotation . Annotation ) return createFromElement ( ( java . lang . annotation . Annotation ) elem ) ; throw new UnsupportedOperationException ( ) ; }
Like toAnnotation but guarantees a copy
Like toAnnotation but guarantees a copy