Package org.codehaus.annogen.view.internal

Examples of org.codehaus.annogen.view.internal.IndigenousAnnoExtractor


  // ========================================================================
  // JamElementIdPool implementation

  public ElementId getIdFor(final JAnnotatedElement element) {

    final IndigenousAnnoExtractor iae = JamIAE.create(element,
                                                      mLogger,
                                                      mRTiger,
                                                      mJTiger);

    class MyVisitor extends JVisitor {
View Full Code Here


  // ========================================================================
  // ElementIdFactory implementation

  public ElementId getIdFor(ProgramElementDoc ped) {
    if (ped == null) throw new IllegalArgumentException("null ped");
    IndigenousAnnoExtractor iae = ProgramElementJavadocIAE.create(ped,mJTiger);
    if (ped instanceof PackageDoc) {
      return ElementIdImpl.forPackage(iae,ped.name());
    } else if (ped instanceof ClassDoc) {
      return ElementIdImpl.forClass(iae, ped.name());
    } else if (ped instanceof FieldDoc) {
View Full Code Here

    }
  }

  public ElementId getIdFor(ExecutableMemberDoc emd, int paramNum) {
    if (emd == null) throw new IllegalArgumentException("null emd");
    IndigenousAnnoExtractor iae = ParameterJavadocIAE.create(emd,paramNum,mJTiger);
    return ElementIdImpl.forParameter(iae,
                                      emd.containingClass().name(),
                                      emd.name(),
                                      getSignature(emd),
                                      paramNum);
View Full Code Here

   * java.lang.Package
   */
  public static IndigenousAnnoExtractor create(final Package x,
                                               final ReflectAnnogenTigerDelegate tiger) {
    if (tiger == null) return NullIAE.getInstance();
    return new IndigenousAnnoExtractor() {
      public boolean extractIndigenousAnnotations(AnnoBeanSet out) {
        return tiger.extractAnnotations(out,x);
      }
    };
  }
View Full Code Here

   * java.lang.reflect.Class
   */
  public static IndigenousAnnoExtractor create(final Class x,
                                               final ReflectAnnogenTigerDelegate tiger) {
    if (tiger == null) return NullIAE.getInstance();
    return new IndigenousAnnoExtractor() {
      public boolean extractIndigenousAnnotations(AnnoBeanSet out) {
        return tiger.extractAnnotations(out,x);
      }
    };
  }
View Full Code Here

   * java.lang.reflect.Method
   */
  public static IndigenousAnnoExtractor create(final Method x,
                                               final ReflectAnnogenTigerDelegate tiger) {
    if (tiger == null) return NullIAE.getInstance();
    return new IndigenousAnnoExtractor() {
      public boolean extractIndigenousAnnotations(AnnoBeanSet out) {
        return tiger.extractAnnotations(out,x);
      }
    };
  }
View Full Code Here

   * java.lang.reflect.Constructor
   */
  public static IndigenousAnnoExtractor create(final Constructor x,
                                               final ReflectAnnogenTigerDelegate tiger) {
    if (tiger == null) return NullIAE.getInstance();
    return new IndigenousAnnoExtractor() {
      public boolean extractIndigenousAnnotations(AnnoBeanSet out) {
        return tiger.extractAnnotations(out,x);
      }
    };
  }
View Full Code Here

   * java.lang.reflect.Field
   */
  public static IndigenousAnnoExtractor create(final Field x,
                                               final ReflectAnnogenTigerDelegate tiger) {
    if (tiger == null) return NullIAE.getInstance();
    return new IndigenousAnnoExtractor() {
      public boolean extractIndigenousAnnotations(AnnoBeanSet out) {
        return tiger.extractAnnotations(out,x);
      }
    };
  }
View Full Code Here

   */
  public static IndigenousAnnoExtractor create(final Constructor x,
                                               final int n,
                                               final ReflectAnnogenTigerDelegate tiger) {
    if (tiger == null) return NullIAE.getInstance();
    return new IndigenousAnnoExtractor() {
      public boolean extractIndigenousAnnotations(AnnoBeanSet out) {
        return tiger.extractAnnotations(out,x,n);
      }
    };
  }
View Full Code Here

   */
  public static IndigenousAnnoExtractor create(final Method x,
                                               final int n,
                                               final ReflectAnnogenTigerDelegate tiger) {
    if (tiger == null) return NullIAE.getInstance();
    return new IndigenousAnnoExtractor() {
      public boolean extractIndigenousAnnotations(AnnoBeanSet out) {
        return tiger.extractAnnotations(out,x,n);
      }
    };
  }
View Full Code Here

TOP

Related Classes of org.codehaus.annogen.view.internal.IndigenousAnnoExtractor

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.