Свойство | Тип | Описание | |
---|---|---|---|
$_access | str | Access type for this element. | |
$_filename | str | Which source file is this element in | |
$_final | boolean | If this element is final. | |
$_lineNumber | integer | The line in the source file this element can be found at | |
$_package | str | The elements package. | |
$_parent | doc | Reference to the elements parent. | |
$_sourcePath | str | The source path containing the source file | |
$_static | boolean | If this element is static. |
Метод | Описание | |
---|---|---|
asPath ( ) : str | Return the element path. | |
containingClass ( ) : ClassDoc | Get the containing class of this program element. If the element is in the global scope and does not have a parent class, this will return null. | |
containingPackage ( ) : PackageDoc | Get the package that this program element is contained in. | |
isFinal ( ) : boolean | Return true if this program element is final. | |
isPrivate ( ) : boolean | Return true if this program element is private. | |
isProtected ( ) : boolean | Return true if this program element is protected. | |
isPublic ( ) : boolean | Return true if this program element is public. | |
isStatic ( ) : boolean | Return true if this program element is static. | |
location ( ) : str | Get the source location of this element | |
makePrivate ( ) | Set element to have private access | |
makeProtected ( ) | Set element to have protected access | |
makePublic ( ) | Set element to have public access | |
modifiers ( $showPublic = TRUE ) : str | Get modifiers string. | |
packageName ( ) : str | Get the name of the package that this program element is contained in. | |
qualifiedName ( ) : str | Get the fully qualified name. | |
sourceFilename ( ) | ||
sourceLine ( ) |
public containingClass ( ) : ClassDoc | ||
Результат | ClassDoc |
public containingPackage ( ) : PackageDoc | ||
Результат | PackageDoc |
public isProtected ( ) : boolean | ||
Результат | boolean |
public location ( ) : str | ||
Результат | str |
Example, for: public abstract int foo() { ... } modifiers() would return: 'public abstract'
public modifiers ( $showPublic = TRUE ) : str | ||
Результат | str |
public packageName ( ) : str | ||
Результат | str |
Example: for the method bar() in class Foo in the package Baz, return: Baz\Foo\bar()
public qualifiedName ( ) : str | ||
Результат | str |
public str $_filename | ||
Результат | str |
public int $_lineNumber | ||
Результат | integer |
public str $_sourcePath | ||
Результат | str |