Field

/**
* @brief A class field.
*/

Inherit from FieldDO

Primary key: element_hash_id: int

schema Field extends FieldDO {
  @primary element_hash_id: int,
  name: string,
  parent_hash_id: int,
  printable_text: string,
  location_hash_id: int
}

Field::getName

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

Field::getLocationHashId

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

Field::getAnnotation

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

Field::getParentHashId

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

Field::getModifier

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

Field::getTypeElement

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

Field::getType

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

Field::getBelongedClass

/**
* @brief gets the contained class of the field.
* @return Class 
*/
pub fn getBelongedClass(self: Field) -> Class;

Field::getPrintableText

/**
* @brief gets a printed representation of this element, including its structure where applicable.
* @return string.
*/
  • Parameter self: Field
  • Return string
pub fn getPrintableText(self: Field) -> string;

Field::__all__

Data constraint method.

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

Field::getLocation

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

Field::getAnAncestor

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

Field::getIdentifier

/**
* @brief gets the identifier of the element.
* @return Identifier 
*/
pub fn getIdentifier(self: Field) -> Identifier;

Field::getParent

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

Field::getDefaultValue

/**
* @brief gets the default value of the element, if any.
* @return string 
*/
  • Parameter self: Field
  • Return string
pub fn getDefaultValue(self: Field) -> string;