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
*/
pub fn getReferenceTypeHashId(self: TypeElement) -> int;

TypeElement::getParentHashId

/**
* @brief gets the parent hash id of this element.
* @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.
*/
pub fn getPrintableText(self: TypeElement) -> string;

TypeElement::getLocationHashId

/**
* @brief gets the location hash id of this element.
* @return int
*/
pub fn getLocationHashId(self: TypeElement) -> int;

TypeElement::getParent

/**
* @brief gets the ast element parent of the element.
* @return ElementParent 
*/
pub fn getParent(self: TypeElement) -> ElementParent;

TypeElement::getType

/**
* @brief gets the type for the element.
* @return Type
*/
pub fn getType(self: TypeElement) -> Type;

TypeElement::__all__

Data constraint method.

pub fn __all__(db: JavaDB) -> *TypeElement;

TypeElement::getAnAncestor

/**
* @brief gets an ancestor of the element.
* @return ElementParent 
*/
pub fn getAnAncestor(self: TypeElement) -> *ElementParent;

TypeElement::getLocation

/**
* @brief gets the location for the element.
* @return Location 
*/
pub fn getLocation(self: TypeElement) -> Location;