Method

/**
* @brief A java method.
*/

Inherit from MethodDO

Primary key: element_hash_id: int

schema Method extends MethodDO {
  @primary element_hash_id: int,
  name: string,
  signature: string,
  type_hash_id: int,
  parent_hash_id: int,
  location_hash_id: int,
  definition_body: string
}

Method::getSignature

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

Method::getLocationHashId

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

Method::getDefinitionBody

  • Parameter self: Method
  • Return string
pub fn getDefinitionBody(self: Method) -> string;

Method::getPolyMethod

/**
* @brief gets the polymorphism methods of the method, if any.
* @return Method 
*/
pub fn getPolyMethod(self: Method) -> *Method;

Method::getType

/**
* @brief gets the type for the element.
* @return Type
*/
pub fn getType(self: Method) -> Type;

Method::getThrowsList

/**
* @description gets the Throw list of the method, if any.
* @return ReferenceList
*/
pub fn getThrowsList(self: Method) -> ReferenceList;

Method::getSize

/**
* @brief gets the size information for the element.
* @return NumberOfLines
*/
pub fn getSize(self: Method) -> NumberOfLines;

Method::getAnAncestor

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

Method::getLocation

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

Method::__all__

Data constraint method.

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

Method::getName

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

Method::getTypeHashId

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

Method::getBody

/**
* @brief gets the body of the method.
* @return CodeBlock 
*/
pub fn getBody(self: Method) -> CodeBlock;

Method::getParentHashId

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

Method::getModifier

/**
* @brief gets the modifier of the Method
* @return Modifier 
*/
pub fn getModifier(self: Method) -> *Modifier;

Method::getBelongedClass

/**
* @brief gets the class contains the Method
* @return Class 
*/
pub fn getBelongedClass(self: Method) -> Class;

Method::getReturnTypeElement

/**
* @brief gets the return type element for the method.
* @return TypeElement
*/
pub fn getReturnTypeElement(self: Method) -> TypeElement;

Method::getAnnotation

/**
* @brief gets the annotation of the method, if any.
* @return Annotation 
*/
pub fn getAnnotation(self: Method) -> *Annotation;

Method::getParameter

/**
* @brief gets the parameter of the method, if any.
* @return Parameter 
*/
pub fn getParameter(self: Method) -> *Parameter;

Method::getAnAccess

/**
* @brief gets a method access expression that calls the method.
* @return MethodAccessExpression 
*/
pub fn getAnAccess(self: Method) -> *MethodAccessExpression;

Method::getParent

/**
* @brief gets the parent of the method.
* @return ClassOrInterface 
*/
pub fn getParent(self: Method) -> ClassOrInterface;