src/share/classes/com/sun/tools/apt/mirror/declaration/AnnotationValueImpl.java

Print this page




  23  * have any questions.
  24  */
  25 
  26 package com.sun.tools.apt.mirror.declaration;
  27 
  28 
  29 import java.util.Collection;
  30 import java.util.ArrayList;
  31 
  32 import com.sun.mirror.declaration.*;
  33 import com.sun.mirror.util.SourcePosition;
  34 import com.sun.tools.apt.mirror.AptEnv;
  35 import com.sun.tools.javac.code.Attribute;
  36 import com.sun.tools.javac.code.Symbol.*;
  37 import com.sun.tools.javac.code.TypeTags;
  38 
  39 
  40 /**
  41  * Implementation of AnnotationValue
  42  */
  43 
  44 public class AnnotationValueImpl implements AnnotationValue {
  45 
  46     protected final AptEnv env;
  47     protected final Attribute attr;
  48     protected final AnnotationMirrorImpl annotation;
  49 
  50     AnnotationValueImpl(AptEnv env, Attribute attr, AnnotationMirrorImpl annotation) {
  51         this.env = env;
  52         this.attr = attr;
  53         this.annotation = annotation;
  54     }
  55 
  56 
  57     /**
  58      * {@inheritDoc}
  59      */
  60     public String toString() {
  61         StringBuilder sb = new StringBuilder();
  62         Constants.Formatter fmtr = Constants.getFormatter(sb);
  63 




  23  * have any questions.
  24  */
  25 
  26 package com.sun.tools.apt.mirror.declaration;
  27 
  28 
  29 import java.util.Collection;
  30 import java.util.ArrayList;
  31 
  32 import com.sun.mirror.declaration.*;
  33 import com.sun.mirror.util.SourcePosition;
  34 import com.sun.tools.apt.mirror.AptEnv;
  35 import com.sun.tools.javac.code.Attribute;
  36 import com.sun.tools.javac.code.Symbol.*;
  37 import com.sun.tools.javac.code.TypeTags;
  38 
  39 
  40 /**
  41  * Implementation of AnnotationValue
  42  */
  43 @SuppressWarnings("deprecation")
  44 public class AnnotationValueImpl implements AnnotationValue {
  45 
  46     protected final AptEnv env;
  47     protected final Attribute attr;
  48     protected final AnnotationMirrorImpl annotation;
  49 
  50     AnnotationValueImpl(AptEnv env, Attribute attr, AnnotationMirrorImpl annotation) {
  51         this.env = env;
  52         this.attr = attr;
  53         this.annotation = annotation;
  54     }
  55 
  56 
  57     /**
  58      * {@inheritDoc}
  59      */
  60     public String toString() {
  61         StringBuilder sb = new StringBuilder();
  62         Constants.Formatter fmtr = Constants.getFormatter(sb);
  63