TypeElement
/**
* @brief An occurrence of a type in source code, for example, as a return type of the method or the type of a method parameter.
*/
Inherit from TypeElementDO
Primary key: element_hash_id: int
schema TypeElement extends TypeElementDO {
@primary element_hash_id: int,
reference_type_hash_id: int,
printable_text: string,
parent_hash_id: int,
location_hash_id: int
}
TypeElement::getReferenceTypeHashId
/**
* @brief gets the reference type hash id of this element.
* @return int
*/
- Parameter
self
:TypeElement
- Return
int
pub fn getReferenceTypeHashId(self: TypeElement) -> int;
TypeElement::getParentHashId
/**
* @brief gets the parent hash id of this element.
* @return int
*/
- Parameter
self
:TypeElement
- Return
int
pub fn getParentHashId(self: TypeElement) -> int;
TypeElement::getPrintableText
/**
* @brief gets a printed representation of this element, including its structure where applicable.
* @return string.
*/
- Parameter
self
:TypeElement
- Return
string
pub fn getPrintableText(self: TypeElement) -> string;
TypeElement::getLocationHashId
/**
* @brief gets the location hash id of this element.
* @return int
*/
- Parameter
self
:TypeElement
- Return
int
pub fn getLocationHashId(self: TypeElement) -> int;
TypeElement::getParent
/**
* @brief gets the ast element parent of the element.
* @return ElementParent
*/
- Parameter
self
:TypeElement
- Return
ElementParent
pub fn getParent(self: TypeElement) -> ElementParent;
TypeElement::getType
/**
* @brief gets the type for the element.
* @return Type
*/
- Parameter
self
:TypeElement
- Return
Type
pub fn getType(self: TypeElement) -> Type;
TypeElement::__all__
Data constraint method.
- Parameter
db
:JavaDB
- Return
*TypeElement
pub fn __all__(db: JavaDB) -> *TypeElement;
TypeElement::getAnAncestor
/**
* @brief gets an ancestor of the element.
* @return ElementParent
*/
- Parameter
self
:TypeElement
- Return
*ElementParent
pub fn getAnAncestor(self: TypeElement) -> *ElementParent;
TypeElement::getLocation
/**
* @brief gets the location for the element.
* @return Location
*/
- Parameter
self
:TypeElement
- Return
Location
pub fn getLocation(self: TypeElement) -> Location;