public class MacroDeclarationsCompositor extends java.lang.Object implements MacroDeclarations
hasMacro(String) and getMacro(String)
 methods to other macro declarations.
 
 Each macro declaration combined is checked in sequential order.
 
 No checks for conflicts are done. Thus shadowing is possible.| Constructor and Description | 
|---|
| MacroDeclarationsCompositor(MacroDeclarations... declarations)Constructs a  MacroDeclarationsCompositorcontaining the provided
 declarations | 
| Modifier and Type | Method and Description | 
|---|---|
| Macro | getMacro(java.lang.String name)Tries to fetch a macro from one of the combined declarations. | 
| boolean | hasMacro(java.lang.String name)Whether the macro is contained in one of the combined declarations. | 
public MacroDeclarationsCompositor(MacroDeclarations... declarations)
MacroDeclarationsCompositor containing the provided
 declarations
 
 The order of the declarations will determine the order of checking the
 declarations for macros.declarations - the declarations being combinedpublic boolean hasMacro(java.lang.String name)
hasMacro in interface MacroDeclarationsname - name of the macropublic Macro getMacro(java.lang.String name)
MacroDeclarations applies here too.getMacro in interface MacroDeclarationsname - the name of the macro to be fetched