@@ -0,0 +1,1747 @@
+/*%0A * Copyright 2015 Michael Rozumyanskiy%0A *%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A *     http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A */%0A%0Apackage io.michaelrocks.lightsaber.processor.annotations;%0A%0Aimport org.apache.commons.lang3.Validate;%0Aimport org.objectweb.asm.Type;%0A%0Aimport java.util.HashMap;%0Aimport java.util.Map;%0A%0Apublic class AnnotationDescriptorBuilder %7B%0A    private final Type annotationType;%0A    private final Map%3CString, Object%3E values = new HashMap%3C%3E();%0A    private boolean isResolved = false;%0A%0A    public AnnotationDescriptorBuilder(final Type annotationType) %7B%0A        this.annotationType = annotationType;%0A    %7D%0A%0A    public AnnotationDescriptorBuilder addDefaultValue(final Object defaultValue) %7B%0A        return addDefaultValue(%22value%22, defaultValue);%0A    %7D%0A%0A    public AnnotationDescriptorBuilder addDefaultValue(final String name, final Object defaultValue) %7B%0A        Validate.notNull(name);%0A        Validate.notNull(defaultValue);%0A        values.put(name, defaultValue);%0A        return this;%0A    %7D%0A%0A    public AnnotationDescriptorBuilder setResolved(final boolean resolved) %7B%0A        isResolved = resolved;%0A        return this;%0A    %7D%0A%0A    public AnnotationDescriptor build() %7B%0A        return new AnnotationDescriptor(annotationType, values, isResolved);%0A    %7D%0A%7D%0A

Implement a builder for AnnotationDescriptor