Class JavaMatcher
- java.lang.Object
-
- com.devonfw.cobigen.javaplugin.matcher.JavaMatcher
-
- All Implemented Interfaces:
com.devonfw.cobigen.api.extension.MatcherInterpreter
public class JavaMatcher extends Object implements com.devonfw.cobigen.api.extension.MatcherInterpreter
Matcher implementation for the Java Plugin
-
-
Constructor Summary
Constructors Constructor Description JavaMatcher()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,String>getResolvedVariables(com.devonfw.cobigen.javaplugin.matcher.JavaMatcher.MatcherType matcherType, String matcherValue, String stringToMatch, List<com.devonfw.cobigen.api.to.VariableAssignmentTo> variableAssignments)Resolves all variables for this triggerbooleanmatches(com.devonfw.cobigen.api.to.MatcherTo matcher)Map<String,String>resolveVariables(com.devonfw.cobigen.api.to.MatcherTo matcher, List<com.devonfw.cobigen.api.to.VariableAssignmentTo> variableAssignments)
-
-
-
Method Detail
-
matches
public boolean matches(com.devonfw.cobigen.api.to.MatcherTo matcher)
- Specified by:
matchesin interfacecom.devonfw.cobigen.api.extension.MatcherInterpreter
-
resolveVariables
public Map<String,String> resolveVariables(com.devonfw.cobigen.api.to.MatcherTo matcher, List<com.devonfw.cobigen.api.to.VariableAssignmentTo> variableAssignments) throws com.devonfw.cobigen.api.exception.InvalidConfigurationException
- Specified by:
resolveVariablesin interfacecom.devonfw.cobigen.api.extension.MatcherInterpreter- Throws:
com.devonfw.cobigen.api.exception.InvalidConfigurationException
-
getResolvedVariables
public Map<String,String> getResolvedVariables(com.devonfw.cobigen.javaplugin.matcher.JavaMatcher.MatcherType matcherType, String matcherValue, String stringToMatch, List<com.devonfw.cobigen.api.to.VariableAssignmentTo> variableAssignments) throws com.devonfw.cobigen.api.exception.InvalidConfigurationException
Resolves all variables for this trigger- Parameters:
matcherType- matcher typematcherValue- matcher valuestringToMatch- String to matchvariableAssignments- variable assigments to be resolved- Returns:
- a
Mapfrom variable name to the resolved value - Throws:
com.devonfw.cobigen.api.exception.InvalidConfigurationException- if some of the matcher type and variable type combinations are not supported
-
-