Class AnnotationsEngine
java.lang.Object
com.iizigo.java.parser.annotation.AnnotationsEngine
- All Implemented Interfaces:
IJavaSourceParser<AnnotationsContainer>
The Java annotations engine for properties. This class initiates the process of parsing Java files, to handle refactoring, etc.
- Author:
- Christopher Mindus
Constructor Summary
Method Summary
Modifier and TypeMethodDescriptionvoid
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.getID()
Gets the ID of the processor.Gets the Marker Type for errors used by the parser.static void
Initializes the singleton engine, called from the Java Manager.isHandled
(org.eclipse.core.resources.IFile sourceFile) Checks if the parser wishes to handle the file in question.
Constructor Details
AnnotationsEngine
public AnnotationsEngine()
Method Details
initialize
public static void initialize()Initializes the singleton engine, called from the Java Manager.getID
Gets the ID of the processor.- Specified by:
getID
in interfaceIJavaSourceParser<AnnotationsContainer>
getMarkerType
Gets the Marker Type for errors used by the parser.- Specified by:
getMarkerType
in interfaceIJavaSourceParser<AnnotationsContainer>
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 interfaceIJavaSourceParser<AnnotationsContainer>
- Parameters:
project
- The project.javaProject
- The Java project.
isHandled
public JavaSourceFileProcessor<AnnotationsContainer> isHandled(org.eclipse.core.resources.IFile sourceFile) Checks if the parser wishes to handle the file in question.- Specified by:
isHandled
in interfaceIJavaSourceParser<AnnotationsContainer>
- Parameters:
sourceFile
- The source file.- Returns:
- Return an instance of a class that parses the file in question, or null to ignore the file.