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
*/
- Parameter
self
:Constructor
- Return
int
pub fn getLocationHashId(self: Constructor) -> int;
Constructor::getDefinitionBody
- Parameter
self
:Constructor
- Return
string
pub fn getDefinitionBody(self: Constructor) -> string;
Constructor::getSignature
/**
* @brief gets the signature of this element.
* @return string
*/
- Parameter
self
:Constructor
- 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
*/
- Parameter
self
:Constructor
- Parameter
i
:int
- Return
Field
pub fn getMatchedFieldByIndex(self: Constructor, i: int) -> Field;
Constructor::getName
/**
* @brief gets the name of this element.
* @return string
*/
- Parameter
self
:Constructor
- Return
string
pub fn getName(self: Constructor) -> string;
Constructor::getBody
/**
* @brief gets the body of the constructor.
* @return CodeBlock
*/
- Parameter
self
: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
*/
- Parameter
self
:Constructor
- Return
Type
pub fn getType(self: Constructor) -> Type;
Constructor::getParentHashId
/**
* @brief gets the parent hash id of this element.
* @return int
*/
- Parameter
self
:Constructor
- Return
int
pub fn getParentHashId(self: Constructor) -> int;
Constructor::getModifier
/**
* @brief gets the modifier of the constructor
* @return Modifier
*/
- Parameter
self
:Constructor
- Return
Modifier
pub fn getModifier(self: Constructor) -> Modifier;
Constructor::getParameter
/**
* @brief gets the parameter of the constructor.
* @return Parameter
*/
- Parameter
self
:Constructor
- Return
*Parameter
pub fn getParameter(self: Constructor) -> *Parameter;
Constructor::getAnnotation
/**
* @brief gets the annotation of the class, if any.
* @return Annotation
*/
- Parameter
self
:Constructor
- Return
Annotation
pub fn getAnnotation(self: Constructor) -> Annotation;
Constructor::getParent
/**
* @brief gets the parent of the constructor.
* @return ClassOrInterface
*/
- Parameter
self
:Constructor
- Return
ClassOrInterface
pub fn getParent(self: Constructor) -> ClassOrInterface;
Constructor::getAnAncestor
/**
* @brief gets an ancestor of the element.
* @return ElementParent
*/
- Parameter
self
:Constructor
- Return
*ElementParent
pub fn getAnAncestor(self: Constructor) -> *ElementParent;
Constructor::__all__
Data constraint method.
- Parameter
db
:JavaDB
- Return
*Constructor
pub fn __all__(db: JavaDB) -> *Constructor;
Constructor::getLocation
/**
* @brief gets the location for the element.
* @return Location
*/
- Parameter
self
:Constructor
- Return
Location
pub fn getLocation(self: Constructor) -> Location;
Constructor::getSize
/**
* @brief gets the size information for the element.
* @return NumberOfLines
*/
- Parameter
self
:Constructor
- Return
NumberOfLines
pub fn getSize(self: Constructor) -> NumberOfLines;