Literal
/**
* @brief A literal.
*/
Inherit from Expression
Primary key: element_hash_id: int
schema Literal extends Expression {
@primary element_hash_id: int,
name: string,
parent_hash_id: int,
index_order: int,
location_hash_id: int,
printable_text: string
}
Literal::getParentHashId
/**
* @brief gets the parent hash id of this element.
* @return int
*/
- Parameter
self
:Literal
- Return
int
pub fn getParentHashId(self: Literal) -> int;
Literal::getEnclosingStatement
/**
* @brief gets the statement which encloses the expression.
* @return Statement
*/
pub fn getEnclosingStatement(self: Literal) -> Statement;
Literal::getIndex
/**
* @brief gets the index order of this element.
* @return int
*/
- Parameter
self
:Literal
- Return
int
pub fn getIndex(self: Literal) -> int;
Literal::getAnAncestor
/**
* @brief gets an ancestor of the element.
* @return ElementParent
*/
- Parameter
self
:Literal
- Return
*ElementParent
pub fn getAnAncestor(self: Literal) -> *ElementParent;
Literal::getType
/**
* @brief gets the type of this element.
* @return string
*/
- Parameter
self
:Literal
- Return
string
pub fn getType(self: Literal) -> string;
Literal::getValue
/**
* @brief gets the value of the Literal.
* @return string
*/
- Parameter
self
:Literal
- Return
string
pub fn getValue(self: Literal) -> string;
Literal::getPrintableText
/**
* @brief gets a printed representation of this element, including its structure where applicable.
* @return string.
*/
- Parameter
self
:Literal
- Return
string
pub fn getPrintableText(self: Literal) -> string;
Literal::getLocation
/**
* @brief gets the location for the element.
* @return Location
*/
pub fn getLocation(self: Literal) -> Location;
Literal::getValueType
/**
* @brief gets the type of the Literal value.
* @return string
*/
pub fn getValueType(self: Literal) -> Type;
Literal::__all__
Data constraint method.
pub fn __all__(db: JavaDB) -> *Literal;
Literal::getEnclosingCallable
/**
* @brief gets the callable in which this expression occurs.
* @return Callable
*/
pub fn getEnclosingCallable(self: Literal) -> Callable;
Literal::getParent
/**
* @brief gets the parent of the expression.
* @return ElementParent
*/
- Parameter
self
:Literal
- Return
ElementParent
pub fn getParent(self: Literal) -> ElementParent;
Literal::getLocationHashId
/**
* @brief gets the location hash id of this element.
* @return int
*/
- Parameter
self
:Literal
- Return
int
pub fn getLocationHashId(self: Literal) -> int;
Literal::getSize
/**
* @brief gets the size information for the element.
* @return NumberOfLines
*/
- Parameter
self
:Literal
- Return
NumberOfLines
pub fn getSize(self: Literal) -> NumberOfLines;