Class MethodEntry
This is a foreign class that wraps over a class or enum method.
public define doc: String
Return the docblock of this method, or an empty string. Docblocks are only saved when a method is parsed in manifest mode.
public define function_name: String
Return the unqualified name of the function given.
public define generics: List[TypeEntry]
Return the generic types available to this method (including those from
the class/enum). Methods defined outside of manifest mode will always
return []
.
public define is_private: Boolean
Return true
if the method is private, false
otherwise.
public define is_protected: Boolean
Return true
if the method is protected, false
otherwise.
public define is_public: Boolean
Return true
if the method is public, false
otherwise.
public define is_static: Boolean
Return true
if the method is static, false
otherwise.
public define line_number: Integer
Return the line number that this method was declared on.
public define parameters: List[ParameterEntry]
Return the parameters of this method. Methods processed outside of manifest mode will have empty names.
public define result_type: TypeEntry
Return the type that this method returns when called.
public define type: TypeEntry
Return the type of the method provided.