Package org.jenkinsci.plugins.tokenmacro
Class Parser
java.lang.Object
org.jenkinsci.plugins.tokenmacro.Parser
Created by acearl on 3/6/2016.
-
Constructor Summary
ConstructorsConstructorDescriptionParser
(Run<?, ?> run, FilePath workspace, TaskListener listener, String stringWithMacro, boolean throwException) Parser
(Run<?, ?> run, FilePath workspace, TaskListener listener, String stringWithMacro, boolean throwException, int recursionLevel) -
Method Summary
Modifier and TypeMethodDescriptionstatic String
process
(AbstractBuild<?, ?> build, TaskListener listener, String stringWithMacro, boolean throwException, List<TokenMacro> privateTokens) static String
process
(Run<?, ?> run, FilePath workspace, TaskListener listener, String stringWithMacro, boolean throwException, List<TokenMacro> privateTokens) static String
unescapeString
(String escapedString) Replaces all the printf-style escape sequences in a string with the appropriate characters.
-
Constructor Details
-
Parser
public Parser(Run<?, ?> run, @CheckForNull FilePath workspace, TaskListener listener, String stringWithMacro, boolean throwException) -
Parser
public Parser(Run<?, ?> run, @CheckForNull FilePath workspace, TaskListener listener, String stringWithMacro, boolean throwException, int recursionLevel)
-
-
Method Details
-
process
public static String process(AbstractBuild<?, ?> build, TaskListener listener, String stringWithMacro, boolean throwException, List<TokenMacro> privateTokens) throws MacroEvaluationException- Throws:
MacroEvaluationException
-
process
public static String process(Run<?, ?> run, @CheckForNull FilePath workspace, TaskListener listener, String stringWithMacro, boolean throwException, List<TokenMacro> privateTokens) throws MacroEvaluationException- Throws:
MacroEvaluationException
-
unescapeString
Replaces all the printf-style escape sequences in a string with the appropriate characters.- Parameters:
escapedString
- the string containing escapes- Returns:
- the string with all the escape sequences replaced
-