ClassDeclaration

/**
* A ClassDeclaration
*/

Inherit from ClassLikeDeclaration

Primary key: id: int

schema ClassDeclaration extends ClassLikeDeclaration {
  @primary id: int
}

ClassDeclaration::getSymbol

/**
* Gets the symbol associated with this node.
*/
pub fn getSymbol(self: ClassDeclaration) -> Symbol;

ClassDeclaration::getAnAncestorEnclosingFunction

/**
* Gets an ancestor enclosing function of it
*/
pub fn getAnAncestorEnclosingFunction(self: ClassDeclaration) -> *FunctionLikeDeclaration;

ClassDeclaration::getIndex

pub fn getIndex(self: ClassDeclaration) -> int;

ClassDeclaration::getParentOid

/**
* Gets the parent oid of this node.
*/
pub fn getParentOid(self: ClassDeclaration) -> int;

ClassDeclaration::getRelativePath

/**
* Gets the relative path of this node.
*/
pub fn getRelativePath(self: ClassDeclaration) -> string;

ClassDeclaration::getLastChild

/**
* Gets the last child of this node parent.
*/
pub fn getLastChild(self: ClassDeclaration) -> Node;

ClassDeclaration::getEndColumnNumber

pub fn getEndColumnNumber(self: ClassDeclaration) -> int;

ClassDeclaration::getParent

/**
* Gets the parent node of this node.
*/
pub fn getParent(self: ClassDeclaration) -> Node;

ClassDeclaration::getChildCount

/**
* Gets the number of child nodes.
*/
pub fn getChildCount(self: ClassDeclaration) -> int;

ClassDeclaration::getDecorator

/**
* Gets the `i`th decorator.
*/
pub fn getDecorator(self: ClassDeclaration, i: int) -> Decorator;

ClassDeclaration::getEndLineNumber

pub fn getEndLineNumber(self: ClassDeclaration) -> int;

ClassDeclaration::getATrailingComment

/**
* Gets the trailing comments of it
*/
pub fn getATrailingComment(self: ClassDeclaration) -> *Comment;

ClassDeclaration::getAnAncestorByLevel

/**
* Gets an ancestor of this node by the level of the hierarchy.
*
* @param level: the number of levels to go up in the hierarchy.
*/
pub fn getAnAncestorByLevel(self: ClassDeclaration, level: int) -> Node;

ClassDeclaration::getChild

/**
* Gets the `i`th child of this node.
*/
pub fn getChild(self: ClassDeclaration, i: int) -> Node;

ClassDeclaration::getRoot

/**
* Gets the root top-level of this node. 
*/
pub fn getRoot(self: ClassDeclaration) -> TopLevelDO;

ClassDeclaration::getAChild

/**
* Gets a child node of this node.
*/
pub fn getAChild(self: ClassDeclaration) -> *Node;

ClassDeclaration::getStartColumnNumber

pub fn getStartColumnNumber(self: ClassDeclaration) -> int;

ClassDeclaration::getStartLineNumber

pub fn getStartLineNumber(self: ClassDeclaration) -> int;

ClassDeclaration::__all__

Data constraint method.

pub fn __all__(db: JavascriptDB) -> *ClassDeclaration;

ClassDeclaration::getLocation

/**
* Gets the location of this node.
*/
pub fn getLocation(self: ClassDeclaration) -> Location;

ClassDeclaration::getADescendantByLevel

/**
* Gets a descendant of this node by the level of the hierarchy.
*
* @param level: the number of levels to go up in the hierarchy.
*/
pub fn getADescendantByLevel(self: ClassDeclaration, level: int) -> *Node;

ClassDeclaration::getKind

/**
* Get the syntax kind of this node
*/
pub fn getKind(self: ClassDeclaration) -> int;

ClassDeclaration::getAModifier

/**
* Gets a modifier.
*/
pub fn getAModifier(self: ClassDeclaration) -> *Modifier;

ClassDeclaration::getAnAncestor

/**
* Gets an ancestor of this node. 
*/
pub fn getAnAncestor(self: ClassDeclaration) -> *Node;

ClassDeclaration::getEnclosingFunction

/**
* Gets the enclosing function of it
*/
pub fn getEnclosingFunction(self: ClassDeclaration) -> FunctionLikeDeclaration;

ClassDeclaration::getADescendant

/**
* Gets a descendant of this node. 
*/
pub fn getADescendant(self: ClassDeclaration) -> *Node;

ClassDeclaration::getALeadingComment

/**
* Gets the leading comments of it
*/
pub fn getALeadingComment(self: ClassDeclaration) -> *Comment;

ClassDeclaration::getFile

/**
* Gets the file of this node.
*/
pub fn getFile(self: ClassDeclaration) -> File;

ClassDeclaration::getModifier

/**
* Gets the `i`th modifier.
*/
pub fn getModifier(self: ClassDeclaration, i: int) -> Modifier;

ClassDeclaration::getText

/**
* Gets the text of this node.
*/
pub fn getText(self: ClassDeclaration) -> string;

ClassDeclaration::getAComment

/**
* Gets the comments related to it
*/
pub fn getAComment(self: ClassDeclaration) -> *Comment;

ClassDeclaration::getADecorator

/**
* Gets a decorator.
*/
pub fn getADecorator(self: ClassDeclaration) -> *Decorator;