// Switch to Mata interpreter/compiler
mata:
// Drops class object if it already exists
// mata drop menu()
// Definition of HTML Tag menu Mata Class
// Defines a list/menu of commands// Information retrieved from http://www.w3schools.com/tags/tag_menu.asp
class menu extends htmlglobal {
// Define private member variables
private:
// Static/final variables
static string scalar opens, opene, close
// String scalar attributes
string scalar htmllabel, htmltype
// Make class args non-static to prevent assignment of class args to all instances of class
string scalar classargs
// Define public members/methods
public:
// Class constructor method
void new()
// Setter methods
class menu scalar setClassArgs(), setLabel(), setType()
// Getter methods
string scalar getOpens(), getOpene(), getClose(), print(), getClassArgs(), getLabel(), getType()
} // End of class declaration
// Class constructor method declaration
void menu::new() {
// Defines the start of the opening tag for the class
this.opens = "