Метод | Описание | |
---|---|---|
__construct ( |
||
analyzeBackwardCompatibility ( ) : void | Perform some backwards compatibility checks on a node | |
getClassConst ( ) : Phan\Language\Element\ClassConstant | ||
getClassList ( boolean $ignore_missing_classes = false ) : |
||
getClosure ( ) : |
||
getConst ( ) : Phan\Language\Element\GlobalConstant | ||
getFunction ( string $function_name, boolean $is_function_declaration = false ) : Phan\Language\Element\FunctionInterface | ||
getMethod ( ast\Node | string $method_name, boolean $is_static ) : |
||
getOrCreateProperty ( string $property_name ) : Phan\Language\Element\Property | ||
getOrCreateVariable ( ) : |
||
getProperty ( string | ast\Node $property_name ) : Phan\Language\Element\Property | ||
getQualifiedName ( ) : string | Get a fully qualified name form a node | |
getQualifiedNameList ( ) : array | Get a list of fully qualified names from a node | |
getUnqualifiedNameForAnonymousClass ( ) : string | ||
getVariable ( ) : |
||
getVariableName ( ) : string |
public __construct ( |
||
$code_base | ||
$context | ||
$node | ast\Node | string | null |
public analyzeBackwardCompatibility ( ) : void | ||
Результат | void |
public getClassConst ( ) : Phan\Language\Element\ClassConstant | ||
Результат | Phan\Language\Element\ClassConstant | Get the (non-class) constant associated with this node in this context |
public getClassList ( boolean $ignore_missing_classes = false ) : |
||
$ignore_missing_classes | boolean | If set to true, missing classes will be ignored and exceptions will be inhibited |
Результат | A list of classes representing the non-native types associated with the given node |
public getConst ( ) : Phan\Language\Element\GlobalConstant | ||
Результат | Phan\Language\Element\GlobalConstant | Get the (non-class) constant associated with this node in this context |
public getFunction ( string $function_name, boolean $is_function_declaration = false ) : Phan\Language\Element\FunctionInterface | ||
$function_name | string | The name of the function we'd like to look up |
$is_function_declaration | boolean | This must be set to true if we're getting a function that is being declared and false if we're getting a function being called. |
Результат | Phan\Language\Element\FunctionInterface | A method with the given name in the given context |
public getMethod ( ast\Node | string $method_name, boolean $is_static ) : |
||
$method_name | ast\Node | string | Either then name of the method or a node that produces the name of the method. |
$is_static | boolean | Set to true if this is a static method call |
Результат | A method with the given name on the class referenced from the given node |
public getOrCreateProperty ( string $property_name ) : Phan\Language\Element\Property | ||
$property_name | string | |
Результат | Phan\Language\Element\Property | A variable in scope or a new variable |
public getOrCreateVariable ( ) : |
||
Результат | A variable in scope or a new variable |
public getProperty ( string | ast\Node $property_name ) : Phan\Language\Element\Property | ||
$property_name | string | ast\Node | The name of the property we're looking up |
Результат | Phan\Language\Element\Property | A variable in scope or a new variable |
public getQualifiedName ( ) : string | ||
Результат | string |
public getQualifiedNameList ( ) : array | ||
Результат | array |
public getUnqualifiedNameForAnonymousClass ( ) : string | ||
Результат | string | A unique and stable name for an anonymous class |
public getVariable ( ) : |
||
Результат | A variable in scope or a new variable |
public getVariableName ( ) : string | ||
Результат | string | A variable name associated with the given node |