Class Symbols.ClaferSymbol
java.lang.Object
org.clafer.frontend.Symbols.ClaferSymbol
- Enclosing class:
Symbols
A clafer, or an enumeration or one of its literals.
-
Method Details
-
declaration
- Returns:
- the
Syntax.Clafer,Syntax.ClaferUseorSyntax.EnumDeclthat declares it, or theSyntax.Identof an enumeration's literal
-
name
-
nameSpan
-
uid
-
parent
- Returns:
- its parent, empty at the top level; a top-level abstract clafer that extends a nested one is a sibling of its super (gsdlab/clafer#67)
-
lexicalParent
- Returns:
- the clafer whose block declares it, empty at the top level
-
children
- Returns:
- its subclafers, in the order of the model, with the clafers relocated under it last
-
isAbstract
-
isEnum
- Returns:
- whether it is an enumeration or one of its literals
-
isTopLevel
- Returns:
- whether its parent is the root, as the compiler's
isTopLevel
-
superClafer
-
reference
-
card
- Returns:
- its card, as written or by default
-
groupCard
- Returns:
- its group card: as written, or else that of its nearest
super with one, or else
Symbols.GroupCard.Default
-
writtenCard
-
writtenGroupCard
-
isInitial
- Returns:
- whether it is initial, as written or as its super is written
-
isFinal
- Returns:
- whether it is final, as written or as its super is written
-
refModifiers
- Returns:
- the modifiers of its reference, of its own or of the one it
inherits (
finalref motor : engine), as written
-
initializer
- Returns:
- the clock of its initializer, if it has one:
=,:= eachor:= together, written or derived from the written card
-
toString
-