메소드 | 설명 | |
---|---|---|
__clone ( ) | Clone dependent objects when cloning this object | |
__construct ( array $internal_class_name_list, array $internal_interface_name_list, array $internal_trait_name_list, array $internal_function_name_list ) | Initialize a new CodeBase | |
addClass ( |
||
addClassConstant ( Phan\Language\Element\ClassConstant $class_constant ) : void | ||
addFunction ( |
||
addGlobalConstant ( Phan\Language\Element\GlobalConstant $global_constant ) : void | ||
addMethod ( |
||
addProperty ( Phan\Language\Element\Property $property ) : void | ||
dependencyListForFile ( string $file_path ) : array | ||
exportFunctionAndMethodSet ( ) : array | ||
flushDependenciesForFile ( string $file_path ) : void; | ||
getClassByFQSEN ( |
||
getClassConstantByFQSEN ( |
||
getClassConstantMapByFullyQualifiedClassName ( |
||
getClassMap ( ) : Phan\Library\Map | ||
getClassMapMap ( ) : Phan\Library\Map | ||
getFunctionAndMethodSet ( ) : Phan\Library\Set | ||
getFunctionByFQSEN ( |
||
getFunctionMap ( ) : Phan\Library\Map | ||
getGlobalConstantByFQSEN ( |
||
getGlobalConstantMap ( ) : Phan\Library\Map | ||
getMethodByFQSEN ( |
||
getMethodMapByFullyQualifiedClassName ( |
||
getMethodSetByName ( string $name ) : Phan\Library\Set | ||
getPropertyByFQSEN ( Phan\Language\FQSEN\FullyQualifiedPropertyName $fqsen ) : Phan\Language\Element\Property | ||
getPropertyMapByFullyQualifiedClassName ( |
||
hasClassConstantWithFQSEN ( |
||
hasClassWithFQSEN ( |
||
hasFunctionWithFQSEN ( |
||
hasGlobalConstantWithFQSEN ( |
||
hasMethodWithFQSEN ( |
||
hasPropertyWithFQSEN ( Phan\Language\FQSEN\FullyQualifiedPropertyName $fqsen ) : boolean | ||
setShouldHydrateRequestedElements ( boolean $should_hydrate_requested_elements ) : void | ||
store ( ) : void | ||
totalElementCount ( ) : integer |
메소드 | 설명 | |
---|---|---|
addClassesByNames ( array $class_name_list ) : null | ||
addFunctionsByNames ( array $function_name_list ) | ||
getClassMapByFQSEN ( |
||
getClassMapByFullyQualifiedClassName ( |
||
hasInternalFunctionWithFQSEN ( |
public addClassConstant ( Phan\Language\Element\ClassConstant $class_constant ) : void | ||
$class_constant | Phan\Language\Element\ClassConstant | A class constant to add to the code base |
리턴 | void |
public addFunction ( |
||
$function | A function to add to the code base | |
리턴 | void |
public addGlobalConstant ( Phan\Language\Element\GlobalConstant $global_constant ) : void | ||
$global_constant | Phan\Language\Element\GlobalConstant | A global constant to add to the code base |
리턴 | void |
public addProperty ( Phan\Language\Element\Property $property ) : void | ||
$property | Phan\Language\Element\Property | A property to add to the code base |
리턴 | void |
public dependencyListForFile ( string $file_path ) : array | ||
$file_path | string | |
리턴 | array | The list of files that depend on the code in the given file path |
public exportFunctionAndMethodSet ( ) : array | ||
리턴 | array | - A human readable encoding of $this->func_and_method_set [string $filename => [int|string $pos => string $spec]] Excludes internal functions and methods. |
public flushDependenciesForFile ( string $file_path ) : void; | ||
$file_path | string | |
리턴 | void; |
public getClassByFQSEN ( |
||
$fqsen | The FQSEN of a class to get | |
리턴 | A class with the given FQSEN |
public getClassConstantByFQSEN ( |
||
$fqsen | The FQSEN of a class constant to get | |
리턴 | Phan\Language\Element\ClassConstant | A class constant with the given FQSEN |
public getClassConstantMapByFullyQualifiedClassName ( |
||
$fqsen | ||
리턴 | array | The set of class constants associated with the given class |
public getClassMap ( ) : Phan\Library\Map | ||
리턴 | Phan\Library\Map | A list of all classes |
public getFunctionAndMethodSet ( ) : Phan\Library\Set | ||
리턴 | Phan\Library\Set | The set of all methods and functions |
public getFunctionByFQSEN ( |
||
$fqsen | The FQSEN of a function to get | |
리턴 | A function with the given FQSEN |
public getGlobalConstantByFQSEN ( |
||
$fqsen | The FQSEN of a global constant to get | |
리턴 | Phan\Language\Element\GlobalConstant | A global constant with the given FQSEN |
public getGlobalConstantMap ( ) : Phan\Library\Map | ||
리턴 | Phan\Library\Map |
public getMethodByFQSEN ( |
||
$fqsen | The FQSEN of a method to get | |
리턴 | A method with the given FQSEN |
public getMethodMapByFullyQualifiedClassName ( |
||
$fqsen | ||
리턴 | array | The set of methods associated with the given class |
public getMethodSetByName ( string $name ) : Phan\Library\Set | ||
$name | string | |
리턴 | Phan\Library\Set | A set of all known methods with the given name |
public getPropertyByFQSEN ( Phan\Language\FQSEN\FullyQualifiedPropertyName $fqsen ) : Phan\Language\Element\Property | ||
$fqsen | Phan\Language\FQSEN\FullyQualifiedPropertyName | The FQSEN of a property to get |
리턴 | Phan\Language\Element\Property | A property with the given FQSEN |
public getPropertyMapByFullyQualifiedClassName ( |
||
$fqsen | ||
리턴 | array | The set of properties associated with the given class |
public hasClassConstantWithFQSEN ( |
||
$fqsen | ||
리턴 | boolean | True if an element with the given FQSEN exists |
public hasClassWithFQSEN ( |
||
$fqsen | ||
리턴 | boolean | True if an element with the given FQSEN exists |
public hasFunctionWithFQSEN ( |
||
$fqsen | ||
리턴 | boolean | True if an element with the given FQSEN exists |
public hasGlobalConstantWithFQSEN ( |
||
$fqsen | ||
리턴 | boolean | True if an element with the given FQSEN exists |
public hasMethodWithFQSEN ( |
||
$fqsen | ||
리턴 | boolean | True if an element with the given FQSEN exists |
public hasPropertyWithFQSEN ( Phan\Language\FQSEN\FullyQualifiedPropertyName $fqsen ) : boolean | ||
$fqsen | Phan\Language\FQSEN\FullyQualifiedPropertyName | |
리턴 | boolean | True if an element with the given FQSEN exists |
public setShouldHydrateRequestedElements ( boolean $should_hydrate_requested_elements ) : void | ||
$should_hydrate_requested_elements | boolean | |
리턴 | void |
public totalElementCount ( ) : integer | ||
리턴 | integer | The total number of elements of all types in the code base. |