Token
/**
* @brief A single token in a Java file (the lowest-level element in the Java Ast tree).
*/
Inherit from TokenDO
Primary key: element_hash_id: int
schema Token extends TokenDO {
@primary element_hash_id: int,
value: string,
location_hash_id: int,
parent_hash_id: int
}
Token::getValue
/**
* @brief gets the value of this element.
* @return string
*/
- Parameter
self
:Token
- Return
string
pub fn getValue(self: Token) -> string;
Token::getLocationHashId
/**
* @brief gets the location hash id of this element.
* @return int
*/
- Parameter
self
:Token
- Return
int
pub fn getLocationHashId(self: Token) -> int;
Token::getParent
/**
* @brief gets the parent of the element.
* @return ElementParent
*/
- Parameter
self
:Token
- Return
ElementParent
pub fn getParent(self: Token) -> ElementParent;
Token::__all__
Data constraint method.
pub fn __all__(db: JavaDB) -> *Token;
Token::getAnAncestor
/**
* @brief gets an ancestor of the element.
* @return ElementParent
*/
- Parameter
self
:Token
- Return
*ElementParent
pub fn getAnAncestor(self: Token) -> *ElementParent;
Token::getLocation
/**
* @brief gets the location for the element.
* @return Location
*/
pub fn getLocation(self: Token) -> Location;
Token::getParentHashId
/**
* @brief gets the parent hash id of this element.
* @return int
*/
- Parameter
self
:Token
- Return
int
pub fn getParentHashId(self: Token) -> int;