org.eclipse.jdt.apt.core_3.3.500.v20110420-1015

16:44:58.627 INFO  jd.cli.Main - Decompiling org.eclipse.jdt.apt.core_3.3.500.v20110420-1015.jar
package com.sun.mirror.apt;

public abstract interface AnnotationProcessor
{
  public abstract void process();
}

/* Location:
 * Qualified Name:     com.sun.mirror.apt.AnnotationProcessor
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package com.sun.mirror.apt;

import com.sun.mirror.declaration.AnnotationTypeDeclaration;
import com.sun.mirror.declaration.Declaration;
import com.sun.mirror.declaration.PackageDeclaration;
import com.sun.mirror.declaration.TypeDeclaration;
import com.sun.mirror.util.Declarations;
import com.sun.mirror.util.Types;
import java.util.Collection;
import java.util.Map;

public abstract interface AnnotationProcessorEnvironment
{
  public abstract Map<String, String> getOptions();
  
  public abstract Messager getMessager();
  
  public abstract Filer getFiler();
  
  public abstract Collection<TypeDeclaration> getSpecifiedTypeDeclarations();
  
  public abstract PackageDeclaration getPackage(String paramString);
  
  public abstract TypeDeclaration getTypeDeclaration(String paramString);
  
  public abstract Collection<TypeDeclaration> getTypeDeclarations();
  
  public abstract Collection<Declaration> getDeclarationsAnnotatedWith(AnnotationTypeDeclaration paramAnnotationTypeDeclaration);
  
  public abstract Declarations getDeclarationUtils();
  
  public abstract Types getTypeUtils();
  
  public abstract void addListener(AnnotationProcessorListener paramAnnotationProcessorListener);
  
  public abstract void removeListener(AnnotationProcessorListener paramAnnotationProcessorListener);
}

/* Location:
 * Qualified Name:     com.sun.mirror.apt.AnnotationProcessorEnvironment
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package com.sun.mirror.apt;

import com.sun.mirror.declaration.AnnotationTypeDeclaration;
import java.util.Collection;
import java.util.Set;

public abstract interface AnnotationProcessorFactory
{
  public abstract Collection<String> supportedOptions();
  
  public abstract Collection<String> supportedAnnotationTypes();
  
  public abstract AnnotationProcessor getProcessorFor(Set<AnnotationTypeDeclaration> paramSet, AnnotationProcessorEnvironment paramAnnotationProcessorEnvironment);
}

/* Location:
 * Qualified Name:     com.sun.mirror.apt.AnnotationProcessorFactory
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package com.sun.mirror.apt;

import java.util.EventListener;

public abstract interface AnnotationProcessorListener
  extends EventListener
{}

/* Location:
 * Qualified Name:     com.sun.mirror.apt.AnnotationProcessorListener
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package com.sun.mirror.apt;

import java.util.Collection;
import java.util.LinkedList;
import java.util.List;

class AnnotationProcessors$CompositeAnnotationProcessor
  implements AnnotationProcessor
{
  private List<AnnotationProcessor> aps = new LinkedList();
  
  public AnnotationProcessors$CompositeAnnotationProcessor(Collection<AnnotationProcessor> aps)
  {
    this.aps.addAll(aps);
  }
  
  public AnnotationProcessors$CompositeAnnotationProcessor(AnnotationProcessor... aps)
  {
    AnnotationProcessor[] arrayOfAnnotationProcessor;
    int j = (arrayOfAnnotationProcessor = aps).length;
    for (int i = 0; i < j; i++)
    {
      AnnotationProcessor ap = arrayOfAnnotationProcessor[i];
      this.aps.add(ap);
    }
  }
  
  public void process()
  {
    for (AnnotationProcessor ap : aps) {
      ap.process();
    }
  }
}

/* Location:
 * Qualified Name:     com.sun.mirror.apt.AnnotationProcessors.CompositeAnnotationProcessor
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package com.sun.mirror.apt;

class AnnotationProcessors$NoOpAP
  implements AnnotationProcessor
{
  public void process() {}
}

/* Location:
 * Qualified Name:     com.sun.mirror.apt.AnnotationProcessors.NoOpAP
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package com.sun.mirror.apt;

import java.util.Collection;
import java.util.LinkedList;
import java.util.List;

public class AnnotationProcessors
{
  static class CompositeAnnotationProcessor
    implements AnnotationProcessor
  {
    private List<AnnotationProcessor> aps = new LinkedList();
    
    public CompositeAnnotationProcessor(Collection<AnnotationProcessor> aps)
    {
      this.aps.addAll(aps);
    }
    
    public CompositeAnnotationProcessor(AnnotationProcessor... aps)
    {
      AnnotationProcessor[] arrayOfAnnotationProcessor;
      int j = (arrayOfAnnotationProcessor = aps).length;
      for (int i = 0; i < j; i++)
      {
        AnnotationProcessor ap = arrayOfAnnotationProcessor[i];
        this.aps.add(ap);
      }
    }
    
    public void process()
    {
      for (AnnotationProcessor ap : aps) {
        ap.process();
      }
    }
  }
  
  public static final AnnotationProcessor NO_OP = new NoOpAP();
  
  public static AnnotationProcessor getCompositeAnnotationProcessor(AnnotationProcessor... aps)
  {
    return new CompositeAnnotationProcessor(aps);
  }
  
  public static AnnotationProcessor getCompositeAnnotationProcessor(Collection<AnnotationProcessor> aps)
  {
    return new CompositeAnnotationProcessor(aps);
  }
  
  static class NoOpAP
    implements AnnotationProcessor
  {
    public void process() {}
  }
}

/* Location:
 * Qualified Name:     com.sun.mirror.apt.AnnotationProcessors
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package com.sun.mirror.apt;

public enum Filer$Location
{
  SOURCE_TREE,  CLASS_TREE;
}

/* Location:
 * Qualified Name:     com.sun.mirror.apt.Filer.Location
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package com.sun.mirror.apt;

import java.io.File;
import java.io.IOException;
import java.io.OutputStream;
import java.io.PrintWriter;

public abstract interface Filer
{
  public abstract PrintWriter createSourceFile(String paramString)
    throws IOException;
  
  public abstract OutputStream createClassFile(String paramString)
    throws IOException;
  
  public abstract PrintWriter createTextFile(Location paramLocation, String paramString1, File paramFile, String paramString2)
    throws IOException;
  
  public abstract OutputStream createBinaryFile(Location paramLocation, String paramString, File paramFile)
    throws IOException;
  
  public static enum Location
  {
    SOURCE_TREE,  CLASS_TREE;
  }
}

/* Location:
 * Qualified Name:     com.sun.mirror.apt.Filer
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package com.sun.mirror.apt;

import com.sun.mirror.util.SourcePosition;

public abstract interface Messager
{
  public abstract void printError(String paramString);
  
  public abstract void printError(SourcePosition paramSourcePosition, String paramString);
  
  public abstract void printWarning(String paramString);
  
  public abstract void printWarning(SourcePosition paramSourcePosition, String paramString);
  
  public abstract void printNotice(String paramString);
  
  public abstract void printNotice(SourcePosition paramSourcePosition, String paramString);
}

/* Location:
 * Qualified Name:     com.sun.mirror.apt.Messager
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package com.sun.mirror.apt;

import java.util.EventObject;

public abstract class RoundCompleteEvent
  extends EventObject
{
  private RoundState rs;
  
  protected RoundCompleteEvent(AnnotationProcessorEnvironment source, RoundState rs)
  {
    super(source);
    this.rs = rs;
  }
  
  public RoundState getRoundState()
  {
    return rs;
  }
  
  public AnnotationProcessorEnvironment getSource()
  {
    return (AnnotationProcessorEnvironment)super.getSource();
  }
}

/* Location:
 * Qualified Name:     com.sun.mirror.apt.RoundCompleteEvent
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package com.sun.mirror.apt;

public abstract interface RoundCompleteListener
  extends AnnotationProcessorListener
{
  public abstract void roundComplete(RoundCompleteEvent paramRoundCompleteEvent);
}

/* Location:
 * Qualified Name:     com.sun.mirror.apt.RoundCompleteListener
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package com.sun.mirror.apt;

public abstract interface RoundState
{
  public abstract boolean finalRound();
  
  public abstract boolean errorRaised();
  
  public abstract boolean sourceFilesCreated();
  
  public abstract boolean classFilesCreated();
}

/* Location:
 * Qualified Name:     com.sun.mirror.apt.RoundState
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package com.sun.mirror.declaration;

import com.sun.mirror.type.AnnotationType;
import com.sun.mirror.util.SourcePosition;
import java.util.Map;

public abstract interface AnnotationMirror
{
  public abstract AnnotationType getAnnotationType();
  
  public abstract SourcePosition getPosition();
  
  public abstract Map<AnnotationTypeElementDeclaration, AnnotationValue> getElementValues();
}

/* Location:
 * Qualified Name:     com.sun.mirror.declaration.AnnotationMirror
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package com.sun.mirror.declaration;

import java.util.Collection;

public abstract interface AnnotationTypeDeclaration
  extends InterfaceDeclaration
{
  public abstract Collection<AnnotationTypeElementDeclaration> getMethods();
}

/* Location:
 * Qualified Name:     com.sun.mirror.declaration.AnnotationTypeDeclaration
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package com.sun.mirror.declaration;

public abstract interface AnnotationTypeElementDeclaration
  extends MethodDeclaration
{
  public abstract AnnotationValue getDefaultValue();
  
  public abstract AnnotationTypeDeclaration getDeclaringType();
}

/* Location:
 * Qualified Name:     com.sun.mirror.declaration.AnnotationTypeElementDeclaration
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package com.sun.mirror.declaration;

import com.sun.mirror.util.SourcePosition;

public abstract interface AnnotationValue
{
  public abstract Object getValue();
  
  public abstract SourcePosition getPosition();
  
  public abstract String toString();
}

/* Location:
 * Qualified Name:     com.sun.mirror.declaration.AnnotationValue
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package com.sun.mirror.declaration;

import com.sun.mirror.type.ClassType;
import java.util.Collection;

public abstract interface ClassDeclaration
  extends TypeDeclaration
{
  public abstract ClassType getSuperclass();
  
  public abstract Collection<ConstructorDeclaration> getConstructors();
  
  public abstract Collection<MethodDeclaration> getMethods();
}

/* Location:
 * Qualified Name:     com.sun.mirror.declaration.ClassDeclaration
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package com.sun.mirror.declaration;

public abstract interface ConstructorDeclaration
  extends ExecutableDeclaration
{}

/* Location:
 * Qualified Name:     com.sun.mirror.declaration.ConstructorDeclaration
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package com.sun.mirror.declaration;

import com.sun.mirror.util.DeclarationVisitor;
import com.sun.mirror.util.SourcePosition;
import java.lang.annotation.Annotation;
import java.util.Collection;

public abstract interface Declaration
{
  public abstract boolean equals(Object paramObject);
  
  public abstract String getDocComment();
  
  public abstract Collection<AnnotationMirror> getAnnotationMirrors();
  
  public abstract <A extends Annotation> A getAnnotation(Class<A> paramClass);
  
  public abstract Collection<Modifier> getModifiers();
  
  public abstract String getSimpleName();
  
  public abstract SourcePosition getPosition();
  
  public abstract void accept(DeclarationVisitor paramDeclarationVisitor);
}

/* Location:
 * Qualified Name:     com.sun.mirror.declaration.Declaration
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package com.sun.mirror.declaration;

public abstract interface EnumConstantDeclaration
  extends FieldDeclaration
{
  public abstract EnumDeclaration getDeclaringType();
}

/* Location:
 * Qualified Name:     com.sun.mirror.declaration.EnumConstantDeclaration
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package com.sun.mirror.declaration;

import java.util.Collection;

public abstract interface EnumDeclaration
  extends ClassDeclaration
{
  public abstract Collection<EnumConstantDeclaration> getEnumConstants();
}

/* Location:
 * Qualified Name:     com.sun.mirror.declaration.EnumDeclaration
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package com.sun.mirror.declaration;

import com.sun.mirror.type.ReferenceType;
import java.util.Collection;

public abstract interface ExecutableDeclaration
  extends MemberDeclaration
{
  public abstract boolean isVarArgs();
  
  public abstract Collection<TypeParameterDeclaration> getFormalTypeParameters();
  
  public abstract Collection<ParameterDeclaration> getParameters();
  
  public abstract Collection<ReferenceType> getThrownTypes();
}

/* Location:
 * Qualified Name:     com.sun.mirror.declaration.ExecutableDeclaration
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package com.sun.mirror.declaration;

import com.sun.mirror.type.TypeMirror;

public abstract interface FieldDeclaration
  extends MemberDeclaration
{
  public abstract TypeMirror getType();
  
  public abstract Object getConstantValue();
  
  public abstract String getConstantExpression();
}

/* Location:
 * Qualified Name:     com.sun.mirror.declaration.FieldDeclaration
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package com.sun.mirror.declaration;

public abstract interface InterfaceDeclaration
  extends TypeDeclaration
{}

/* Location:
 * Qualified Name:     com.sun.mirror.declaration.InterfaceDeclaration
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package com.sun.mirror.declaration;

public abstract interface MemberDeclaration
  extends Declaration
{
  public abstract TypeDeclaration getDeclaringType();
}

/* Location:
 * Qualified Name:     com.sun.mirror.declaration.MemberDeclaration
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package com.sun.mirror.declaration;

import com.sun.mirror.type.TypeMirror;

public abstract interface MethodDeclaration
  extends ExecutableDeclaration
{
  public abstract TypeMirror getReturnType();
}

/* Location:
 * Qualified Name:     com.sun.mirror.declaration.MethodDeclaration
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package com.sun.mirror.declaration;

import java.util.Locale;

public enum Modifier
{
  PUBLIC,  PROTECTED,  PRIVATE,  ABSTRACT,  STATIC,  FINAL,  TRANSIENT,  VOLATILE,  SYNCHRONIZED,  NATIVE,  STRICTFP;
  
  private String lowercase = null;
  
  public String toString()
  {
    if (lowercase == null) {
      lowercase = name().toLowerCase(Locale.US);
    }
    return lowercase;
  }
}

/* Location:
 * Qualified Name:     com.sun.mirror.declaration.Modifier
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package com.sun.mirror.declaration;

import java.util.Collection;

public abstract interface PackageDeclaration
  extends Declaration
{
  public abstract String getQualifiedName();
  
  public abstract Collection<ClassDeclaration> getClasses();
  
  public abstract Collection<EnumDeclaration> getEnums();
  
  public abstract Collection<InterfaceDeclaration> getInterfaces();
  
  public abstract Collection<AnnotationTypeDeclaration> getAnnotationTypes();
}

/* Location:
 * Qualified Name:     com.sun.mirror.declaration.PackageDeclaration
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package com.sun.mirror.declaration;

import com.sun.mirror.type.TypeMirror;

public abstract interface ParameterDeclaration
  extends Declaration
{
  public abstract TypeMirror getType();
}

/* Location:
 * Qualified Name:     com.sun.mirror.declaration.ParameterDeclaration
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package com.sun.mirror.declaration;

import com.sun.mirror.type.InterfaceType;
import java.util.Collection;

public abstract interface TypeDeclaration
  extends MemberDeclaration
{
  public abstract PackageDeclaration getPackage();
  
  public abstract String getQualifiedName();
  
  public abstract Collection<TypeParameterDeclaration> getFormalTypeParameters();
  
  public abstract Collection<InterfaceType> getSuperinterfaces();
  
  public abstract Collection<FieldDeclaration> getFields();
  
  public abstract Collection<? extends MethodDeclaration> getMethods();
  
  public abstract Collection<TypeDeclaration> getNestedTypes();
}

/* Location:
 * Qualified Name:     com.sun.mirror.declaration.TypeDeclaration
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package com.sun.mirror.declaration;

import com.sun.mirror.type.ReferenceType;
import java.util.Collection;

public abstract interface TypeParameterDeclaration
  extends Declaration
{
  public abstract Collection<ReferenceType> getBounds();
  
  public abstract Declaration getOwner();
}

/* Location:
 * Qualified Name:     com.sun.mirror.declaration.TypeParameterDeclaration
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package com.sun.mirror.type;

import com.sun.mirror.declaration.AnnotationTypeDeclaration;

public abstract interface AnnotationType
  extends InterfaceType
{
  public abstract AnnotationTypeDeclaration getDeclaration();
}

/* Location:
 * Qualified Name:     com.sun.mirror.type.AnnotationType
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package com.sun.mirror.type;

public abstract interface ArrayType
  extends ReferenceType
{
  public abstract TypeMirror getComponentType();
}

/* Location:
 * Qualified Name:     com.sun.mirror.type.ArrayType
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package com.sun.mirror.type;

import com.sun.mirror.declaration.ClassDeclaration;

public abstract interface ClassType
  extends DeclaredType
{
  public abstract ClassDeclaration getDeclaration();
  
  public abstract ClassType getSuperclass();
}

/* Location:
 * Qualified Name:     com.sun.mirror.type.ClassType
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package com.sun.mirror.type;

import com.sun.mirror.declaration.TypeDeclaration;
import java.util.Collection;

public abstract interface DeclaredType
  extends ReferenceType
{
  public abstract TypeDeclaration getDeclaration();
  
  public abstract DeclaredType getContainingType();
  
  public abstract Collection<TypeMirror> getActualTypeArguments();
  
  public abstract Collection<InterfaceType> getSuperinterfaces();
}

/* Location:
 * Qualified Name:     com.sun.mirror.type.DeclaredType
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package com.sun.mirror.type;

import com.sun.mirror.declaration.EnumDeclaration;

public abstract interface EnumType
  extends ClassType
{
  public abstract EnumDeclaration getDeclaration();
}

/* Location:
 * Qualified Name:     com.sun.mirror.type.EnumType
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package com.sun.mirror.type;

import com.sun.mirror.declaration.InterfaceDeclaration;

public abstract interface InterfaceType
  extends DeclaredType
{
  public abstract InterfaceDeclaration getDeclaration();
}

/* Location:
 * Qualified Name:     com.sun.mirror.type.InterfaceType
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package com.sun.mirror.type;

public class MirroredTypeException
  extends RuntimeException
{
  private static final long serialVersionUID = 1L;
  private transient TypeMirror type;
  private String name;
  
  public MirroredTypeException(TypeMirror type)
  {
    super("Attempt to access Class object for TypeMirror " + type);
    this.type = type;
    name = type.toString();
  }
  
  public TypeMirror getTypeMirror()
  {
    return type;
  }
  
  public String getQualifiedName()
  {
    return name;
  }
}

/* Location:
 * Qualified Name:     com.sun.mirror.type.MirroredTypeException
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package com.sun.mirror.type;

import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;

public class MirroredTypesException
  extends RuntimeException
{
  private static final long serialVersionUID = 1L;
  private transient Collection<TypeMirror> types;
  private Collection<String> names;
  
  public MirroredTypesException(Collection<TypeMirror> types)
  {
    super("Attempt to access Class objects for TypeMirrors " + types);
    this.types = types;
    names = new ArrayList();
    for (TypeMirror t : types) {
      names.add(t.toString());
    }
  }
  
  public Collection<TypeMirror> getTypeMirrors()
  {
    return types != null ? 
      Collections.unmodifiableCollection(types) : 
      null;
  }
  
  public Collection<String> getQualifiedNames()
  {
    return Collections.unmodifiableCollection(names);
  }
}

/* Location:
 * Qualified Name:     com.sun.mirror.type.MirroredTypesException
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package com.sun.mirror.type;

public enum PrimitiveType$Kind
{
  BOOLEAN,  BYTE,  SHORT,  INT,  LONG,  CHAR,  FLOAT,  DOUBLE;
}

/* Location:
 * Qualified Name:     com.sun.mirror.type.PrimitiveType.Kind
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package com.sun.mirror.type;

public abstract interface PrimitiveType
  extends TypeMirror
{
  public abstract Kind getKind();
  
  public static enum Kind
  {
    BOOLEAN,  BYTE,  SHORT,  INT,  LONG,  CHAR,  FLOAT,  DOUBLE;
  }
}

/* Location:
 * Qualified Name:     com.sun.mirror.type.PrimitiveType
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package com.sun.mirror.type;

public abstract interface ReferenceType
  extends TypeMirror
{}

/* Location:
 * Qualified Name:     com.sun.mirror.type.ReferenceType
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package com.sun.mirror.type;

import com.sun.mirror.util.TypeVisitor;

public abstract interface TypeMirror
{
  public abstract String toString();
  
  public abstract boolean equals(Object paramObject);
  
  public abstract void accept(TypeVisitor paramTypeVisitor);
}

/* Location:
 * Qualified Name:     com.sun.mirror.type.TypeMirror
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package com.sun.mirror.type;

import com.sun.mirror.declaration.TypeParameterDeclaration;

public abstract interface TypeVariable
  extends ReferenceType
{
  public abstract TypeParameterDeclaration getDeclaration();
}

/* Location:
 * Qualified Name:     com.sun.mirror.type.TypeVariable
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package com.sun.mirror.type;

public abstract interface VoidType
  extends TypeMirror
{}

/* Location:
 * Qualified Name:     com.sun.mirror.type.VoidType
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package com.sun.mirror.type;

import java.util.Collection;

public abstract interface WildcardType
  extends TypeMirror
{
  public abstract Collection<ReferenceType> getUpperBounds();
  
  public abstract Collection<ReferenceType> getLowerBounds();
}

/* Location:
 * Qualified Name:     com.sun.mirror.type.WildcardType
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package com.sun.mirror.util;

import com.sun.mirror.declaration.Declaration;
import java.util.Collection;

class DeclarationFilter$1
  extends DeclarationFilter
{
  DeclarationFilter$1(Collection paramCollection) {}
  
  public boolean matches(Declaration d)
  {
    return d.getModifiers().containsAll(val$mods);
  }
}

/* Location:
 * Qualified Name:     com.sun.mirror.util.DeclarationFilter.1
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package com.sun.mirror.util;

import com.sun.mirror.declaration.Declaration;

class DeclarationFilter$2
  extends DeclarationFilter
{
  DeclarationFilter$2(Class paramClass) {}
  
  public boolean matches(Declaration d)
  {
    return val$kind.isInstance(d);
  }
}

/* Location:
 * Qualified Name:     com.sun.mirror.util.DeclarationFilter.2
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package com.sun.mirror.util;

import com.sun.mirror.declaration.Declaration;

class DeclarationFilter$3
  extends DeclarationFilter
{
  DeclarationFilter$3(DeclarationFilter paramDeclarationFilter1, DeclarationFilter paramDeclarationFilter2, DeclarationFilter paramDeclarationFilter3) {}
  
  public boolean matches(Declaration d)
  {
    return (val$f1.matches(d)) && (val$f2.matches(d));
  }
}

/* Location:
 * Qualified Name:     com.sun.mirror.util.DeclarationFilter.3
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package com.sun.mirror.util;

import com.sun.mirror.declaration.Declaration;

class DeclarationFilter$4
  extends DeclarationFilter
{
  DeclarationFilter$4(DeclarationFilter paramDeclarationFilter1, DeclarationFilter paramDeclarationFilter2, DeclarationFilter paramDeclarationFilter3) {}
  
  public boolean matches(Declaration d)
  {
    return (val$f1.matches(d)) || (val$f2.matches(d));
  }
}

/* Location:
 * Qualified Name:     com.sun.mirror.util.DeclarationFilter.4
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package com.sun.mirror.util;

import com.sun.mirror.declaration.Declaration;

class DeclarationFilter$5
  extends DeclarationFilter
{
  DeclarationFilter$5(DeclarationFilter paramDeclarationFilter) {}
  
  public boolean matches(Declaration d)
  {
    return !this$0.matches(d);
  }
}

/* Location:
 * Qualified Name:     com.sun.mirror.util.DeclarationFilter.5
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package com.sun.mirror.util;

import com.sun.mirror.declaration.Declaration;
import com.sun.mirror.declaration.Modifier;
import java.util.Collection;

class DeclarationFilter$AccessFilter
  extends DeclarationFilter
{
  private Modifier mod1 = null;
  private Modifier mod2 = null;
  
  DeclarationFilter$AccessFilter() {}
  
  DeclarationFilter$AccessFilter(Modifier m)
  {
    mod1 = m;
  }
  
  DeclarationFilter$AccessFilter(Modifier m1, Modifier m2)
  {
    mod1 = m1;
    mod2 = m2;
  }
  
  public boolean matches(Declaration d)
  {
    Collection<Modifier> mods = d.getModifiers();
    if (mod1 == null) {
      return (!mods.contains(Modifier.PUBLIC)) && 
        (!mods.contains(Modifier.PROTECTED)) && (!
        mods.contains(Modifier.PRIVATE));
    }
    return (mods.contains(mod1)) && ((mod2 == null) || (mods.contains(mod2)));
  }
}

/* Location:
 * Qualified Name:     com.sun.mirror.util.DeclarationFilter.AccessFilter
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package com.sun.mirror.util;

import com.sun.mirror.declaration.Declaration;
import com.sun.mirror.declaration.Modifier;
import java.util.ArrayList;
import java.util.Collection;

public class DeclarationFilter
{
  public static final DeclarationFilter FILTER_PUBLIC = new AccessFilter(Modifier.PUBLIC);
  public static final DeclarationFilter FILTER_PROTECTED = new AccessFilter(Modifier.PROTECTED);
  public static final DeclarationFilter FILTER_PUBLIC_OR_PROTECTED = new AccessFilter(Modifier.PUBLIC, Modifier.PROTECTED);
  public static final DeclarationFilter FILTER_PACKAGE = new AccessFilter();
  public static final DeclarationFilter FILTER_PRIVATE = new AccessFilter(Modifier.PRIVATE);
  
  public static DeclarationFilter getFilter(Collection<Modifier> mods)
  {
    new DeclarationFilter()
    {
      public boolean matches(Declaration d)
      {
        return d.getModifiers().containsAll(DeclarationFilter.this);
      }
    };
  }
  
  public static DeclarationFilter getFilter(Class<? extends Declaration> kind)
  {
    new DeclarationFilter()
    {
      public boolean matches(Declaration d)
      {
        return isInstance(d);
      }
    };
  }
  
  public DeclarationFilter and(DeclarationFilter f)
  {
    final DeclarationFilter f1 = this;
    final DeclarationFilter f2 = f;
    new DeclarationFilter()
    {
      public boolean matches(Declaration d)
      {
        return (f1.matches(d)) && (f2.matches(d));
      }
    };
  }
  
  public DeclarationFilter or(DeclarationFilter f)
  {
    final DeclarationFilter f1 = this;
    final DeclarationFilter f2 = f;
    new DeclarationFilter()
    {
      public boolean matches(Declaration d)
      {
        return (f1.matches(d)) || (f2.matches(d));
      }
    };
  }
  
  public DeclarationFilter not()
  {
    new DeclarationFilter()
    {
      public boolean matches(Declaration d)
      {
        return !DeclarationFilter.this.matches(d);
      }
    };
  }
  
  public boolean matches(Declaration decl)
  {
    return true;
  }
  
  public <D extends Declaration> Collection<D> filter(Collection<D> decls)
  {
    ArrayList<D> res = new ArrayList(decls.size());
    for (D d : decls) {
      if (matches(d)) {
        res.add(d);
      }
    }
    return res;
  }
  
  public <D extends Declaration> Collection<D> filter(Collection<? extends Declaration> decls, Class<D> resType)
  {
    ArrayList<D> res = new ArrayList(decls.size());
    for (Declaration d : decls) {
      if ((resType.isInstance(d)) && (matches(d))) {
        res.add((Declaration)resType.cast(d));
      }
    }
    return res;
  }
  
  private static class AccessFilter
    extends DeclarationFilter
  {
    private Modifier mod1 = null;
    private Modifier mod2 = null;
    
    AccessFilter() {}
    
    AccessFilter(Modifier m)
    {
      mod1 = m;
    }
    
    AccessFilter(Modifier m1, Modifier m2)
    {
      mod1 = m1;
      mod2 = m2;
    }
    
    public boolean matches(Declaration d)
    {
      Collection<Modifier> mods = d.getModifiers();
      if (mod1 == null) {
        return (!mods.contains(Modifier.PUBLIC)) && 
          (!mods.contains(Modifier.PROTECTED)) && (!
          mods.contains(Modifier.PRIVATE));
      }
      return (mods.contains(mod1)) && ((mod2 == null) || (mods.contains(mod2)));
    }
  }
}

/* Location:
 * Qualified Name:     com.sun.mirror.util.DeclarationFilter
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package com.sun.mirror.util;

import com.sun.mirror.declaration.AnnotationTypeDeclaration;
import com.sun.mirror.declaration.AnnotationTypeElementDeclaration;
import com.sun.mirror.declaration.ClassDeclaration;
import com.sun.mirror.declaration.ConstructorDeclaration;
import com.sun.mirror.declaration.Declaration;
import com.sun.mirror.declaration.EnumConstantDeclaration;
import com.sun.mirror.declaration.EnumDeclaration;
import com.sun.mirror.declaration.ExecutableDeclaration;
import com.sun.mirror.declaration.FieldDeclaration;
import com.sun.mirror.declaration.InterfaceDeclaration;
import com.sun.mirror.declaration.MemberDeclaration;
import com.sun.mirror.declaration.MethodDeclaration;
import com.sun.mirror.declaration.PackageDeclaration;
import com.sun.mirror.declaration.ParameterDeclaration;
import com.sun.mirror.declaration.TypeDeclaration;
import com.sun.mirror.declaration.TypeParameterDeclaration;

class DeclarationScanner
  implements DeclarationVisitor
{
  protected DeclarationVisitor pre;
  protected DeclarationVisitor post;
  
  DeclarationScanner(DeclarationVisitor pre, DeclarationVisitor post)
  {
    this.pre = pre;
    this.post = post;
  }
  
  public void visitDeclaration(Declaration d)
  {
    d.accept(pre);
    d.accept(post);
  }
  
  public void visitPackageDeclaration(PackageDeclaration d)
  {
    d.accept(pre);
    for (ClassDeclaration classDecl : d.getClasses()) {
      classDecl.accept(this);
    }
    for (InterfaceDeclaration interfaceDecl : d.getInterfaces()) {
      interfaceDecl.accept(this);
    }
    d.accept(post);
  }
  
  public void visitMemberDeclaration(MemberDeclaration d)
  {
    visitDeclaration(d);
  }
  
  public void visitTypeDeclaration(TypeDeclaration d)
  {
    d.accept(pre);
    for (TypeParameterDeclaration tpDecl : d.getFormalTypeParameters()) {
      tpDecl.accept(this);
    }
    for (FieldDeclaration fieldDecl : d.getFields()) {
      fieldDecl.accept(this);
    }
    for (MethodDeclaration methodDecl : d.getMethods()) {
      methodDecl.accept(this);
    }
    for (TypeDeclaration typeDecl : d.getNestedTypes()) {
      typeDecl.accept(this);
    }
    d.accept(post);
  }
  
  public void visitClassDeclaration(ClassDeclaration d)
  {
    d.accept(pre);
    for (TypeParameterDeclaration tpDecl : d.getFormalTypeParameters()) {
      tpDecl.accept(this);
    }
    for (FieldDeclaration fieldDecl : d.getFields()) {
      fieldDecl.accept(this);
    }
    for (MethodDeclaration methodDecl : d.getMethods()) {
      methodDecl.accept(this);
    }
    for (TypeDeclaration typeDecl : d.getNestedTypes()) {
      typeDecl.accept(this);
    }
    for (ConstructorDeclaration ctorDecl : d.getConstructors()) {
      ctorDecl.accept(this);
    }
    d.accept(post);
  }
  
  public void visitEnumDeclaration(EnumDeclaration d)
  {
    visitClassDeclaration(d);
  }
  
  public void visitInterfaceDeclaration(InterfaceDeclaration d)
  {
    visitTypeDeclaration(d);
  }
  
  public void visitAnnotationTypeDeclaration(AnnotationTypeDeclaration d)
  {
    visitInterfaceDeclaration(d);
  }
  
  public void visitFieldDeclaration(FieldDeclaration d)
  {
    visitMemberDeclaration(d);
  }
  
  public void visitEnumConstantDeclaration(EnumConstantDeclaration d)
  {
    visitFieldDeclaration(d);
  }
  
  public void visitExecutableDeclaration(ExecutableDeclaration d)
  {
    d.accept(pre);
    for (TypeParameterDeclaration tpDecl : d.getFormalTypeParameters()) {
      tpDecl.accept(this);
    }
    for (ParameterDeclaration pDecl : d.getParameters()) {
      pDecl.accept(this);
    }
    d.accept(post);
  }
  
  public void visitConstructorDeclaration(ConstructorDeclaration d)
  {
    visitExecutableDeclaration(d);
  }
  
  public void visitMethodDeclaration(MethodDeclaration d)
  {
    visitExecutableDeclaration(d);
  }
  
  public void visitAnnotationTypeElementDeclaration(AnnotationTypeElementDeclaration d)
  {
    visitMethodDeclaration(d);
  }
  
  public void visitParameterDeclaration(ParameterDeclaration d)
  {
    visitDeclaration(d);
  }
  
  public void visitTypeParameterDeclaration(TypeParameterDeclaration d)
  {
    visitDeclaration(d);
  }
}

/* Location:
 * Qualified Name:     com.sun.mirror.util.DeclarationScanner
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package com.sun.mirror.util;

import com.sun.mirror.declaration.AnnotationTypeDeclaration;
import com.sun.mirror.declaration.AnnotationTypeElementDeclaration;
import com.sun.mirror.declaration.ClassDeclaration;
import com.sun.mirror.declaration.ConstructorDeclaration;
import com.sun.mirror.declaration.Declaration;
import com.sun.mirror.declaration.EnumConstantDeclaration;
import com.sun.mirror.declaration.EnumDeclaration;
import com.sun.mirror.declaration.ExecutableDeclaration;
import com.sun.mirror.declaration.FieldDeclaration;
import com.sun.mirror.declaration.InterfaceDeclaration;
import com.sun.mirror.declaration.MemberDeclaration;
import com.sun.mirror.declaration.MethodDeclaration;
import com.sun.mirror.declaration.PackageDeclaration;
import com.sun.mirror.declaration.ParameterDeclaration;
import com.sun.mirror.declaration.TypeDeclaration;
import com.sun.mirror.declaration.TypeParameterDeclaration;

public abstract interface DeclarationVisitor
{
  public abstract void visitDeclaration(Declaration paramDeclaration);
  
  public abstract void visitPackageDeclaration(PackageDeclaration paramPackageDeclaration);
  
  public abstract void visitMemberDeclaration(MemberDeclaration paramMemberDeclaration);
  
  public abstract void visitTypeDeclaration(TypeDeclaration paramTypeDeclaration);
  
  public abstract void visitClassDeclaration(ClassDeclaration paramClassDeclaration);
  
  public abstract void visitEnumDeclaration(EnumDeclaration paramEnumDeclaration);
  
  public abstract void visitInterfaceDeclaration(InterfaceDeclaration paramInterfaceDeclaration);
  
  public abstract void visitAnnotationTypeDeclaration(AnnotationTypeDeclaration paramAnnotationTypeDeclaration);
  
  public abstract void visitFieldDeclaration(FieldDeclaration paramFieldDeclaration);
  
  public abstract void visitEnumConstantDeclaration(EnumConstantDeclaration paramEnumConstantDeclaration);
  
  public abstract void visitExecutableDeclaration(ExecutableDeclaration paramExecutableDeclaration);
  
  public abstract void visitConstructorDeclaration(ConstructorDeclaration paramConstructorDeclaration);
  
  public abstract void visitMethodDeclaration(MethodDeclaration paramMethodDeclaration);
  
  public abstract void visitAnnotationTypeElementDeclaration(AnnotationTypeElementDeclaration paramAnnotationTypeElementDeclaration);
  
  public abstract void visitParameterDeclaration(ParameterDeclaration paramParameterDeclaration);
  
  public abstract void visitTypeParameterDeclaration(TypeParameterDeclaration paramTypeParameterDeclaration);
}

/* Location:
 * Qualified Name:     com.sun.mirror.util.DeclarationVisitor
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package com.sun.mirror.util;

public class DeclarationVisitors
{
  public static final DeclarationVisitor NO_OP = new SimpleDeclarationVisitor();
  
  public static DeclarationVisitor getDeclarationScanner(DeclarationVisitor pre, DeclarationVisitor post)
  {
    return new DeclarationScanner(pre, post);
  }
  
  public static DeclarationVisitor getSourceOrderDeclarationScanner(DeclarationVisitor pre, DeclarationVisitor post)
  {
    return new SourceOrderDeclScanner(pre, post);
  }
}

/* Location:
 * Qualified Name:     com.sun.mirror.util.DeclarationVisitors
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package com.sun.mirror.util;

import com.sun.mirror.declaration.MemberDeclaration;
import com.sun.mirror.declaration.MethodDeclaration;

public abstract interface Declarations
{
  public abstract boolean hides(MemberDeclaration paramMemberDeclaration1, MemberDeclaration paramMemberDeclaration2);
  
  public abstract boolean overrides(MethodDeclaration paramMethodDeclaration1, MethodDeclaration paramMethodDeclaration2);
}

/* Location:
 * Qualified Name:     com.sun.mirror.util.Declarations
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package com.sun.mirror.util;

import com.sun.mirror.declaration.AnnotationTypeDeclaration;
import com.sun.mirror.declaration.AnnotationTypeElementDeclaration;
import com.sun.mirror.declaration.ClassDeclaration;
import com.sun.mirror.declaration.ConstructorDeclaration;
import com.sun.mirror.declaration.Declaration;
import com.sun.mirror.declaration.EnumConstantDeclaration;
import com.sun.mirror.declaration.EnumDeclaration;
import com.sun.mirror.declaration.ExecutableDeclaration;
import com.sun.mirror.declaration.FieldDeclaration;
import com.sun.mirror.declaration.InterfaceDeclaration;
import com.sun.mirror.declaration.MemberDeclaration;
import com.sun.mirror.declaration.MethodDeclaration;
import com.sun.mirror.declaration.PackageDeclaration;
import com.sun.mirror.declaration.ParameterDeclaration;
import com.sun.mirror.declaration.TypeDeclaration;
import com.sun.mirror.declaration.TypeParameterDeclaration;

public class SimpleDeclarationVisitor
  implements DeclarationVisitor
{
  public void visitDeclaration(Declaration d) {}
  
  public void visitPackageDeclaration(PackageDeclaration d)
  {
    visitDeclaration(d);
  }
  
  public void visitMemberDeclaration(MemberDeclaration d)
  {
    visitDeclaration(d);
  }
  
  public void visitTypeDeclaration(TypeDeclaration d)
  {
    visitMemberDeclaration(d);
  }
  
  public void visitClassDeclaration(ClassDeclaration d)
  {
    visitTypeDeclaration(d);
  }
  
  public void visitEnumDecl
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18

Further reading...

For more information on Java 1.5 Tiger, you may find Java 1.5 Tiger, A developer's Notebook by D. Flanagan and B. McLaughlin from O'Reilly of interest.

New!JAR listings


Copyright 2006-2017. Infinite Loop Ltd