Interface IJavaSourceParser<PROP extends GProp<?>>

  • All Known Implementing Classes:
    AnnotationsEngine, TypeEngine

    public interface IJavaSourceParser<PROP extends GProp<?>>
    Interface for Java source file parsers.

    The files are all parsed by the post-Java builder as required, e.g. when they are changed, cleaned, etc.

    Author:
    Christopher Mindus
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and TypeMethodDescription
      voidcleanProject​(org.eclipse.core.resources.IProject project, org.eclipse.jdt.core.IJavaProject javaProject)
      Called to perform a clean on a project that is of Java nature, including Module projects.
      java.lang.StringgetID()
      Gets the ID of the processor.
      java.lang.StringgetMarkerType()
      Gets the Marker Type for errors used by the parser.
      JavaSourceFileProcessor<PROP>isHandled​(org.eclipse.core.resources.IFile sourceFile)
      Checks if the parser wishes to handle the file in question.
    • Method Detail

      • getID

        java.lang.String getID()
        Gets the ID of the processor.
      • getMarkerType

        java.lang.String getMarkerType()
        Gets the Marker Type for errors used by the parser.
      • cleanProject

        void cleanProject​(org.eclipse.core.resources.IProject project,
                          org.eclipse.jdt.core.IJavaProject javaProject)
        Called to perform a clean on a project that is of Java nature, including Module projects.
        Parameters:
        project - The project.
        javaProject - The Java project.
      • isHandled

        JavaSourceFileProcessor<PROP> isHandled​(org.eclipse.core.resources.IFile sourceFile)
        Checks if the parser wishes to handle the file in question.
        Parameters:
        sourceFile - The source file.
        Returns:
        Return an instance of a class that parses the file in question, or null to ignore the file.