EnumConstant
/** * @brief An enum constant, also a class field. */ Inherit from EnumConstantDO
Primary key: element_hash_id: int
schema EnumConstant extends EnumConstantDO { @primary element_hash_id: int, name: string, parent_hash_id: int, location_hash_id: int, printable_text: string } EnumConstant::getName
/** * @brief gets the name of this element. * @return string */ - Parameter
self:EnumConstant - Return
string
pub fn getName(self: EnumConstant) -> string; EnumConstant::getLocationHashId
/** * @brief gets the location hash id of this element. * @return int */ - Parameter
self:EnumConstant - Return
int
pub fn getLocationHashId(self: EnumConstant) -> int; EnumConstant::getParentHashId
/** * @brief gets the parent hash id of this element. * @return int */ - Parameter
self:EnumConstant - Return
int
pub fn getParentHashId(self: EnumConstant) -> int; EnumConstant::getParent
/** * @brief gets the ast element parent of the element. * @return ElementParent */ - Parameter
self:EnumConstant - Return
Class
pub fn getParent(self: EnumConstant) -> Class; EnumConstant::getAnAncestor
/** * @brief gets an ancestor of the element. * @return ElementParent */ - Parameter
self:EnumConstant - Return
*ElementParent
pub fn getAnAncestor(self: EnumConstant) -> *ElementParent; EnumConstant::getPrintableText
/** * @brief gets a printed representation of this element, including its structure where applicable. * @return string. */ - Parameter
self:EnumConstant - Return
string
pub fn getPrintableText(self: EnumConstant) -> string; EnumConstant::getLocation
/** * @brief gets the location for the element. * @return Location */ - Parameter
self:EnumConstant - Return
Location
pub fn getLocation(self: EnumConstant) -> Location; EnumConstant::__all__
Data constraint method.
- Parameter
db:JavaDB - Return
*EnumConstant
pub fn __all__(db: JavaDB) -> *EnumConstant; EnumConstant::getType
/** * @brief gets the type of the element. * @return Type */ - Parameter
self:EnumConstant - Return
Type
pub fn getType(self: EnumConstant) -> Type; EnumConstant::getMatchedFieldByIndex
/** * @brief gets the corresponding field of the element by a given index, if any. * @return Field */ - Parameter
self:EnumConstant - Parameter
i:int - Return
Field
pub fn getMatchedFieldByIndex(self: EnumConstant, i: int) -> Field; EnumConstant::getInitializer
/** * @brief gets the class body attached to the enum constant declaration. * @return AnonymousClass */ - Parameter
self:EnumConstant - Return
AnonymousClass
pub fn getInitializer(self: EnumConstant) -> AnonymousClass; EnumConstant::getValueByField
/** * @brief gets the corresponding enum value of the element by a given field, if any. * @return Expression */ - Parameter
self:EnumConstant - Parameter
f:Field - Return
Expression
pub fn getValueByField(self: EnumConstant, f: Field) -> Expression; EnumConstant::getValueList
/** * @brief gets the value list of the element. * @return ExpressionList */ - Parameter
self:EnumConstant - Return
ExpressionList
pub fn getValueList(self: EnumConstant) -> ExpressionList; EnumConstant::getValueByIndex
/** * @brief gets the value of the element by a given index. * @return Expression */ - Parameter
self:EnumConstant - Parameter
i:int - Return
Expression
pub fn getValueByIndex(self: EnumConstant, i: int) -> Expression; EnumConstant::getDefaultValue
/** * @brief gets the default value of the element. * @return string */ - Parameter
self:EnumConstant - Return
string
pub fn getDefaultValue(self: EnumConstant) -> string;