Comment

/**
* @brief a comment.
*/

Inherit from CommentDO

Primary key: element_hash_id: int

schema Comment extends CommentDO {
  @primary element_hash_id: int,
  text: string,
  parent_hash_id: int,
  location_hash_id: int,
  comment_type: string
}

Comment::getCommentType

/**
* @brief gets the comment type of this element.
* @return string
*/
  • Parameter self: Comment
  • Return string
pub fn getCommentType(self: Comment) -> string;

Comment::getLocationHashId

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

Comment::getParent

/**
* @brief gets the ast element parent of the element.
* @return ElementParent 
*/
pub fn getParent(self: Comment) -> ElementParent;

Comment::__all__

Data constraint method.

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

Comment::getAnAncestor

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

Comment::getLocation

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

Comment::getText

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

Comment::getParentHashId

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