Class AnnotationsEngine
- java.lang.Object
- com.iizigo.java.parser.annotation.AnnotationsEngine
- All Implemented Interfaces:
IJavaSourceParser<AnnotationsContainer>
public class AnnotationsEngine extends java.lang.Object implements 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
Constructors Constructor Description AnnotationsEngine()
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<AnnotationsContainer>
isHandled(org.eclipse.core.resources.IFile sourceFile)
Checks if the parser wishes to handle the file in question.
Method Detail
initialize
public static void initialize()
Initializes the singleton engine, called from the Java Manager.
getID
public java.lang.String getID()
Gets the ID of the processor.- Specified by:
getID
in interfaceIJavaSourceParser<AnnotationsContainer>
getMarkerType
public java.lang.String 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.