A class or interface declaration.
Examples (multi-line):
shared class PrintableWrapper<T>(shared T wrapped) satisfies Printable { shared actual void print() { package.print(wrapped else "<null>"); } } shared interface 3DSized<Unit> given Unit satisfies Numeric<Unit> { shared formal Unit width; shared formal Unit length; shared formal Unit height; }
Anything
ClassOrInterface
TypeDeclaration
Declaration
Node
Object
Anything
Initializer |
ClassOrInterface() |
Attributes | |
caseTypes | Source Codeshared formal CaseTypes? caseTypes The case types of the class or interface, if present. |
satisfiedTypes | Source Codeshared formal SatisfiedTypes? satisfiedTypes The satisfied types of the class or interface, if present. |
Inherited Attributes |
Attributes inherited from: Declaration |
Attributes inherited from: Node |
Attributes inherited from: Object hash , string |
Attributes inherited from: TypeDeclaration |
Inherited Methods |
Methods inherited from: Node |
Methods inherited from: Object equals |