Class MatchFactory
- java.lang.Object
-
- net.ssehub.easy.instantiation.core.model.buildlangModel.ruleMatch.MatchFactory
-
public class MatchFactory extends java.lang.ObjectA factory to create the match expressions implemented in this package.- Author:
- Holger Eichelberger
-
-
Field Summary
Fields Modifier and Type Field Description private static TypeDescriptor<?>ARTIFACTprivate static TypeDescriptor<?>BOOLEANstatic MatchFactoryINSTANCEprivate static TypeDescriptor<?>PATHprivate static TypeDescriptor<?>STRING
-
Constructor Summary
Constructors Modifier Constructor Description privateMatchFactory()Prevents external creation.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AbstractRuleMatchExpressioncreate(Expression expr)Creates a rule match expression fromexpr.
-
-
-
Field Detail
-
INSTANCE
public static final MatchFactory INSTANCE
-
STRING
private static final TypeDescriptor<?> STRING
-
PATH
private static final TypeDescriptor<?> PATH
-
ARTIFACT
private static final TypeDescriptor<?> ARTIFACT
-
BOOLEAN
private static final TypeDescriptor<?> BOOLEAN
-
-
Method Detail
-
create
public AbstractRuleMatchExpression create(Expression expr) throws VilException
Creates a rule match expression fromexpr.- Parameters:
expr- the expression to be turned into a rule match expression- Returns:
- the resulting rule match expression (null if no creation is possible)
- Throws:
VilException- in case of type problems
-
-