PHP 클래스 Phan\AST\ContextNode

파일 보기 프로젝트 열기: etsy/phan 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( CodeBase $code_base, Context $context, ast\Node | string | null $node )
analyzeBackwardCompatibility ( ) : void Perform some backwards compatibility checks on a node
getClassConst ( ) : Phan\Language\Element\ClassConstant
getClassList ( boolean $ignore_missing_classes = false ) : Clazz[]
getClosure ( ) : Func
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 ) : Method
getOrCreateProperty ( string $property_name ) : Phan\Language\Element\Property
getOrCreateVariable ( ) : Variable
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 ( ) : Variable
getVariableName ( ) : string

메소드 상세

__construct() 공개 메소드

public __construct ( CodeBase $code_base, Context $context, ast\Node | string | null $node )
$code_base Phan\CodeBase
$context Phan\Language\Context
$node ast\Node | string | null

analyzeBackwardCompatibility() 공개 메소드

Perform some backwards compatibility checks on a node
public analyzeBackwardCompatibility ( ) : void
리턴 void

getClassConst() 공개 메소드

public getClassConst ( ) : Phan\Language\Element\ClassConstant
리턴 Phan\Language\Element\ClassConstant Get the (non-class) constant associated with this node in this context

getClassList() 공개 메소드

public getClassList ( boolean $ignore_missing_classes = false ) : Clazz[]
$ignore_missing_classes boolean If set to true, missing classes will be ignored and exceptions will be inhibited
리턴 Phan\Language\Element\Clazz[] A list of classes representing the non-native types associated with the given node

getClosure() 공개 메소드

public getClosure ( ) : Func
리턴 Phan\Language\Element\Func

getConst() 공개 메소드

public getConst ( ) : Phan\Language\Element\GlobalConstant
리턴 Phan\Language\Element\GlobalConstant Get the (non-class) constant associated with this node in this context

getFunction() 공개 메소드

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

getMethod() 공개 메소드

public getMethod ( ast\Node | string $method_name, boolean $is_static ) : Method
$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
리턴 Phan\Language\Element\Method A method with the given name on the class referenced from the given node

getOrCreateProperty() 공개 메소드

public getOrCreateProperty ( string $property_name ) : Phan\Language\Element\Property
$property_name string
리턴 Phan\Language\Element\Property A variable in scope or a new variable

getOrCreateVariable() 공개 메소드

public getOrCreateVariable ( ) : Variable
리턴 Phan\Language\Element\Variable A variable in scope or a new variable

getProperty() 공개 메소드

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

getQualifiedName() 공개 메소드

Get a fully qualified name form a node
public getQualifiedName ( ) : string
리턴 string

getQualifiedNameList() 공개 메소드

Get a list of fully qualified names from a node
public getQualifiedNameList ( ) : array
리턴 array

getUnqualifiedNameForAnonymousClass() 공개 메소드

public getUnqualifiedNameForAnonymousClass ( ) : string
리턴 string A unique and stable name for an anonymous class

getVariable() 공개 메소드

public getVariable ( ) : Variable
리턴 Phan\Language\Element\Variable A variable in scope or a new variable

getVariableName() 공개 메소드

public getVariableName ( ) : string
리턴 string A variable name associated with the given node