static public AnnotationBuilder annotation(String name) { return new AnnotationBuilder(name); }
AnnotationBuilder builder = AnnotationBuilder.annotation(annotation.annotationType().getSimpleName()); builder.withProperties(PropertyValueBuilder.propertyOfArray(method.getName(), listString)); } else { builder.withProperties(PropertyValueBuilder.property(method.getName(), toValue(value)));
@Override public KeyValueNode buildNode() { KeyValueNode node = super.buildNode(); node.setValue(type.buildNode()); if ( ! annotations.isEmpty() ) { for (AnnotationBuilder annotation : annotations) { node.getValue().addChild(annotation.buildNode()); } } return node; }
@Override public KeyValueNode buildNode() { KeyValueNode node = super.buildNode(); addProperty(node.getValue(), "descrption", description); if ( ! bodies.isEmpty()) { ObjectNodeImpl valueNode = new ObjectNodeImpl(); KeyValueNodeImpl bkvn = new KeyValueNodeImpl(new StringNodeImpl("body"), valueNode); node.getValue().addChild(bkvn); for (BodyBuilder body : bodies) { valueNode.addChild(body.buildNode()); } } if ( ! annotations.isEmpty() ) { for (AnnotationBuilder annotation : annotations) { node.getValue().addChild(annotation.buildNode()); } } return node; }
AnnotationBuilder builder = AnnotationBuilder.annotation(annotation.annotationType().getSimpleName()); builder.withProperties(PropertyValueBuilder.propertyOfArray(method.getName(), listString)); } else { builder.withProperties(PropertyValueBuilder.property(method.getName(), toValue(value)));
node.getValue().addChild(annotation.buildNode());
node.addChild(annotation.buildNode());