public AnnotationElementImpl(final JavaAnnotationSource parent, final Object internal) { this.parent = parent; ast = ((ASTNode) parent.getInternal()).getAST(); member = (AnnotationTypeMemberDeclaration) internal; }
public AnnotationElementImpl(final JavaAnnotationSource parent, final Object internal) { this.parent = parent; ast = ((ASTNode) parent.getInternal()).getAST(); member = (AnnotationTypeMemberDeclaration) internal; }
public AnnotationElementImpl(final JavaAnnotationSource parent, final Object internal) { this.parent = parent; ast = ((ASTNode) parent.getInternal()).getAST(); member = (AnnotationTypeMemberDeclaration) internal; }
public AnnotationElementImpl(final JavaAnnotationSource parent) { this(parent, ((ASTNode) parent.getInternal()).getAST().newAnnotationTypeMemberDeclaration()); }
public AnnotationElementImpl(final JavaAnnotationSource parent) { this(parent, ((ASTNode) parent.getInternal()).getAST().newAnnotationTypeMemberDeclaration()); }
public AnnotationElementImpl(final JavaAnnotationSource parent) { this(parent, ((ASTNode) parent.getInternal()).getAST().newAnnotationTypeMemberDeclaration()); }
private static AnnotationTypeMemberDeclaration parseElement(JavaAnnotationSource parent, String declaration) { if (!declaration.trim().endsWith(";")) { declaration = declaration + ";"; } String stub = "public @interface Stub { " + declaration + " }"; JavaAnnotationSource temp = (JavaAnnotationSource) Roaster.parse(stub); List<AnnotationElementSource> fields = temp.getAnnotationElements(); AnnotationTypeMemberDeclaration newField = (AnnotationTypeMemberDeclaration) fields.get(0).getInternal(); return (AnnotationTypeMemberDeclaration) ASTNode.copySubtree(((ASTNode) parent.getInternal()).getAST(), newField); }
private static AnnotationTypeMemberDeclaration parseElement(JavaAnnotationSource parent, String declaration) { if (!declaration.trim().endsWith(";")) { declaration = declaration + ";"; } String stub = "public @interface Stub { " + declaration + " }"; JavaAnnotationSource temp = (JavaAnnotationSource) Roaster.parse(stub); List<AnnotationElementSource> fields = temp.getAnnotationElements(); AnnotationTypeMemberDeclaration newField = (AnnotationTypeMemberDeclaration) fields.get(0).getInternal(); return (AnnotationTypeMemberDeclaration) ASTNode.copySubtree(((ASTNode) parent.getInternal()).getAST(), newField); }
private static AnnotationTypeMemberDeclaration parseElement(JavaAnnotationSource parent, String declaration) { if (!declaration.trim().endsWith(";")) { declaration = declaration + ";"; } String stub = "public @interface Stub { " + declaration + " }"; JavaAnnotationSource temp = (JavaAnnotationSource) Roaster.parse(stub); List<AnnotationElementSource> fields = temp.getAnnotationElements(); AnnotationTypeMemberDeclaration newField = (AnnotationTypeMemberDeclaration) fields.get(0).getInternal(); return (AnnotationTypeMemberDeclaration) ASTNode.copySubtree(((ASTNode) parent.getInternal()).getAST(), newField); }