001    /*
002     * Copyright 2010-2013 JetBrains s.r.o.
003     *
004     * Licensed under the Apache License, Version 2.0 (the "License");
005     * you may not use this file except in compliance with the License.
006     * You may obtain a copy of the License at
007     *
008     * http://www.apache.org/licenses/LICENSE-2.0
009     *
010     * Unless required by applicable law or agreed to in writing, software
011     * distributed under the License is distributed on an "AS IS" BASIS,
012     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013     * See the License for the specific language governing permissions and
014     * limitations under the License.
015     */
016    
017    package org.jetbrains.jet.lang.descriptors.annotations;
018    
019    import org.jetbrains.annotations.NotNull;
020    import org.jetbrains.jet.lang.resolve.constants.*;
021    import org.jetbrains.jet.lang.resolve.constants.StringValue;
022    
023    public interface AnnotationArgumentVisitor<R, D> {
024        R visitLongValue(@NotNull LongValue value, D data);
025    
026        R visitIntValue(IntValue value, D data);
027    
028        R visitErrorValue(ErrorValue value, D data);
029    
030        R visitShortValue(ShortValue value, D data);
031    
032        R visitByteValue(ByteValue value, D data);
033    
034        R visitDoubleValue(DoubleValue value, D data);
035    
036        R visitFloatValue(FloatValue value, D data);
037    
038        R visitBooleanValue(BooleanValue value, D data);
039    
040        R visitCharValue(CharValue value, D data);
041    
042        R visitStringValue(StringValue value, D data);
043    
044        R visitNullValue(NullValue value, D data);
045        
046        R visitEnumValue(EnumValue value, D data);
047        
048        R visitArrayValue(ArrayValue value, D data);
049    
050        R visitAnnotationValue(AnnotationValue value, D data);
051    
052        R visitJavaClassValue(JavaClassValue value, D data);
053    }