Class ClassFileToIndexConverter

java.lang.Object
org.aspectj.org.eclipse.jdt.internal.core.nd.indexer.ClassFileToIndexConverter

public final class ClassFileToIndexConverter extends Object
  • Constructor Details

    • ClassFileToIndexConverter

      public ClassFileToIndexConverter(NdResourceFile resourceFile)
  • Method Details

    • createInfoFromClassFileInJar

      protected static IBinaryType createInfoFromClassFileInJar(Openable classFile) throws org.eclipse.core.runtime.CoreException
      Create a type info from the given class file in a jar and adds it to the given list of infos.
      Throws:
      org.eclipse.core.runtime.CoreException
    • addType

      public NdType addType(IBinaryType binaryType, char[] fieldDescriptor, org.eclipse.core.runtime.IProgressMonitor monitor) throws org.eclipse.core.runtime.CoreException
      Adds a type to the index, given an input class file and a binary name. Note that the given binary name is
      Parameters:
      binaryType - an object used for parsing the .class file itself
      fieldDescriptor - the name that is used to locate the class, computed from the .class file's name and location. In the event that the .class file has been moved, this may differ from the binary name stored in the .class file itself, which is why this is received as an argument rather than extracted from the .class file.
      Throws:
      org.eclipse.core.runtime.CoreException
    • createConstantFromMixedType

      public NdConstant createConstantFromMixedType(Object value)
      Parameters:
      value - accepts all values returned from IBinaryElementValuePair.getValue()