1 7 8 package javax.lang.model.util; 9 10 11 import javax.lang.model.element.*; 12 import javax.annotation.processing.SupportedSourceVersion; 13 import javax.lang.model.element.*; 14 import static javax.lang.model.element.ElementKind.*; 15 import static javax.lang.model.SourceVersion.*; 16 import javax.lang.model.SourceVersion; 17 18 19 53 @SupportedSourceVersion(RELEASE_6) 54 public abstract class AbstractElementVisitor6<R, P> implements ElementVisitor<R, P> { 55 58 protected AbstractElementVisitor6(){} 59 60 70 public final R visit(Element e, P p) { 71 return e.accept(this, p); 72 } 73 74 84 public final R visit(Element e) { 85 return e.accept(this, null); 86 } 87 88 102 public R visitUnknown(Element e, P p) { 103 throw new UnknownElementException(e, p); 104 } 105 } 106 | Popular Tags |