Class JPPAnnotationParser

java.lang.Object
org.variantsync.diffdetective.feature.PreprocessorAnnotationParser
org.variantsync.diffdetective.feature.jpp.JPPAnnotationParser
All Implemented Interfaces:
AnnotationParser

public class JPPAnnotationParser extends PreprocessorAnnotationParser
Parses a JavaPP (Java PreProcessor) statement. For example, given the annotation //#if defined(A) || B(), the class would parse new Or(new Literal("defined(A)"), new Literal("B()")). The parser detects if, elif, else and endif annotations. The given JPP statement might also be a line in a diff (i.e., preceded by a - or +).
Author:
Alexander Schultheiß