DeclarationStatement
/** * @brief A declaration statement. */
Inherit from Statement
Primary key: element_hash_id: int
schema DeclarationStatement extends Statement { @primary element_hash_id: int, parent_hash_id: int, index_order: int, location_hash_id: int, printable_text: string, type: string }
DeclarationStatement::getAEnclosingStatement
/** * @brief gets the transitive statement containing this statement. * @return Statement */
- Parameter
self
:DeclarationStatement
- Return
*Statement
pub fn getAEnclosingStatement(self: DeclarationStatement) -> *Statement;
DeclarationStatement::getType
/** * @brief gets the type of this element. * @return string */
- Parameter
self
:DeclarationStatement
- Return
string
pub fn getType(self: DeclarationStatement) -> string;
DeclarationStatement::getEnclosingStatement
/** * @brief gets the statement containing this statement. * @return Statement */
- Parameter
self
:DeclarationStatement
- Return
Statement
pub fn getEnclosingStatement(self: DeclarationStatement) -> Statement;
DeclarationStatement::getParentHashId
/** * @brief gets the parent hash id of this element. * @return int */
- Parameter
self
:DeclarationStatement
- Return
int
pub fn getParentHashId(self: DeclarationStatement) -> int;
DeclarationStatement::getAChild
/** * @brief gets a child of this statement. * @return Statement */
- Parameter
self
:DeclarationStatement
- Return
*Statement
pub fn getAChild(self: DeclarationStatement) -> *Statement;
DeclarationStatement::getParent
/** * @brief gets the parent element of the statement * @return StatementParent */
- Parameter
self
:DeclarationStatement
- Return
ElementParent
pub fn getParent(self: DeclarationStatement) -> ElementParent;
DeclarationStatement::getLocationHashId
/** * @brief gets the location hash id of this element. * @return int */
- Parameter
self
:DeclarationStatement
- Return
int
pub fn getLocationHashId(self: DeclarationStatement) -> int;
DeclarationStatement::getIndex
/** * @brief gets the index order of this element. * @return int */
- Parameter
self
:DeclarationStatement
- Return
int
pub fn getIndex(self: DeclarationStatement) -> int;
DeclarationStatement::getSize
/** * @brief gets the size information for the element. * @return NumberOfLines */
- Parameter
self
:DeclarationStatement
- Return
NumberOfLines
pub fn getSize(self: DeclarationStatement) -> NumberOfLines;
DeclarationStatement::getDeclaredElement
/** * @brief gets the declared element of the statement. * @return DeclaredElement */
- Parameter
self
:DeclarationStatement
- Return
*DeclaredElement
pub fn getDeclaredElement(self: DeclarationStatement) -> *DeclaredElement;
DeclarationStatement::getAnAncestor
/** * @brief gets an ancestor of the element. * @return ElementParent */
- Parameter
self
:DeclarationStatement
- Return
*ElementParent
pub fn getAnAncestor(self: DeclarationStatement) -> *ElementParent;
DeclarationStatement::getIthDeclaredElement
/** * @brief gets the i-th declared element of the statement. * @return DeclaredElement */
- Parameter
self
:DeclarationStatement
- Parameter
idx
:int
- Return
DeclaredElement
pub fn getIthDeclaredElement(self: DeclarationStatement, idx: int) -> DeclaredElement;
DeclarationStatement::__all__
Data constraint method.
- Parameter
db
:JavaDB
- Return
*DeclarationStatement
pub fn __all__(db: JavaDB) -> *DeclarationStatement;
DeclarationStatement::getPrintableText
/** * @brief gets a printed representation of this element, including its structure where applicable. * @return string. */
- Parameter
self
:DeclarationStatement
- Return
string
pub fn getPrintableText(self: DeclarationStatement) -> string;
DeclarationStatement::getLocation
/** * @brief gets the location for the element. * @return Location */
- Parameter
self
:DeclarationStatement
- Return
Location
pub fn getLocation(self: DeclarationStatement) -> Location;
DeclarationStatement::getEnclosingCallable
/** * @brief gets the immediately enclosing callable (method or constructor) whose body contains this statement. * @return Callable */
- Parameter
self
:DeclarationStatement
- Return
Callable
pub fn getEnclosingCallable(self: DeclarationStatement) -> Callable;