public AnnotationImpl(final AnnotationTargetSource<O, T> parent, final Object internal) { this.parent = parent; ast = ((ASTNode) parent.getInternal()).getAST(); annotation = (org.eclipse.jdt.core.dom.Annotation) internal; }
public AnnotationImpl(final AnnotationTargetSource<O, T> parent, final Object internal) { this.parent = parent; ast = ((ASTNode) parent.getInternal()).getAST(); Assert.notNull(internal, "internal representation must not be null"); annotation = (org.eclipse.jdt.core.dom.Annotation) internal; }
public AnnotationImpl(final AnnotationTargetSource<O, T> parent, final Object internal) { this.parent = parent; ast = ((ASTNode) parent.getInternal()).getAST(); Assert.notNull(internal, "internal representation must not be null"); annotation = (org.eclipse.jdt.core.dom.Annotation) internal; }
private static org.eclipse.jdt.core.dom.Annotation createAnnotation(final AnnotationTargetSource<?, ?> parent, final AnnotationType type) { AST ast = ((ASTNode) parent.getInternal()).getAST(); switch (type) { case MARKER: return ast.newMarkerAnnotation(); case SINGLE: return ast.newSingleMemberAnnotation(); case NORMAL: return ast.newNormalAnnotation(); default: throw new IllegalArgumentException("Unknown annotation type: " + type); } }
private static org.eclipse.jdt.core.dom.Annotation createAnnotation(final AnnotationTargetSource<?, ?> parent, final AnnotationType type) { AST ast = ((ASTNode) parent.getInternal()).getAST(); switch (type) { case MARKER: return ast.newMarkerAnnotation(); case SINGLE: return ast.newSingleMemberAnnotation(); case NORMAL: return ast.newNormalAnnotation(); default: throw new IllegalArgumentException("Unknown annotation type: " + type); } }
private static org.eclipse.jdt.core.dom.Annotation createAnnotation(final AnnotationTargetSource<?, ?> parent, final AnnotationType type) { AST ast = ((ASTNode) parent.getInternal()).getAST(); switch (type) { case MARKER: return ast.newMarkerAnnotation(); case SINGLE: return ast.newSingleMemberAnnotation(); case NORMAL: return ast.newNormalAnnotation(); default: throw new IllegalArgumentException("Unknown annotation type: " + type); } }