This represents the language tag seen at the top of a language file.
Public Member Functions | |
LanguageElement (LanguageSet parent, MLLexer lexer) | |
LanguageElement (LanguageSet parent, MLLexer lexer, bool innerElement) | |
override void | SetTag (string tag) |
Sets the tag of this element. More... | |
override TagHandler | GetHandler () |
Gets the handler which determines how this element and it's properties are used. More... | |
Public Member Functions inherited from Wrench.MLElement | |
virtual void | ResetVariable (string name) |
Reloads the content of variables if it's name matches the given one. More... | |
virtual void | ResetAllVariables () |
Re-resolves all variable tags. This is used when the language is changed. More... | |
virtual void | OnChildrenLoaded () |
Called when this elements children are fully loaded. More... | |
override string | ToString () |
Public Attributes | |
LanguageSet | Parent |
The set this element belongs to. More... | |
TagHandler | Handler |
The tag handler for this element. More... | |
Public Attributes inherited from Wrench.MLElement | |
string | Tag |
The raw tag as a string. e.g. "div","span" etc in html. More... | |
Protected Member Functions | |
override MLElement | CreateTagElement (MLLexer lexer) |
Called from within this element to generate a new tag element. More... | |
Protected Member Functions inherited from Wrench.MLElement | |
void | ReadTag (MLLexer lexer) |
Reads a tag from the given lexer. Note that this does not read it's children or closing tag. More... | |
void | ReadContent (MLLexer lexer, bool innerElement, bool literal) |
Reads the children for this tag from a lexer. More... | |
virtual MLVariableElement | CreateVariableElement () |
Called from within this element to create a variable element. Variable elements holds the resolved value of a . More... | |
virtual MLTextElement | CreateTextElement () |
Called from within this element to create a raw text element. More... | |
virtual string | GetVariableValue (string variable) |
Called from within this element when it parses an attempts to resolve a . More... | |
Additional Inherited Members | |
Protected Attributes inherited from Wrench.MLElement | |
bool | SelfClosing |
True if this tag closes itself and doesn't need an end ("/div" for example) tag. More... | |
Dictionary< string, string > | Properties =new Dictionary<string,string>() |
The set of attributes on this tag. An attribute is e.g. style="display:none;". More... | |
Properties inherited from Wrench.MLElement | |
string | this[string property] [get, set] |
Gets or sets the named attribute of this tag. An attribute is e.g. style="display:none;". More... | |
|
inline |
|
inline |
Called from within this element to generate a new tag element.
Reimplemented from Wrench.MLElement.
|
inlinevirtual |
Gets the handler which determines how this element and it's properties are used.
Reimplemented from Wrench.MLElement.
|
inlinevirtual |
Sets the tag of this element.
Reimplemented from Wrench.MLElement.
TagHandler Wrench.LanguageElement.Handler |
The tag handler for this element.
LanguageSet Wrench.LanguageElement.Parent |
The set this element belongs to.