Constructor

/**
* @brief A constructor.
*/

Inherit from ConstructorDO

Primary key: element_hash_id: int

schema Constructor extends ConstructorDO {
  @primary element_hash_id: int,
  name: string,
  signature: string,
  parent_hash_id: int,
  location_hash_id: int,
  definition_body: string
}

Constructor::getLocationHashId

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

Constructor::getDefinitionBody

pub fn getDefinitionBody(self: Constructor) -> string;

Constructor::getSignature

/**
* @brief gets the signature of this element.
* @return string
*/
pub fn getSignature(self: Constructor) -> string;

Constructor::getMatchedFieldByIndex

/**
* @brief gets the matched field of the constructor for a given parameter index.
* @return Field 
*/
pub fn getMatchedFieldByIndex(self: Constructor, i: int) -> Field;

Constructor::getName

/**
* @brief gets the name of this element.
* @return string
*/
pub fn getName(self: Constructor) -> string;

Constructor::getBody

/**
* @brief gets the body of the constructor.
* @return CodeBlock 
*/
pub fn getBody(self: Constructor) -> CodeBlock;

Constructor::getType

/**
* @brief gets the return type of the constructor, which should be null.
* @return Type 
*/
pub fn getType(self: Constructor) -> Type;

Constructor::getParentHashId

/**
* @brief gets the parent hash id of this element.
* @return int
*/
pub fn getParentHashId(self: Constructor) -> int;

Constructor::getModifier

/**
* @brief gets the modifier of the constructor
* @return Modifier 
*/
pub fn getModifier(self: Constructor) -> Modifier;

Constructor::getParameter

/**
* @brief gets the parameter of the constructor.
* @return Parameter 
*/
pub fn getParameter(self: Constructor) -> *Parameter;

Constructor::getAnnotation

/**
* @brief gets the annotation of the class, if any.
* @return Annotation 
*/
pub fn getAnnotation(self: Constructor) -> Annotation;

Constructor::getParent

/**
* @brief gets the parent of the constructor.
* @return ClassOrInterface 
*/
pub fn getParent(self: Constructor) -> ClassOrInterface;

Constructor::getAnAncestor

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

Constructor::__all__

Data constraint method.

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

Constructor::getLocation

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

Constructor::getSize

/**
* @brief gets the size information for the element.
* @return NumberOfLines
*/
pub fn getSize(self: Constructor) -> NumberOfLines;