klyn.code.ast.DeclarationKind.isTypeDeclaration
method
public isTypeDeclaration() as Boolean
Description

Returns true if this declaration represents a user-defined type (CLASS, INTERFACE, STRUCT, RECORD, ENUM, TRAIT, ANNOTATION).

Returns

true for type declarations.

Example
import klyn.code.ast

assert DeclarationKind.INTERFACE.isTypeDeclaration()
assert DeclarationKind.ANNOTATION.isTypeDeclaration()
assert not DeclarationKind.METHOD.isTypeDeclaration()