Package org.jenkinsci.plugins.tokenmacro
Class Parser
- java.lang.Object
-
- org.parboiled.BaseActions<V>
-
- org.parboiled.BaseParser<Object>
-
- org.jenkinsci.plugins.tokenmacro.Parser
-
-
Constructor Summary
Constructors Constructor Description Parser(hudson.model.Run<?,?> run, hudson.FilePath workspace, hudson.model.TaskListener listener, String stringWithMacro)Parser(hudson.model.Run<?,?> run, hudson.FilePath workspace, hudson.model.TaskListener listener, String stringWithMacro, int recursionLevel)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Stringprocess(hudson.model.AbstractBuild<?,?> build, hudson.model.TaskListener listener, String stringWithMacro, boolean throwException, List<TokenMacro> privateTokens)static Stringprocess(hudson.model.Run<?,?> run, hudson.FilePath workspace, hudson.model.TaskListener listener, String stringWithMacro, boolean throwException, List<TokenMacro> privateTokens)voidsetPrivateTokens(List<TokenMacro> privateTokens)voidsetThrowException(boolean throwException)org.parboiled.RuleText()org.parboiled.RuleToken()static StringunescapeString(String escapedString)Replaces all the printf-style escape sequences in a string with the appropriate characters.-
Methods inherited from class org.parboiled.BaseParser
ACTION, AnyOf, AnyOf, AnyOf, Ch, CharRange, FirstOf, FirstOf, fromCharArray, fromCharLiteral, fromStringLiteral, IgnoreCase, IgnoreCase, IgnoreCase, newInstance, NoneOf, NoneOf, NTimes, NTimes, OneOrMore, OneOrMore, Optional, Optional, Sequence, Sequence, String, String, Test, Test, TestNot, TestNot, toRule, toRules, ZeroOrMore, ZeroOrMore
-
Methods inherited from class org.parboiled.BaseActions
currentChar, currentIndex, drop, drop, dup, getContext, hasError, inPredicate, match, matchedChar, matchEnd, matchLength, matchOrDefault, matchRange, matchStart, nodeSuppressed, peek, peek, poke, poke, pop, pop, position, push, push, pushAll, setContext, swap, swap3, swap4, swap5, swap6
-
-
-
-
Constructor Detail
-
Parser
public Parser(hudson.model.Run<?,?> run, hudson.FilePath workspace, hudson.model.TaskListener listener, String stringWithMacro)
-
Parser
public Parser(hudson.model.Run<?,?> run, hudson.FilePath workspace, hudson.model.TaskListener listener, String stringWithMacro, int recursionLevel)
-
-
Method Detail
-
setThrowException
public void setThrowException(boolean throwException)
-
setPrivateTokens
public void setPrivateTokens(List<TokenMacro> privateTokens)
-
process
public static String process(hudson.model.AbstractBuild<?,?> build, hudson.model.TaskListener listener, String stringWithMacro, boolean throwException, List<TokenMacro> privateTokens) throws MacroEvaluationException
- Throws:
MacroEvaluationException
-
process
public static String process(hudson.model.Run<?,?> run, hudson.FilePath workspace, hudson.model.TaskListener listener, String stringWithMacro, boolean throwException, List<TokenMacro> privateTokens) throws MacroEvaluationException
- Throws:
MacroEvaluationException
-
Text
public org.parboiled.Rule Text() throws InterruptedException, MacroEvaluationException, IOException
-
Token
public org.parboiled.Rule Token() throws InterruptedException, MacroEvaluationException, IOException
-
-