langtools/src/share/classes/com/sun/tools/javac/tree/JCTree.java
changeset 7072 4863847e93a5
parent 6580 d3d578d22cc7
child 7074 0183c3f9614e
equal deleted inserted replaced
7071:8bcda461a06a 7072:4863847e93a5
  2065         public int getTag() {
  2065         public int getTag() {
  2066             return MODIFIERS;
  2066             return MODIFIERS;
  2067         }
  2067         }
  2068     }
  2068     }
  2069 
  2069 
  2070     public static class JCAnnotatedType extends JCExpression implements com.sun.source.tree.AnnotatedTypeTree {
  2070     public static class JCAnnotatedType extends JCExpression
       
  2071 //308            implements com.sun.source.tree.AnnotatedTypeTree
       
  2072     {
  2071         public List<JCTypeAnnotation> annotations;
  2073         public List<JCTypeAnnotation> annotations;
  2072         public JCExpression underlyingType;
  2074         public JCExpression underlyingType;
  2073         protected JCAnnotatedType(List<JCTypeAnnotation> annotations, JCExpression underlyingType) {
  2075         protected JCAnnotatedType(List<JCTypeAnnotation> annotations, JCExpression underlyingType) {
  2074             this.annotations = annotations;
  2076             throw new UnsupportedOperationException();
  2075             this.underlyingType = underlyingType;
  2077 //308            this.annotations = annotations;
       
  2078 //308            this.underlyingType = underlyingType;
  2076         }
  2079         }
  2077         @Override
  2080         @Override
  2078         public void accept(Visitor v) { v.visitAnnotatedType(this); }
  2081         public void accept(Visitor v) { v.visitAnnotatedType(this); }
  2079 
  2082 
  2080         public Kind getKind() { return Kind.ANNOTATED_TYPE; }
  2083         public Kind getKind() {
       
  2084             throw new UnsupportedOperationException();
       
  2085 //308            return Kind.ANNOTATED_TYPE;
       
  2086         }
  2081         public List<JCTypeAnnotation> getAnnotations() {
  2087         public List<JCTypeAnnotation> getAnnotations() {
  2082             return annotations;
  2088             return annotations;
  2083         }
  2089         }
  2084         public JCExpression getUnderlyingType() {
  2090         public JCExpression getUnderlyingType() {
  2085             return underlyingType;
  2091             return underlyingType;
  2086         }
  2092         }
  2087         @Override
  2093         @Override
  2088         public <R,D> R accept(TreeVisitor<R,D> v, D d) {
  2094         public <R,D> R accept(TreeVisitor<R,D> v, D d) {
  2089             return v.visitAnnotatedType(this, d);
  2095             throw new UnsupportedOperationException();
       
  2096 //308            return v.visitAnnotatedType(this, d);
  2090         }
  2097         }
  2091         @Override
  2098         @Override
  2092         public int getTag() {
  2099         public int getTag() {
  2093             return ANNOTATED_TYPE;
  2100             return ANNOTATED_TYPE;
  2094         }
  2101         }