Class Macro
java.lang.Object
com.synopsys.arc.jenkins.plugins.rolestrategy.Macro
Macro representation for roles and users. Implements following format:
 
@macroId[:index][(parameter1, parameter2, ...)],
 - macroId - name of the macro. Supports alphanumeric symbols
- index - optional integer, which allow to duplicate macro calls
- parameters - optional set of strings. each parameter should be string without quotes
- Since:
- 2.1.0
- Author:
- Oleg Nenashev, Synopsys Inc.
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method Summary
- 
Field Details- 
MACRO_PREFIX- See Also:
 
 
- 
- 
Constructor Details- 
MacroCreate new Macro.- Parameters:
- name- Name of Macro
- index- Index of Macro
- parameters- List of Parameters
 
 
- 
- 
Method Details- 
getNameGet name of the macro.- Returns:
- Name of the macro (without prefix)
 
- 
getDisplayName
- 
getIndexpublic int getIndex()
- 
hasIndexpublic boolean hasIndex()
- 
getParameters
- 
hasParameterspublic boolean hasParameters()
- 
toString
- 
isMacroCheck if role is a macro.- Parameters:
- role- Role to be checked
- Returns:
- true if role meets macro criteria
 
- 
isMacro
- 
ParseDeprecated.Parse Macro.- Throws:
- MacroException
 
- 
parseParse macro from string.- Parameters:
- macroString- - macro string
- Returns:
- Macro instance
- Throws:
- MacroException- - Parse error
- Since:
- 2.3.0
 
 
- 
parse(java.lang.String)