org.eclipse.pde.api.tools_1.0.301.v20111129-2053

on: 1.2 (46.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.pde.api.tools.internal.provisional.descriptors;

public abstract interface IElementDescriptor
{
  public static final int PACKAGE = 1;
  public static final int TYPE = 2;
  public static final int FIELD = 5;
  public static final int METHOD = 6;
  public static final int RESOURCE = 7;
  public static final int COMPONENT = 8;
  
  public abstract IElementDescriptor getParent();
  
  public abstract IElementDescriptor[] getPath();
  
  public abstract int getElementType();
}

/* Location:
 * Qualified Name:     org.eclipse.pde.api.tools.internal.provisional.descriptors.IElementDescriptor
 * Java Class Version: 1.2 (46.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.pde.api.tools.internal.provisional.descriptors;

public abstract interface IFieldDescriptor
  extends IMemberDescriptor
{}

/* Location:
 * Qualified Name:     org.eclipse.pde.api.tools.internal.provisional.descriptors.IFieldDescriptor
 * Java Class Version: 1.2 (46.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.pde.api.tools.internal.provisional.descriptors;

public abstract interface IMemberDescriptor
  extends IElementDescriptor
{
  public abstract String getName();
  
  public abstract IReferenceTypeDescriptor getEnclosingType();
  
  public abstract IPackageDescriptor getPackage();
}

/* Location:
 * Qualified Name:     org.eclipse.pde.api.tools.internal.provisional.descriptors.IMemberDescriptor
 * Java Class Version: 1.2 (46.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.pde.api.tools.internal.provisional.descriptors;

public abstract interface IMethodDescriptor
  extends IMemberDescriptor
{
  public abstract String getSignature();
  
  public abstract boolean isConstructor();
}

/* Location:
 * Qualified Name:     org.eclipse.pde.api.tools.internal.provisional.descriptors.IMethodDescriptor
 * Java Class Version: 1.2 (46.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.pde.api.tools.internal.provisional.descriptors;

public abstract interface IPackageDescriptor
  extends IElementDescriptor
{
  public abstract String getName();
  
  public abstract IReferenceTypeDescriptor getType(String paramString);
  
  public abstract IReferenceTypeDescriptor getType(String paramString1, String paramString2);
}

/* Location:
 * Qualified Name:     org.eclipse.pde.api.tools.internal.provisional.descriptors.IPackageDescriptor
 * Java Class Version: 1.2 (46.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.pde.api.tools.internal.provisional.descriptors;

public abstract interface IReferenceTypeDescriptor
  extends IMemberDescriptor
{
  public abstract String getQualifiedName();
  
  public abstract String getSignature();
  
  public abstract String getGenericSignature();
  
  public abstract IPackageDescriptor getPackage();
  
  public abstract IReferenceTypeDescriptor getType(String paramString);
  
  public abstract IFieldDescriptor getField(String paramString);
  
  public abstract IMethodDescriptor getMethod(String paramString1, String paramString2);
  
  public abstract boolean isAnonymous();
}

/* Location:
 * Qualified Name:     org.eclipse.pde.api.tools.internal.provisional.descriptors.IReferenceTypeDescriptor
 * Java Class Version: 1.2 (46.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.pde.api.tools.internal.provisional.model;

import org.eclipse.core.runtime.CoreException;

public class ApiScopeVisitor
{
  public void endVisit(IApiComponent component)
    throws CoreException
  {}
  
  public void endVisit(IApiBaseline baseline)
    throws CoreException
  {}
  
  public void endVisit(IApiTypeContainer container)
    throws CoreException
  {}
  
  public void endVisit(IApiTypeRoot typeRoot)
    throws CoreException
  {}
  
  public boolean visit(IApiComponent component)
    throws CoreException
  {
    return true;
  }
  
  public boolean visit(IApiBaseline baseline)
    throws CoreException
  {
    return true;
  }
  
  public boolean visit(IApiTypeContainer container)
    throws CoreException
  {
    return true;
  }
  
  public void visit(IApiTypeRoot typeRoot)
    throws CoreException
  {}
}

/* Location:
 * Qualified Name:     org.eclipse.pde.api.tools.internal.provisional.model.ApiScopeVisitor
 * Java Class Version: 1.2 (46.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.pde.api.tools.internal.provisional.model;

public abstract class ApiTypeContainerVisitor
{
  public boolean visit(IApiComponent component)
  {
    return true;
  }
  
  public void end(IApiComponent component) {}
  
  public boolean visit(IApiTypeContainer container)
  {
    return true;
  }
  
  public void end(IApiTypeContainer container) {}
  
  public boolean visitPackage(String packageName)
  {
    return true;
  }
  
  public void endVisitPackage(String packageName) {}
  
  public void visit(String packageName, IApiTypeRoot typeroot) {}
  
  public void end(String packageName, IApiTypeRoot typeroot) {}
}

/* Location:
 * Qualified Name:     org.eclipse.pde.api.tools.internal.provisional.model.ApiTypeContainerVisitor
 * Java Class Version: 1.2 (46.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.pde.api.tools.internal.provisional.model;

import org.eclipse.core.resources.IProject;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IStatus;

public abstract interface IApiBaseline
  extends IApiElement
{
  public abstract IApiComponent[] getApiComponents();
  
  public abstract void setName(String paramString);
  
  public abstract void addApiComponents(IApiComponent[] paramArrayOfIApiComponent)
    throws CoreException;
  
  public abstract IApiComponent[] resolvePackage(IApiComponent paramIApiComponent, String paramString)
    throws CoreException;
  
  public abstract IApiComponent getApiComponent(String paramString);
  
  public abstract IApiComponent getApiComponent(IProject paramIProject);
  
  public abstract String getExecutionEnvironment();
  
  public abstract IStatus getExecutionEnvironmentStatus();
  
  public abstract void dispose();
  
  public abstract void close()
    throws CoreException;
  
  public abstract IApiComponent[] getDependentComponents(IApiComponent[] paramArrayOfIApiComponent)
    throws CoreException;
  
  public abstract IApiComponent[] getPrerequisiteComponents(IApiComponent[] paramArrayOfIApiComponent)
    throws CoreException;
  
  public abstract String getLocation();
  
  public abstract void setLocation(String paramString);
}

/* Location:
 * Qualified Name:     org.eclipse.pde.api.tools.internal.provisional.model.IApiBaseline
 * Java Class Version: 1.2 (46.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.pde.api.tools.internal.provisional.model;

import org.eclipse.core.runtime.CoreException;
import org.eclipse.osgi.service.resolver.ResolverError;
import org.eclipse.pde.api.tools.internal.provisional.IApiDescription;
import org.eclipse.pde.api.tools.internal.provisional.IApiFilterStore;
import org.eclipse.pde.api.tools.internal.provisional.IRequiredComponentDescription;
import org.eclipse.pde.api.tools.internal.provisional.descriptors.IElementDescriptor;
import org.eclipse.pde.api.tools.internal.search.IReferenceCollection;

public abstract interface IApiComponent
  extends IApiTypeContainer
{
  public abstract String getSymbolicName();
  
  public abstract IApiDescription getApiDescription()
    throws CoreException;
  
  public abstract boolean hasApiDescription();
  
  public abstract String getVersion();
  
  public abstract String[] getExecutionEnvironments()
    throws CoreException;
  
  public abstract IApiTypeContainer[] getApiTypeContainers()
    throws CoreException;
  
  public abstract IApiTypeContainer[] getApiTypeContainers(String paramString)
    throws CoreException;
  
  public abstract IRequiredComponentDescription[] getRequiredComponents()
    throws CoreException;
  
  public abstract String getLocation();
  
  public abstract boolean isSystemComponent();
  
  public abstract boolean isSourceComponent()
    throws CoreException;
  
  public abstract void dispose();
  
  public abstract IApiBaseline getBaseline()
    throws CoreException;
  
  public abstract IApiFilterStore getFilterStore()
    throws CoreException;
  
  public abstract boolean isFragment()
    throws CoreException;
  
  public abstract IApiComponent getHost()
    throws CoreException;
  
  public abstract boolean hasFragments()
    throws CoreException;
  
  public abstract String[] getLowestEEs()
    throws CoreException;
  
  public abstract ResolverError[] getErrors()
    throws CoreException;
  
  public abstract IElementDescriptor getHandle();
  
  public abstract IReferenceCollection getExternalDependencies();
}

/* Location:
 * Qualified Name:     org.eclipse.pde.api.tools.internal.provisional.model.IApiComponent
 * Java Class Version: 1.2 (46.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.pde.api.tools.internal.provisional.model;

public abstract interface IApiElement
{
  public static final int COMPONENT = 1;
  public static final int TYPE = 2;
  public static final int API_TYPE_CONTAINER = 3;
  public static final int BASELINE = 4;
  public static final int FIELD = 5;
  public static final int METHOD = 6;
  public static final int API_TYPE_ROOT = 7;
  
  public abstract String getName();
  
  public abstract int getType();
  
  public abstract IApiElement getParent();
  
  public abstract IApiElement getAncestor(int paramInt);
  
  public abstract IApiComponent getApiComponent();
}

/* Location:
 * Qualified Name:     org.eclipse.pde.api.tools.internal.provisional.model.IApiElement
 * Java Class Version: 1.2 (46.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.pde.api.tools.internal.provisional.model;

public abstract interface IApiField
  extends IApiMember
{
  public abstract boolean isEnumConstant();
  
  public abstract Object getConstantValue();
}

/* Location:
 * Qualified Name:     org.eclipse.pde.api.tools.internal.provisional.model.IApiField
 * Java Class Version: 1.2 (46.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.pde.api.tools.internal.provisional.model;

import org.eclipse.core.runtime.CoreException;
import org.eclipse.pde.api.tools.internal.provisional.descriptors.IMemberDescriptor;

public abstract interface IApiMember
  extends IApiElement
{
  public abstract IApiType getEnclosingType()
    throws CoreException;
  
  public abstract int getModifiers();
  
  public abstract String getSignature();
  
  public abstract String getGenericSignature();
  
  public abstract String getPackageName();
  
  public abstract IMemberDescriptor getHandle();
}

/* Location:
 * Qualified Name:     org.eclipse.pde.api.tools.internal.provisional.model.IApiMember
 * Java Class Version: 1.2 (46.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.pde.api.tools.internal.provisional.model;

public abstract interface IApiMethod
  extends IApiMember
{
  public abstract String getSignature();
  
  public abstract boolean isConstructor();
  
  public abstract boolean isClassInitializer();
  
  public abstract String[] getExceptionNames();
  
  public abstract String getDefaultValue();
  
  public abstract boolean isSynthetic();
  
  public abstract boolean isPolymorphic();
}

/* Location:
 * Qualified Name:     org.eclipse.pde.api.tools.internal.provisional.model.IApiMethod
 * Java Class Version: 1.2 (46.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.pde.api.tools.internal.provisional.model;

import org.eclipse.core.runtime.CoreException;

public abstract interface IApiScope
{
  public abstract void addElement(IApiElement paramIApiElement);
  
  public abstract IApiElement[] getApiElements();
  
  public abstract void accept(ApiScopeVisitor paramApiScopeVisitor)
    throws CoreException;
  
  public abstract boolean encloses(IApiElement paramIApiElement)
    throws CoreException;
}

/* Location:
 * Qualified Name:     org.eclipse.pde.api.tools.internal.provisional.model.IApiScope
 * Java Class Version: 1.2 (46.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.pde.api.tools.internal.provisional.model;

import java.util.List;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IProgressMonitor;

public abstract interface IApiType
  extends IApiMember
{
  public abstract IApiMethod getEnclosingMethod();
  
  public abstract IApiField getField(String paramString);
  
  public abstract IApiField[] getFields();
  
  public abstract IApiMethod getMethod(String paramString1, String paramString2);
  
  public abstract IApiMethod[] getMethods();
  
  public abstract boolean isAnonymous();
  
  public abstract boolean isLocal();
  
  public abstract boolean isClass();
  
  public abstract boolean isEnum();
  
  public abstract boolean isInterface();
  
  public abstract boolean isAnnotation();
  
  public abstract boolean isMemberType();
  
  public abstract String getSuperclassName();
  
  public abstract IApiType getSuperclass()
    throws CoreException;
  
  public abstract String[] getSuperInterfaceNames();
  
  public abstract IApiType[] getSuperInterfaces()
    throws CoreException;
  
  public abstract IApiType[] getMemberTypes()
    throws CoreException;
  
  public abstract IApiType getMemberType(String paramString)
    throws CoreException;
  
  public abstract String getSimpleName();
  
  public abstract IApiTypeRoot getTypeRoot();
  
  public abstract List extractReferences(int paramInt, IProgressMonitor paramIProgressMonitor)
    throws CoreException;
}

/* Location:
 * Qualified Name:     org.eclipse.pde.api.tools.internal.provisional.model.IApiType
 * Java Class Version: 1.2 (46.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.pde.api.tools.internal.provisional.model;

import org.eclipse.core.runtime.CoreException;

public abstract interface IApiTypeContainer
  extends IApiElement
{
  public static final int ARCHIVE = 1;
  public static final int DIRECTORY = 2;
  public static final int FOLDER = 3;
  public static final int COMPONENT = 4;
  
  public abstract String[] getPackageNames()
    throws CoreException;
  
  public abstract IApiTypeRoot findTypeRoot(String paramString)
    throws CoreException;
  
  public abstract IApiTypeRoot findTypeRoot(String paramString1, String paramString2)
    throws CoreException;
  
  public abstract void accept(ApiTypeContainerVisitor paramApiTypeContainerVisitor)
    throws CoreException;
  
  public abstract void close()
    throws CoreException;
  
  public abstract int getContainerType();
}

/* Location:
 * Qualified Name:     org.eclipse.pde.api.tools.internal.provisional.model.IApiTypeContainer
 * Java Class Version: 1.2 (46.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.pde.api.tools.internal.provisional.model;

import org.eclipse.core.runtime.CoreException;

public abstract interface IApiTypeRoot
  extends IApiElement
{
  public abstract String getTypeName();
  
  public abstract IApiType getStructure()
    throws CoreException;
  
  public abstract IApiComponent getApiComponent();
}

/* Location:
 * Qualified Name:     org.eclipse.pde.api.tools.internal.provisional.model.IApiTypeRoot
 * Java Class Version: 1.2 (46.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.pde.api.tools.internal.provisional.problems;

public abstract interface IApiProblem
{
  public static final int CATEGORY_COMPATIBILITY = 268435456;
  public static final int CATEGORY_USAGE = 536870912;
  public static final int CATEGORY_VERSION = 805306368;
  public static final int CATEGORY_SINCETAGS = 1073741824;
  public static final int CATEGORY_API_BASELINE = 1342177280;
  public static final int CATEGORY_API_COMPONENT_RESOLUTION = 1610612736;
  public static final int CATEGORY_FATAL_PROBLEM = 1879048192;
  public static final int CATEGORY_API_USE_SCAN_PROBLEM = Integer.MIN_VALUE;
  public static final int OFFSET_MESSAGE = 0;
  public static final int OFFSET_FLAGS = 12;
  public static final int OFFSET_KINDS = 20;
  public static final int OFFSET_ELEMENT = 24;
  public static final int NO_FLAGS = 0;
  public static final int NO_CHARRANGE = -1;
  public static final int SINCE_TAG_INVALID = 1;
  public static final int SINCE_TAG_MALFORMED = 2;
  public static final int SINCE_TAG_MISSING = 3;
  public static final int MAJOR_VERSION_CHANGE = 1;
  public static final int MINOR_VERSION_CHANGE = 2;
  public static final int MAJOR_VERSION_CHANGE_NO_BREAKAGE = 3;
  public static final int MINOR_VERSION_CHANGE_NO_NEW_API = 4;
  public static final int REEXPORTED_MAJOR_VERSION_CHANGE = 5;
  public static final int REEXPORTED_MINOR_VERSION_CHANGE = 6;
  public static final int ILLEGAL_EXTEND = 1;
  public static final int ILLEGAL_INSTANTIATE = 2;
  public static final int ILLEGAL_REFERENCE = 3;
  public static final int ILLEGAL_IMPLEMENT = 4;
  public static final int ILLEGAL_OVERRIDE = 5;
  public static final int API_LEAK = 6;
  public static final int UNSUPPORTED_TAG_USE = 7;
  public static final int DUPLICATE_TAG_USE = 8;
  public static final int INVALID_REFERENCE_IN_SYSTEM_LIBRARIES = 9;
  public static final int UNUSED_PROBLEM_FILTERS = 10;
  public static final int LEAK_EXTENDS = 1;
  public static final int LEAK_IMPLEMENTS = 2;
  public static final int LEAK_FIELD = 3;
  public static final int LEAK_RETURN_TYPE = 4;
  public static final int LEAK_METHOD_PARAMETER = 5;
  public static final int LEAK_CONSTRUCTOR_PARAMETER = 6;
  public static final int CONSTRUCTOR_METHOD = 7;
  public static final int METHOD = 8;
  public static final int FIELD = 9;
  public static final int LOCAL_TYPE = 10;
  public static final int ANONYMOUS_TYPE = 11;
  public static final int INDIRECT_REFERENCE = 10;
  public static final int API_BASELINE_MISSING = 1;
  public static final int API_COMPONENT_RESOLUTION = 1;
  public static final int FATAL_JDT_BUILDPATH_PROBLEM = 1;
  public static final int API_USE_SCAN_TYPE_PROBLEM = 1;
  public static final int API_USE_SCAN_METHOD_PROBLEM = 2;
  public static final int API_USE_SCAN_FIELD_PROBLEM = 3;
  
  public abstract int getSeverity();
  
  public abstract int getElementKind();
  
  public abstract int getMessageid();
  
  public abstract String getResourcePath();
  
  public abstract String getTypeName();
  
  public abstract String[] getMessageArguments();
  
  public abstract int getCharStart();
  
  public abstract int getCharEnd();
  
  public abstract int getLineNumber();
  
  public abstract int getCategory();
  
  public abstract int getId();
  
  public abstract String getMessage();
  
  public abstract int getKind();
  
  public abstract int getFlags();
  
  public abstract String[] getExtraMarkerAttributeIds();
  
  public abstract Object[] getExtraMarkerAttributeValues();
}

/* Location:
 * Qualified Name:     org.eclipse.pde.api.tools.internal.provisional.problems.IApiProblem
 * Java Class Version: 1.2 (46.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.pde.api.tools.internal.provisional.problems;

public abstract interface IApiProblemFilter
{
  public abstract String getComponentId();
  
  public abstract IApiProblem getUnderlyingProblem();
  
  public abstract String getComment();
}

/* Location:
 * Qualified Name:     org.eclipse.pde.api.tools.internal.provisional.problems.IApiProblemFilter
 * Java Class Version: 1.2 (46.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.pde.api.tools.internal.provisional.problems;

import org.eclipse.pde.api.tools.internal.util.Util;

public abstract interface IApiProblemTypes
{
  public static final String API_COMPONENT_REMOVED_TYPE = Util.getDeltaPrefererenceKey(2, 3, 46);
  public static final String API_COMPONENT_REMOVED_API_TYPE = Util.getDeltaPrefererenceKey(2, 3, 56);
  public static final String API_COMPONENT_REMOVED_REEXPORTED_TYPE = Util.getDeltaPrefererenceKey(2, 3, 70);
  public static final String API_COMPONENT_REMOVED_REEXPORTED_API_TYPE = Util.getDeltaPrefererenceKey(2, 3, 71);
  public static final String ANNOTATION_REMOVED_FIELD = Util.getDeltaPrefererenceKey(1, 3, 16);
  public static final String ANNOTATION_REMOVED_METHOD = Util.getDeltaPrefererenceKey(1, 3, 25);
  public static final String ANNOTATION_REMOVED_TYPE_MEMBER = Util.getDeltaPrefererenceKey(1, 3, 48);
  public static final String ANNOTATION_CHANGED_TYPE_CONVERSION = Util.getDeltaPrefererenceKey(1, 2, 41);
  public static final String ANNOTATION_ADDED_METHOD_NO_DEFAULT_VALUE = Util.getDeltaPrefererenceKey(1, 1, 28);
  public static final String INTERFACE_ADDED_FIELD = Util.getDeltaPrefererenceKey(8, 1, 16);
  public static final String INTERFACE_ADDED_METHOD = Util.getDeltaPrefererenceKey(8, 1, 25);
  public static final String INTERFACE_ADDED_RESTRICTIONS = Util.getDeltaPrefererenceKey(8, 1, 37);
  public static final String INTERFACE_ADDED_SUPER_INTERFACE_WITH_METHODS = Util.getDeltaPrefererenceKey(8, 1, 69);
  public static final String INTERFACE_ADDED_TYPE_PARAMETER = Util.getDeltaPrefererenceKey(8, 1, 49);
  public static final String INTERFACE_REMOVED_TYPE_PARAMETER = Util.getDeltaPrefererenceKey(8, 3, 49);
  public static final String INTERFACE_REMOVED_FIELD = Util.getDeltaPrefererenceKey(8, 3, 16);
  public static final String INTERFACE_REMOVED_METHOD = Util.getDeltaPrefererenceKey(8, 3, 25);
  public static final String INTERFACE_REMOVED_TYPE_MEMBER = Util.getDeltaPrefererenceKey(8, 3, 48);
  public static final String INTERFACE_CHANGED_TYPE_CONVERSION = Util.getDeltaPrefererenceKey(8, 2, 41);
  public static final String INTERFACE_CHANGED_CONTRACTED_SUPERINTERFACES_SET = Util.getDeltaPrefererenceKey(8, 2, 10);
  public static final String ENUM_CHANGED_CONTRACTED_SUPERINTERFACES_SET = Util.getDeltaPrefererenceKey(6, 2, 10);
  public static final String ENUM_CHANGED_TYPE_CONVERSION = Util.getDeltaPrefererenceKey(6, 2, 41);
  public static final String ENUM_REMOVED_FIELD = Util.getDeltaPrefererenceKey(6, 3, 16);
  public static final String ENUM_REMOVED_ENUM_CONSTANT = Util.getDeltaPrefererenceKey(6, 3, 12);
  public static final String ENUM_REMOVED_METHOD = Util.getDeltaPrefererenceKey(6, 3, 25);
  public static final String ENUM_REMOVED_TYPE_MEMBER = Util.getDeltaPrefererenceKey(6, 3, 48);
  public static final String CLASS_ADDED_METHOD = Util.getDeltaPrefererenceKey(4, 1, 25);
  public static final String CLASS_ADDED_RESTRICTIONS = Util.getDeltaPrefererenceKey(4, 1, 37);
  public static final String CLASS_ADDED_TYPE_PARAMETER = Util.getDeltaPrefererenceKey(4, 1, 49);
  public static final String CLASS_CHANGED_CONTRACTED_SUPERINTERFACES_SET = Util.getDeltaPrefererenceKey(4, 2, 10);
  public static final String CLASS_CHANGED_NON_ABSTRACT_TO_ABSTRACT = Util.getDeltaPrefererenceKey(4, 2, 30);
  public static final String CLASS_CHANGED_NON_FINAL_TO_FINAL = Util.getDeltaPrefererenceKey(4, 2, 31);
  public static final String CLASS_CHANGED_TYPE_CONVERSION = Util.getDeltaPrefererenceKey(4, 2, 41);
  public static final String CLASS_CHANGED_DECREASE_ACCESS = Util.getDeltaPrefererenceKey(4, 2, 11);
  public static final String CLASS_REMOVED_FIELD = Util.getDeltaPrefererenceKey(4, 3, 16);
  public static final String CLASS_REMOVED_METHOD = Util.getDeltaPrefererenceKey(4, 3, 25);
  public static final String CLASS_REMOVED_CONSTRUCTOR = Util.getDeltaPrefererenceKey(4, 3, 8);
  public static final String CLASS_REMOVED_TYPE_MEMBER = Util.getDeltaPrefererenceKey(4, 3, 48);
  public static final String CLASS_REMOVED_SUPERCLASS = Util.getDeltaPrefererenceKey(4, 3, 39);
  public static final String CLASS_REMOVED_TYPE_PARAMETER = Util.getDeltaPrefererenceKey(4, 3, 49);
  public static final String FIELD_ADDED_VALUE = Util.getDeltaPrefererenceKey(7, 1, 54);
  public static final String FIELD_CHANGED_TYPE = Util.getDeltaPrefererenceKey(7, 2, 46);
  public static final String FIELD_CHANGED_VALUE = Util.getDeltaPrefererenceKey(7, 2, 54);
  public static final String FIELD_CHANGED_DECREASE_ACCESS = Util.getDeltaPrefererenceKey(7, 2, 11);
  public static final String FIELD_CHANGED_FINAL_TO_NON_FINAL_STATIC_CONSTANT = Util.getDeltaPrefererenceKey(7, 2, 20);
  public static final String FIELD_CHANGED_NON_FINAL_TO_FINAL = Util.getDeltaPrefererenceKey(7, 2, 31);
  public static final String FIELD_CHANGED_STATIC_TO_NON_STATIC = Util.getDeltaPrefererenceKey(7, 2, 38);
  public static final String FIELD_CHANGED_NON_STATIC_TO_STATIC = Util.getDeltaPrefererenceKey(7, 2, 33);
  public static final String FIELD_REMOVED_VALUE = Util.getDeltaPrefererenceKey(7, 3, 54);
  public static final String FIELD_REMOVED_TYPE_ARGUMENT = Util.getDeltaPrefererenceKey(7, 3, 68);
  public static final String METHOD_ADDED_TYPE_PARAMETER = Util.getDeltaPrefererenceKey(9, 1, 49);
  public static final String METHOD_ADDED_RESTRICTIONS = Util.getDeltaPrefererenceKey(9, 1, 37);
  public static final String METHOD_CHANGED_VARARGS_TO_ARRAY = Util.getDeltaPrefererenceKey(9, 2, 55);
  public static final String METHOD_CHANGED_DECREASE_ACCESS = Util.getDeltaPrefererenceKey(9, 2, 11);
  public static final String METHOD_CHANGED_NON_ABSTRACT_TO_ABSTRACT = Util.getDeltaPrefererenceKey(9, 2, 30);
  public static final String METHOD_CHANGED_NON_STATIC_TO_STATIC = Util.getDeltaPrefererenceKey(9, 2, 33);
  public static final String METHOD_CHANGED_STATIC_TO_NON_STATIC = Util.getDeltaPrefererenceKey(9, 2, 38);
  public static final String METHOD_CHANGED_NON_FINAL_TO_FINAL = Util.getDeltaPrefererenceKey(9, 2, 31);
  public static final String METHOD_REMOVED_ANNOTATION_DEFAULT_VALUE = Util.getDeltaPrefererenceKey(9, 3, 2);
  public static final String METHOD_REMOVED_TYPE_PARAMETER = Util.getDeltaPrefererenceKey(9, 3, 49);
  public static final String CONSTRUCTOR_ADDED_TYPE_PARAMETER = Util.getDeltaPrefererenceKey(5, 1, 49);
  public static final String CONSTRUCTOR_CHANGED_VARARGS_TO_ARRAY = Util.getDeltaPrefererenceKey(5, 2, 55);
  public static final String CONSTRUCTOR_CHANGED_DECREASE_ACCESS = Util.getDeltaPrefererenceKey(5, 2, 11);
  public static final String CONSTRUCTOR_REMOVED_TYPE_PARAMETER = Util.getDeltaPrefererenceKey(5, 3, 49);
  public static final String TYPE_PARAMETER_ADDED_CLASS_BOUND = Util.getDeltaPrefererenceKey(10, 1, 6);
  public static final String TYPE_PARAMETER_CHANGED_CLASS_BOUND = Util.getDeltaPrefererenceKey(10, 2, 6);
  public static final String TYPE_PARAMETER_REMOVED_CLASS_BOUND = Util.getDeltaPrefererenceKey(10, 3, 6);
  public static final String TYPE_PARAMETER_ADDED_INTERFACE_BOUND = Util.getDeltaPrefererenceKey(10, 1, 23);
  public static final String TYPE_PARAMETER_CHANGED_INTERFACE_BOUND = Util.getDeltaPrefererenceKey(10, 2, 23);
  public static final String TYPE_PARAMETER_REMOVED_INTERFACE_BOUND = Util.getDeltaPrefererenceKey(10, 3, 23);
  public static final String REPORT_API_BREAKAGE_WHEN_MAJOR_VERSION_INCREMENTED = "report_api_breakage_when_major_version_incremented";
  public static final String AUTOMATICALLY_REMOVE_UNUSED_PROBLEM_FILTERS = "automatically_removed_unused_problem_filters";
  public static final String FATAL_PROBLEMS = "fatal_problems";
  public static final String MISSING_SINCE_TAG = "missing_since_tag";
  public static final String MALFORMED_SINCE_TAG = "malformed_since_tag";
  public static final String INVALID_SINCE_TAG_VERSION = "invalid_since_tag_version";
  public static final String INCOMPATIBLE_API_COMPONENT_VERSION = "incompatible_api_component_version";
  public static final String INCOMPATIBLE_API_COMPONENT_VERSION_INCLUDE_INCLUDE_MINOR_WITHOUT_API_CHANGE = "incompatible_api_component_version_include_minor_without_api_change";
  public static final String INCOMPATIBLE_API_COMPONENT_VERSION_INCLUDE_INCLUDE_MAJOR_WITHOUT_BREAKING_CHANGE = "incompatible_api_component_version_include_major_without_breaking_change";
  public static final String MISSING_DEFAULT_API_BASELINE = "missing_default_api_profile";
  public static final String REPORT_RESOLUTION_ERRORS_API_COMPONENT = "report_resolution_errors_api_component";
  public static final String ILLEGAL_IMPLEMENT = "ILLEGAL_IMPLEMENT";
  public static final String ILLEGAL_EXTEND = "ILLEGAL_EXTEND";
  public static final String ILLEGAL_REFERENCE = "ILLEGAL_REFERENCE";
  public static final String ILLEGAL_INSTANTIATE = "ILLEGAL_INSTANTIATE";
  public static final String ILLEGAL_OVERRIDE = "ILLEGAL_OVERRIDE";
  public static final String LEAK_EXTEND = "LEAK_EXTEND";
  public static final String LEAK_IMPLEMENT = "LEAK_IMPLEMENT";
  public static final String LEAK_FIELD_DECL = "LEAK_FIELD_DECL";
  public static final String LEAK_METHOD_RETURN_TYPE = "LEAK_METHOD_RETURN_TYPE";
  public static final String LEAK_METHOD_PARAM = "LEAK_METHOD_PARAM";
  public static final String INVALID_JAVADOC_TAG = "INVALID_JAVADOC_TAG";
  public static final String INVALID_REFERENCE_IN_SYSTEM_LIBRARIES = "INVALID_REFERENCE_IN_SYSTEM_LIBRARIES";
  public static final String UNUSED_PROBLEM_FILTERS = "UNUSED_PROBLEM_FILTERS";
  public static final String API_USE_SCAN_TYPE_SEVERITY = "API_USE_SCAN_TYPE_SEVERITY";
  public static final String API_USE_SCAN_METHOD_SEVERITY = "API_USE_SCAN_METHOD_SEVERITY";
  public static final String API_USE_SCAN_FIELD_SEVERITY = "API_USE_SCAN_FIELD_SEVERITY";
  public static final String[] WORKSPACE_ONLY_PROBLEM_TYPES = { "missing_default_api_profile" };
}

/* Location:
 * Qualified Name:     org.eclipse.pde.api.tools.internal.provisional.problems.IApiProblemTypes
 * Java Class Version: 1.2 (46.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.pde.api.tools.internal.provisional.scanner;

import org.eclipse.osgi.util.NLS;

public class ScannerMessages
  extends NLS
{
  private static final String BUNDLE_NAME = "org.eclipse.pde.api.tools.internal.provisional.scanner.ScannerMessages";
  public static String ApiDescriptionManager_0;
  public static String ApiDescriptionManager_1;
  public static String ApiDescriptionManager_2;
  public static String ApiDescriptionManager_3;
  public static String ApiDescriptionManager_4;
  public static String ComponentXMLScanner_0;
  public static String ComponentXMLScanner_1;
  public static String ComponentXMLScanner_2;
  public static String ComponentXMLScanner_3;
  
  static
  {
    NLS.initializeMessages("org.eclipse.pde.api.tools.internal.provisional.scanner.ScannerMessages", ScannerMessages.class);
  }
}

/* Location:
 * Qualified Name:     org.eclipse.pde.api.tools.internal.provisional.scanner.ScannerMessages
 * Java Class Version: 1.2 (46.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.pde.api.tools.internal.provisional.scanner;

import java.text.MessageFormat;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.Status;
import org.eclipse.jdt.core.Flags;
import org.eclipse.jdt.core.dom.ASTNode;
import org.eclipse.jdt.core.dom.ASTVisitor;
import org.eclipse.jdt.core.dom.AbstractTypeDeclaration;
import org.eclipse.jdt.core.dom.AnnotationTypeDeclaration;
import org.eclipse.jdt.core.dom.BodyDeclaration;
import org.eclipse.jdt.core.dom.EnumDeclaration;
import org.eclipse.jdt.core.dom.FieldDeclaration;
import org.eclipse.jdt.core.dom.Javadoc;
import org.eclipse.jdt.core.dom.MethodDeclaration;
import org.eclipse.jdt.core.dom.Name;
import org.eclipse.jdt.core.dom.PackageDeclaration;
import org.eclipse.jdt.core.dom.SimpleName;
import org.eclipse.jdt.core.dom.TagElement;
import org.eclipse.jdt.core.dom.TypeDeclaration;
import org.eclipse.jdt.core.dom.VariableDeclarationFragment;
import org.eclipse.pde.api.tools.internal.JavadocTagManager;
import org.eclipse.pde.api.tools.internal.provisional.ApiPlugin;
import org.eclipse.pde.api.tools.internal.provisional.Factory;
import org.eclipse.pde.api.tools.internal.provisional.IApiDescription;
import org.eclipse.pde.api.tools.internal.provisional.descriptors.IElementDescriptor;
import org.eclipse.pde.api.tools.internal.provisional.descriptors.IMethodDescriptor;
import org.eclipse.pde.api.tools.internal.provisional.descriptors.IPackageDescriptor;
import org.eclipse.pde.api.tools.internal.provisional.descriptors.IReferenceTypeDescriptor;
import org.eclipse.pde.api.tools.internal.provisional.model.IApiMethod;
import org.eclipse.pde.api.tools.internal.provisional.model.IApiType;
import org.eclipse.pde.api.tools.internal.provisional.model.IApiTypeContainer;
import org.eclipse.pde.api.tools.internal.provisional.model.IApiTypeRoot;
import org.eclipse.pde.api.tools.internal.util.Signatures;

class TagScanner$Visitor
  extends ASTVisitor
{
  private IApiDescription fDescription = null;
  private IPackageDescriptor fPackage = Factory.packageDescriptor("");
  private IReferenceTypeDescriptor fType = null;
  private IApiTypeContainer fContainer = null;
  private CoreException fException;
  
  public TagScanner$Visitor(IApiDescription description, IApiTypeContainer container)
  {
    fDescription = description;
    fContainer = container;
  }
  
  public boolean visit(Javadoc node)
  {
    List tags = node.tags();
    ASTNode parent = node.getParent();
    if (parent != null) {
      switch (parent.getNodeType())
      {
      case 55: 
        TypeDeclaration type = (TypeDeclaration)parent;
        if (type.isInterface()) {
          processTags(fType, pruneTags(tags, type), 2, 16);
        } else {
          processTags(fType, pruneTags(tags, type), 1, 16);
        }
        break;
      case 31: 
        MethodDeclaration method = (MethodDeclaration)parent;
        String signature = Signatures.getMethodSignatureFromNode(method);
        if (signature != null)
        {
          String methodname = method.getName().getFullyQualifiedName();
          int member = 4;
          if (method.isConstructor())
          {
            member = 32;
            methodname = "<init>";
          }
          IMethodDescriptor descriptor = fType.getMethod(methodname, signature);
          processTags(descriptor, pruneTags(tags, method), getEnclosingType(method), member);
        }
        break;
      case 23: 
        FieldDeclaration field = (FieldDeclaration)parent;
        List fields = field.fragments();
        VariableDeclarationFragment fragment = null;
        for (Iterator iter = fields.iterator(); iter.hasNext();)
        {
          fragment = (VariableDeclarationFragment)iter.next();
          processTags(fType.getField(fragment.getName().getFullyQualifiedName()), pruneTags(tags, field), getEnclosingType(field), 8);
        }
      }
    }
    return false;
  }
  
  private int getEnclosingType(ASTNode node)
  {
    ASTNode lnode = node;
    while (!(lnode instanceof AbstractTypeDeclaration)) {
      lnode = lnode.getParent();
    }
    if (((lnode instanceof TypeDeclaration)) && 
      (((TypeDeclaration)lnode).isInterface())) {
      return 2;
    }
    return 1;
  }
  
  private void enterType(SimpleName name)
  {
    if (fType == null) {
      fType = fPackage.getType(name.getFullyQualifiedName());
    } else {
      fType = fType.getType(name.getFullyQualifiedName());
    }
  }
  
  private void exitType()
  {
    fType = fType.getEnclosingType();
  }
  
  protected void processTags(IElementDescriptor descriptor, List tags, int type, int member)
  {
    JavadocTagManager jtm = ApiPlugin.getJavadocTagManager();
    TagElement tag = null;
    String tagname = null;
    int restrictions = 0;
    for (Iterator iter = tags.iterator(); iter.hasNext();)
    {
      tag = (TagElement)iter.next();
      tagname = tag.getTagName();
      restrictions |= jtm.getRestrictionsForTag(tagname, type, member);
    }
    if (restrictions != 0)
    {
      IElementDescriptor ldesc = descriptor;
      if (ldesc.getElementType() == 6) {
        try
        {
          ldesc = resolveMethod((IMethodDescriptor)ldesc);
        }
        catch (CoreException e)
        {
          fException = e;
        }
      }
      fDescription.setRestrictions(ldesc, restrictions);
    }
  }
  
  private List pruneTags(List tags, ASTNode node)
  {
    ArrayList pruned = new ArrayList(tags.size());
    TagElement tag = null;
    switch (node.getNodeType())
    {
    case 55: 
      TypeDeclaration type = (TypeDeclaration)node;
      int flags = type.getModifiers();
      for (Iterator iterator = tags.iterator(); iterator.hasNext();)
      {
        tag = (TagElement)iterator.next();
        String tagname = tag.getTagName();
        if ((type.isInterface()) && (
          ("@noextend".equals(tagname)) || 
          ("@noimplement".equals(tagname)))) {
          pruned.add(tag);
        } else if (("@noextend".equals(tagname)) && 
          (!Flags.isFinal(flags))) {
          pruned.add(tag);
        } else if (("@noinstantiate".equals(tagname)) && 
          (!Flags.isAbstract(flags))) {
          pruned.add(tag);
        }
      }
      break;
    case 31: 
      MethodDeclaration method = (MethodDeclaration)node;
      int flags = method.getModifiers();
      for (Iterator iterator = tags.iterator(); iterator.hasNext();)
      {
        tag = (TagElement)iterator.next();
        if ("@noreference".equals(tag.getTagName()))
        {
          pruned.add(tag);
        }
        else if ("@nooverride".equals(tag.getTagName()))
        {
          ASTNode parent = method.getParent();
          int pflags = 0;
          if ((parent instanceof BodyDeclaration)) {
            pflags = ((BodyDeclaration)parent).getModifiers();
          }
          if ((!Flags.isFinal(flags)) && 
            (!Flags.isStatic(flags)) && 
            (!Flags.isFinal(pflags))) {
            pruned.add(tag);
          }
        }
      }
      break;
    case 23: 
      FieldDeclaration field = (FieldDeclaration)node;
      for (Iterator iterator = tags.iterator(); iterator.hasNext();)
      {
        tag = (TagElement)iterator.next();
        boolean isfinal = Flags.isFinal(field.getModifiers());
        if ((isfinal) || ((isfinal) && (Flags.isStatic(field.getModifiers())))) {
          break;
        }
        if ("@noreference".equals(tag.getTagName()))
        {
          pruned.add(tag);
          break;
        }
      }
    }
    return pruned;
  }
  
  private boolean isContinue()
  {
    return fException == null;
  }
  
  CoreException getException()
  {
    return fException;
  }
  
  public boolean visit(TypeDeclaration node)
  {
    if (isPrivate(node.getModifiers())) {
      return false;
    }
    enterType(node.getName());
    return isContinue();
  }
  
  public void endVisit(TypeDeclaration node)
  {
    if (!isPrivate(node.getModifiers())) {
      exitType();
    }
  }
  
  public void endVisit(AnnotationTypeDeclaration node)
  {
    if (!isPrivate(node.getModifiers())) {
      exitType();
    }
  }
  
  public boolean visit(AnnotationTypeDeclaration node)
  {
    if (isPrivate(node.getModifiers())) {
      return false;
    }
    enterType(node.getName());
    return isContinue();
  }
  
  public boolean visit(EnumDeclaration node)
  {
    if (isPrivate(node.getModifiers())) {
      return false;
    }
    enterType(node.getName());
    return isContinue();
  }
  
  public void endVisit(EnumDeclaration node)
  {
    if (!isPrivate(node.getModifiers())) {
      exitType();
    }
  }
  
  public boolean visit(PackageDeclaration node)
  {
    Name name = node.getName();
    fPackage = Factory.packageDescriptor(name.getFullyQualifiedName());
    return false;
  }
  
  public boolean visit(MethodDeclaration node)
  {
    if (isPrivate(node.getModifiers())) {
      return false;
    }
    return isContinue();
  }
  
  public boolean visit(FieldDeclaration node)
  {
    if (isPrivate(node.getModifiers())) {
      return false;
    }
    return isContinue();
  }
  
  private boolean isPrivate(int flags)
  {
    return Flags.isPrivate(flags);
  }
  
  private IMethodDescriptor resolveMethod(IMethodDescriptor descriptor)
    throws CoreException
  {
    if (fContainer != null)
    {
      IReferenceTypeDescriptor type = descriptor.getEnclosingType();
      IApiTypeRoot classFile = fContainer.findTypeRoot(type.getQualifiedName());
      if (classFile != null)
      {
        IApiType structure = classFile.getStructure();
        if (st
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55

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-2019. Infinite Loop Ltd