Class JavaMatcher
- java.lang.Object
-
- com.devonfw.cobigen.javaplugin.matcher.JavaMatcher
-
- All Implemented Interfaces:
com.devonfw.cobigen.api.extension.MatcherInterpreter
public class JavaMatcher extends java.lang.Object implements com.devonfw.cobigen.api.extension.MatcherInterpreterMatcher implementation for the Java Plugin
-
-
Constructor Summary
Constructors Constructor Description JavaMatcher()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Map<java.lang.String,java.lang.String>getResolvedVariables(com.devonfw.cobigen.javaplugin.matcher.JavaMatcher.MatcherType matcherType, java.lang.String matcherValue, java.lang.String stringToMatch, java.util.List<com.devonfw.cobigen.api.to.VariableAssignmentTo> variableAssignments)Resolves all variables for this triggerbooleanmatches(com.devonfw.cobigen.api.to.MatcherTo matcher)java.util.Map<java.lang.String,java.lang.String>resolveVariables(com.devonfw.cobigen.api.to.MatcherTo matcher, java.util.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 java.util.Map<java.lang.String,java.lang.String> resolveVariables(com.devonfw.cobigen.api.to.MatcherTo matcher, java.util.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 java.util.Map<java.lang.String,java.lang.String> getResolvedVariables(com.devonfw.cobigen.javaplugin.matcher.JavaMatcher.MatcherType matcherType, java.lang.String matcherValue, java.lang.String stringToMatch, java.util.List<com.devonfw.cobigen.api.to.VariableAssignmentTo> variableAssignments) throws com.devonfw.cobigen.api.exception.InvalidConfigurationExceptionResolves 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
-
-