ResourceList

/**
* @brief Represents a resource list of try-with-resources statement (automatic resource management) introduced in JDK 7.
*/

Inherit from ResourceListDO

Primary key: element_hash_id: int

schema ResourceList extends ResourceListDO {
  @primary element_hash_id: int,
  printable_text: string,
  parent_hash_id: int,
  location_hash_id: int
}

ResourceList::getParentHashId

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

ResourceList::__all__

Data constraint method.

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

ResourceList::getLocation

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

ResourceList::getAnAncestor

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

ResourceList::getLocationHashId

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

ResourceList::getLocalVariable

/**
* @brief get i-th LocalVariable of the element
* @return LocalVariable 
*/
pub fn getLocalVariable(self: ResourceList) -> LocalVariable;

ResourceList::getParent

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

ResourceList::getPrintableText

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

ResourceList::getIthLocalVariable

/**
* @brief get i-th LocalVariable of the element
* @return LocalVariable 
*/
pub fn getIthLocalVariable(self: ResourceList, index: int) -> LocalVariable;