Class TypeEngine

  • All Implemented Interfaces:
    IJavaSourceParser<TypesContainer>

    public class TypeEngine
    extends java.lang.Object
    implements IJavaSourceParser<TypesContainer>
    The Java annotations engine for properties. This class initiates the process of parsing Java files, to handle refactoring, etc.
    Author:
    Christopher Mindus
    • Constructor Summary

      Constructors 
      Constructor Description
      TypeEngine()  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      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.
      java.lang.String getID()
      Gets the ID of the processor.
      java.lang.String getMarkerType()
      Gets the Marker Type for errors used by the parser.
      static void initialize()
      Initializes the singleton engine, called from the Java Manager.
      JavaSourceFileProcessor<TypesContainer> isHandled​(org.eclipse.core.resources.IFile sourceFile)
      Checks if the parser wishes to handle the file in question.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TypeEngine

        public TypeEngine()
    • Method Detail

      • initialize

        public static void initialize()
        Initializes the singleton engine, called from the Java Manager.
      • cleanProject

        public 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.
        Specified by:
        cleanProject in interface IJavaSourceParser<TypesContainer>
        Parameters:
        project - The project.
        javaProject - The Java project.
      • isHandled

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