| |
|
| java.lang.Object spoon.processing.AbstractManualProcessor spoon.processing.XMLAnnotationProcessor
XMLAnnotationProcessor | public class XMLAnnotationProcessor extends AbstractManualProcessor (Code) | | A processor to add/replace/override/remove annotations described in an XML
file. This version is based on java.util.regexp, but it can be subclassed to
implement other types of matchings. Note that the used XML file is defined by
the property
XMLAnnotationProcessor.xmlPath , which can be defined in a property file or a
Spoonlet file (spoon.xml) depending on your environment.
author: Didier Donsez author: Renaud Pawlak |
Field Summary | |
public String | xmlPath This property contains the path of the XML file that describes the
annotations of the processed program. |
Method Summary | |
final public void | init() | protected boolean | isExecutableMatching(CtExecutable> executable, String executableExpression) Override this method to create other types of matchings than the defaut
one (java.util.regexp).
Parameters: executable - the canditate executable Parameters: executableExpression - and expression to match the executable against. | protected boolean | isFieldMatching(CtField> field, String fieldExpression) Override this method to create other types of matchings than the defaut
one (java.util.regexp).
Parameters: field - the canditate field Parameters: fieldExpression - and expression to match the field against. | protected boolean | isTypeMatching(CtSimpleType> type, String typeExpression) Override this method to create other types of matchings than the defaut
one (java.util.regexp).
Parameters: type - the canditate type Parameters: typeExpression - and expression to match the type against. | final public void | process() |
xmlPath | public String xmlPath(Code) | | This property contains the path of the XML file that describes the
annotations of the processed program. By default, the file is the
annotations.xml file contained in the current directory.
|
XMLAnnotationProcessor | public XMLAnnotationProcessor()(Code) | | Creates a new XMLAnnotationProcessor.
|
init | final public void init()(Code) | | |
isExecutableMatching | protected boolean isExecutableMatching(CtExecutable> executable, String executableExpression)(Code) | | Override this method to create other types of matchings than the defaut
one (java.util.regexp).
Parameters: executable - the canditate executable Parameters: executableExpression - and expression to match the executable against. true if the executable matches the expression See Also: CtElement.getSignature |
isFieldMatching | protected boolean isFieldMatching(CtField> field, String fieldExpression)(Code) | | Override this method to create other types of matchings than the defaut
one (java.util.regexp).
Parameters: field - the canditate field Parameters: fieldExpression - and expression to match the field against. true if the field matches the expression See Also: CtElement.getSignature |
isTypeMatching | protected boolean isTypeMatching(CtSimpleType> type, String typeExpression)(Code) | | Override this method to create other types of matchings than the defaut
one (java.util.regexp).
Parameters: type - the canditate type Parameters: typeExpression - and expression to match the type against. true if the type matches the expression See Also: CtElement.getSignature |
process | final public void process()(Code) | | |
|
|
|