public class SyntaxElement extends CategorizedElement
Objects of this class represent either a MidicaPL syntax element (keyword or symbol) or a category of syntax elements.
| Modifier and Type | Field and Description |
|---|---|
java.lang.String |
description
Description of the keyword (ignored if it’s a category)
|
java.lang.String |
keyword
Keyword (ignored if it’s a category)
|
java.lang.String |
name
Syntax identifier (or category name if the element is a category)
|
category| Constructor and Description |
|---|
SyntaxElement(java.lang.String name,
java.lang.String description,
java.lang.String keyword,
boolean category)
Creates a new syntax element or syntax category with the given parameters as it’s properties.
|
isCategorypublic java.lang.String name
Syntax identifier (or category name if the element is a category)
public java.lang.String keyword
Keyword (ignored if it’s a category)
public java.lang.String description
Description of the keyword (ignored if it’s a category)
public SyntaxElement(java.lang.String name,
java.lang.String description,
java.lang.String keyword,
boolean category)
Creates a new syntax element or syntax category with the given parameters as it’s properties.
name - syntax identifier (or category name if the element is a category)description - description of the keyword (ignored if it’s a category)keyword - MidicaPL keyword or symbol (ignored if it’s a category)category - true if a category shall be created – false if it’s a normal syntax element