Callable

/**
* @brief A callable element, either a method or a constructor.
*/

Primary key: id: int

schema Callable {
  @primary id: int
}

Callable::getEnclosedAnonymousMethod

/**
* @brief gets the anonymous method enclosed by it.
* @return AnonymousMethod 
*/
pub fn getEnclosedAnonymousMethod(self: Callable) -> *AnonymousMethod;

Callable::getCaller

/**
* @brief gets the caller of the callable
* @return Callable 
*/
pub fn getCaller(self: Callable) -> *Callable;

Callable::getSignature

/**
* @brief gets the name of the callable
* @return string 
*/
  • Parameter self: Callable
  • Return string
pub fn getSignature(self: Callable) -> string;

Callable::getSize

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

Callable::getAnAncestor

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

Callable::getAnAncestorCallee

/**
* @brief gets an ancestor callee of the callable, if any
* @return Callable 
*/
pub fn getAnAncestorCallee(self: Callable) -> *Callable;

Callable::getReturnType

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

Callable::getPolyCallable

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

Callable::getCalleeFromAnonymousMethod

/**
* @brief gets the extra callee from enclosed anonymous method.
* @return callee 
*/
pub fn getCalleeFromAnonymousMethod(self: Callable) -> *Callable;

Callable::getAnAncestorCaller

/**
* @brief gets an ancestor caller of the callable, if any
* @return Callable 
*/
pub fn getAnAncestorCaller(self: Callable) -> *Callable;

Callable::getModifier

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

Callable::getName

/**
* @brief gets the name of the callable
* @return string 
*/
  • Parameter self: Callable
  • Return string
pub fn getName(self: Callable) -> string;

Callable::getBody

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

Callable::getAnnotation

/**
* @brief gets the annotation of the Callable element.
* @return Annotation 
*/
pub fn getAnnotation(self: Callable) -> *Annotation;

Callable::getParameter

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

Callable::getCallee

/**
* @brief gets the callee of the callable
* @return Callable 
*/
pub fn getCallee(self: Callable) -> *Callable;

Callable::getType

/**
* @brief gets the name of the callable
* @return string 
*/
pub fn getType(self: Callable) -> Type;

Callable::getLocation

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

Callable::__all__

Data constraint method.

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

Callable::getBelongedInterface

/**
* @brief gets the parent of the Callable element.
* @return Interface 
*/
pub fn getBelongedInterface(self: Callable) -> Interface;

Callable::getBelongedClass

/**
* @brief gets the parent of the Callable element.
* @return ClassOrInterface 
*/
pub fn getBelongedClass(self: Callable) -> ClassOrInterface;