/** * Adds a new Velocimacro. Usually called by Macro only while parsing. * * @param name Name of a new velocimacro. * @param macro root AST node of the parsed macro * @param macroArgs Array of macro arguments, containing the * #macro() arguments and default values. the 0th is the name. * @param definingTemplate Template containing the definition of the macro. */ public static boolean addVelocimacro(String name, Node macro, List<Macro.MacroArg> macroArgs, Template definingTemplate) { return ri.addVelocimacro(name, macro, macroArgs, definingTemplate); }
/** * Adds a new Velocimacro. Usually called by Macro only while parsing. * * @param name Name of a new velocimacro. * @param macro root AST node of the parsed macro * @param argArray Array of strings, containing the * #macro() arguments. the 0th argument is the name. * @param sourceTemplate The template from which the macro is requested. * @return boolean True if added, false if rejected for some * reason (either parameters or permission settings) * @see RuntimeInstance#addVelocimacro(String, Node, String[], String) * @since 1.6 */ public static boolean addVelocimacro(String name, Node macro, String argArray[], String sourceTemplate) { return ri.addVelocimacro(name, macro, argArray, sourceTemplate); }
/** * Adds a new Velocimacro. Usually called by Macro only while parsing. * * @param String name Name of velocimacro * @param String macro String form of macro body * @param String argArray Array of strings, containing the * #macro() arguments. the 0th is the name. * @return boolean True if added, false if rejected for some * reason (either parameters or permission settings) */ public static boolean addVelocimacro( String name, String macro, String argArray[], String sourceTemplate ) { return ri.addVelocimacro( name, macro, argArray, sourceTemplate ); }
/** * Adds a new Velocimacro. Usually called by Macro only while parsing. * * @param name Name of a new velocimacro. * @param macro root AST node of the parsed macro * @param argArray Array of strings, containing the * #macro() arguments. the 0th argument is the name. * @param sourceTemplate The template from which the macro is requested. * @return boolean True if added, false if rejected for some * reason (either parameters or permission settings) * @see RuntimeInstance#addVelocimacro(String, Node, String[], String) * @since 1.6 */ public static boolean addVelocimacro(String name, Node macro, String argArray[], String sourceTemplate) { return ri.addVelocimacro(name, macro, argArray, sourceTemplate); }
/** * Adds a new Velocimacro. Usually called by Macro only while parsing. * * @param name Name of velocimacro * @param macro String form of macro body * @param argArray Array of strings, containing the * #macro() arguments. the 0th is the name. * @param sourceTemplate Name of the template that contains the velocimacro. * @return True if added, false if rejected for some * reason (either parameters or permission settings) * * @deprecated Use addVelocimacro(String, Node, String[], String) instead * * @see RuntimeInstance#addVelocimacro(String, String, String[], String) */ public static boolean addVelocimacro( String name, String macro, String argArray[], String sourceTemplate ) { return ri.addVelocimacro( name, macro, argArray, sourceTemplate ); }
/** * Adds a new Velocimacro. Usually called by Macro only while parsing. * * @param name Name of velocimacro * @param macro String form of macro body * @param argArray Array of strings, containing the * #macro() arguments. the 0th is the name. * @param sourceTemplate Name of the template that contains the velocimacro. * @return True if added, false if rejected for some * reason (either parameters or permission settings) * * @deprecated Use addVelocimacro(String, Node, String[], String) instead * * @see RuntimeInstance#addVelocimacro(String, String, String[], String) */ public static boolean addVelocimacro( String name, String macro, String argArray[], String sourceTemplate ) { return ri.addVelocimacro( name, macro, argArray, sourceTemplate ); }