public DecoratedAnnotationMirror(AnnotationMirror delegate, DecoratedProcessingEnvironment env) { if (delegate == null) { throw new NullPointerException("A delegate must be provided."); } if (env == null) { throw new NullPointerException("A processing environment must be provided."); } //unwrap. while (delegate instanceof DecoratedAnnotationMirror) { delegate = ((DecoratedAnnotationMirror) delegate).delegate; } this.delegate = delegate; this.env = env; if (env.getAnnotationMirrorDecorations() != null) { for (AnnotationMirrorDecoration decoration : env.getAnnotationMirrorDecorations()) { decoration.applyTo(this); } } }
public DecoratedAnnotationMirror(AnnotationMirror delegate, DecoratedProcessingEnvironment env) { if (delegate == null) { throw new NullPointerException("A delegate must be provided."); } if (env == null) { throw new NullPointerException("A processing environment must be provided."); } //unwrap. while (delegate instanceof DecoratedAnnotationMirror) { delegate = ((DecoratedAnnotationMirror) delegate).delegate; } this.delegate = delegate; this.env = env; if (env.getAnnotationMirrorDecorations() != null) { for (AnnotationMirrorDecoration decoration : env.getAnnotationMirrorDecorations()) { decoration.applyTo(this); } } }