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. */
- Parameter
self
:ClassDeclaration
- Return
Symbol
pub fn getSymbol(self: ClassDeclaration) -> Symbol;
ClassDeclaration::getAnAncestorEnclosingFunction
/** * Gets an ancestor enclosing function of it */
- Parameter
self
:ClassDeclaration
- Return
*FunctionLikeDeclaration
pub fn getAnAncestorEnclosingFunction(self: ClassDeclaration) -> *FunctionLikeDeclaration;
ClassDeclaration::getIndex
- Parameter
self
:ClassDeclaration
- Return
int
pub fn getIndex(self: ClassDeclaration) -> int;
ClassDeclaration::getParentOid
/** * Gets the parent oid of this node. */
- Parameter
self
:ClassDeclaration
- Return
int
pub fn getParentOid(self: ClassDeclaration) -> int;
ClassDeclaration::getRelativePath
/** * Gets the relative path of this node. */
- Parameter
self
:ClassDeclaration
- Return
string
pub fn getRelativePath(self: ClassDeclaration) -> string;
ClassDeclaration::getLastChild
/** * Gets the last child of this node parent. */
- Parameter
self
:ClassDeclaration
- Return
Node
pub fn getLastChild(self: ClassDeclaration) -> Node;
ClassDeclaration::getEndColumnNumber
- Parameter
self
:ClassDeclaration
- Return
int
pub fn getEndColumnNumber(self: ClassDeclaration) -> int;
ClassDeclaration::getParent
/** * Gets the parent node of this node. */
- Parameter
self
:ClassDeclaration
- Return
Node
pub fn getParent(self: ClassDeclaration) -> Node;
ClassDeclaration::getChildCount
/** * Gets the number of child nodes. */
- Parameter
self
:ClassDeclaration
- Return
int
pub fn getChildCount(self: ClassDeclaration) -> int;
ClassDeclaration::getDecorator
/** * Gets the `i`th decorator. */
- Parameter
self
:ClassDeclaration
- Parameter
i
:int
- Return
Decorator
pub fn getDecorator(self: ClassDeclaration, i: int) -> Decorator;
ClassDeclaration::getEndLineNumber
- Parameter
self
:ClassDeclaration
- Return
int
pub fn getEndLineNumber(self: ClassDeclaration) -> int;
ClassDeclaration::getATrailingComment
/** * Gets the trailing comments of it */
- Parameter
self
:ClassDeclaration
- Return
*Comment
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. */
- Parameter
self
:ClassDeclaration
- Parameter
level
:int
- Return
Node
pub fn getAnAncestorByLevel(self: ClassDeclaration, level: int) -> Node;
ClassDeclaration::getChild
/** * Gets the `i`th child of this node. */
- Parameter
self
:ClassDeclaration
- Parameter
i
:int
- Return
Node
pub fn getChild(self: ClassDeclaration, i: int) -> Node;
ClassDeclaration::getRoot
/** * Gets the root top-level of this node. */
- Parameter
self
:ClassDeclaration
- Return
TopLevelDO
pub fn getRoot(self: ClassDeclaration) -> TopLevelDO;
ClassDeclaration::getAChild
/** * Gets a child node of this node. */
- Parameter
self
:ClassDeclaration
- Return
*Node
pub fn getAChild(self: ClassDeclaration) -> *Node;
ClassDeclaration::getStartColumnNumber
- Parameter
self
:ClassDeclaration
- Return
int
pub fn getStartColumnNumber(self: ClassDeclaration) -> int;
ClassDeclaration::getStartLineNumber
- Parameter
self
:ClassDeclaration
- Return
int
pub fn getStartLineNumber(self: ClassDeclaration) -> int;
ClassDeclaration::__all__
Data constraint method.
- Parameter
db
:JavascriptDB
- Return
*ClassDeclaration
pub fn __all__(db: JavascriptDB) -> *ClassDeclaration;
ClassDeclaration::getLocation
/** * Gets the location of this node. */
- Parameter
self
:ClassDeclaration
- Return
Location
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. */
- Parameter
self
:ClassDeclaration
- Parameter
level
:int
- Return
*Node
pub fn getADescendantByLevel(self: ClassDeclaration, level: int) -> *Node;
ClassDeclaration::getKind
/** * Get the syntax kind of this node */
- Parameter
self
:ClassDeclaration
- Return
int
pub fn getKind(self: ClassDeclaration) -> int;
ClassDeclaration::getAModifier
/** * Gets a modifier. */
- Parameter
self
:ClassDeclaration
- Return
*Modifier
pub fn getAModifier(self: ClassDeclaration) -> *Modifier;
ClassDeclaration::getAnAncestor
/** * Gets an ancestor of this node. */
- Parameter
self
:ClassDeclaration
- Return
*Node
pub fn getAnAncestor(self: ClassDeclaration) -> *Node;
ClassDeclaration::getEnclosingFunction
/** * Gets the enclosing function of it */
- Parameter
self
:ClassDeclaration
- Return
FunctionLikeDeclaration
pub fn getEnclosingFunction(self: ClassDeclaration) -> FunctionLikeDeclaration;
ClassDeclaration::getADescendant
/** * Gets a descendant of this node. */
- Parameter
self
:ClassDeclaration
- Return
*Node
pub fn getADescendant(self: ClassDeclaration) -> *Node;
ClassDeclaration::getALeadingComment
/** * Gets the leading comments of it */
- Parameter
self
:ClassDeclaration
- Return
*Comment
pub fn getALeadingComment(self: ClassDeclaration) -> *Comment;
ClassDeclaration::getFile
/** * Gets the file of this node. */
- Parameter
self
:ClassDeclaration
- Return
File
pub fn getFile(self: ClassDeclaration) -> File;
ClassDeclaration::getModifier
/** * Gets the `i`th modifier. */
- Parameter
self
:ClassDeclaration
- Parameter
i
:int
- Return
Modifier
pub fn getModifier(self: ClassDeclaration, i: int) -> Modifier;
ClassDeclaration::getText
/** * Gets the text of this node. */
- Parameter
self
:ClassDeclaration
- Return
string
pub fn getText(self: ClassDeclaration) -> string;
ClassDeclaration::getAComment
/** * Gets the comments related to it */
- Parameter
self
:ClassDeclaration
- Return
*Comment
pub fn getAComment(self: ClassDeclaration) -> *Comment;
ClassDeclaration::getADecorator
/** * Gets a decorator. */
- Parameter
self
:ClassDeclaration
- Return
*Decorator
pub fn getADecorator(self: ClassDeclaration) -> *Decorator;