PHP 클래스 Zend\Code\Scanner\ClassScanner

상속: implements ScannerInterface
파일 보기 프로젝트 열기: zendframework/zend-code 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$docComment string
$infos array
$interfaces array
$isAbstract boolean
$isFinal boolean
$isInterface boolean
$isScanned boolean
$isTrait boolean
$lineEnd integer
$lineStart integer
$methods array
$name string
$nameInformation Zend\Code\NameInformation
$parentClass string
$shortInterfaces array
$shortName string
$shortParentClass string
$tokens array
$traits array

공개 메소드들

메소드 설명
__construct ( array $classTokens, Zend\Code\NameInformation $nameInformation = null ) : ClassScanner
__toString ( )
export ( )
getAnnotations ( Zend\Code\Annotation\AnnotationManager $annotationManager ) : Zend\Code\Annotation\AnnotationCollection Get annotations
getConstant ( string | integer $constantNameOrInfoIndex ) : boolean | Zend\Code\Scanner\ConstantScanner Return a single constant by given name or index of info
getConstantNames ( ) : array Return a list of constant names
getConstants ( boolean $namesOnly = true ) : array | Zend\Code\Scanner\ConstantScanner[] Return a list of constants
getDocBlock ( ) : false | Zend\Code\Scanner\DocBlockScanner Return documentation block
getDocComment ( ) : null | string Return documentation comment
getInterfaces ( ) : array Return a list of interface names
getLineEnd ( ) : integer | null Return number of last line
getLineStart ( ) : integer | null Return number of first line
getMethod ( string | integer $methodNameOrInfoIndex ) : Zend\Code\Scanner\MethodScanner Return a single method by given name or index of info
getMethodNames ( ) : array Return a list of method names
getMethods ( ) : Zend\Code\Scanner\MethodScanner[] Return a list of methods
getName ( ) : null | string Return a name of class
getParentClass ( ) : null | string Return a name of parent class
getProperties ( ) : Zend\Code\Scanner\PropertyScanner[] Return a list of properties
getProperty ( string | integer $propertyNameOrInfoIndex ) : boolean | Zend\Code\Scanner\PropertyScanner Return a single property by given name or index of info
getPropertyNames ( ) : array Return a list of property names
getShortName ( ) : null | string Return short name of class
getTraitAliases ( ) : array Retrieve a list of aliased traits used by the class.
getTraitNames ( ) : array Retrieve a list of trait names used by this class.
getTraits ( ) : ClassScanner[] Retrieve any traits used by the class.
hasConstant ( string $name ) : boolean Verify if class has constant
hasMethod ( string $name ) : boolean Verify if class has method by given name
hasParentClass ( ) : boolean Verify if class has parent
hasProperty ( string $name ) : boolean Verify if class has property
isAbstract ( ) : boolean Verify if class is an abstract class
isFinal ( ) : boolean Verify if class is final
isInstantiable ( ) : boolean Verify if class is instantiable
isInterface ( ) : boolean Verify if class is an interface
isTrait ( ) : boolean Verify if class is a trait

보호된 메소드들

메소드 설명
getBlockedTraitMethods ( ) : array Return an array of key = trait to keep, value = trait::method to ignore
getVisibilityForAlias ( mixed $aliasName ) : string Retrieve visibility for a given alias.
scan ( ) : void Scan tokens

메소드 상세

__construct() 공개 메소드

public __construct ( array $classTokens, Zend\Code\NameInformation $nameInformation = null ) : ClassScanner
$classTokens array
$nameInformation Zend\Code\NameInformation
리턴 ClassScanner

__toString() 공개 메소드

public __toString ( )

export() 공개 정적인 메소드

public static export ( )

getAnnotations() 공개 메소드

Get annotations
public getAnnotations ( Zend\Code\Annotation\AnnotationManager $annotationManager ) : Zend\Code\Annotation\AnnotationCollection
$annotationManager Zend\Code\Annotation\AnnotationManager
리턴 Zend\Code\Annotation\AnnotationCollection

getBlockedTraitMethods() 보호된 메소드

Return an array of key = trait to keep, value = trait::method to ignore
protected getBlockedTraitMethods ( ) : array
리턴 array

getConstant() 공개 메소드

Return a single constant by given name or index of info
public getConstant ( string | integer $constantNameOrInfoIndex ) : boolean | Zend\Code\Scanner\ConstantScanner
$constantNameOrInfoIndex string | integer
리턴 boolean | Zend\Code\Scanner\ConstantScanner

getConstantNames() 공개 메소드

Return a list of constant names
public getConstantNames ( ) : array
리턴 array

getConstants() 공개 메소드

Return a list of constants
public getConstants ( boolean $namesOnly = true ) : array | Zend\Code\Scanner\ConstantScanner[]
$namesOnly boolean Set false to return instances of ConstantScanner
리턴 array | Zend\Code\Scanner\ConstantScanner[]

getDocBlock() 공개 메소드

Return documentation block
public getDocBlock ( ) : false | Zend\Code\Scanner\DocBlockScanner
리턴 false | Zend\Code\Scanner\DocBlockScanner

getDocComment() 공개 메소드

Return documentation comment
public getDocComment ( ) : null | string
리턴 null | string

getInterfaces() 공개 메소드

Return a list of interface names
public getInterfaces ( ) : array
리턴 array

getLineEnd() 공개 메소드

Return number of last line
public getLineEnd ( ) : integer | null
리턴 integer | null

getLineStart() 공개 메소드

Return number of first line
public getLineStart ( ) : integer | null
리턴 integer | null

getMethod() 공개 메소드

Return a single method by given name or index of info
public getMethod ( string | integer $methodNameOrInfoIndex ) : Zend\Code\Scanner\MethodScanner
$methodNameOrInfoIndex string | integer
리턴 Zend\Code\Scanner\MethodScanner

getMethodNames() 공개 메소드

Return a list of method names
public getMethodNames ( ) : array
리턴 array

getMethods() 공개 메소드

Return a list of methods
public getMethods ( ) : Zend\Code\Scanner\MethodScanner[]
리턴 Zend\Code\Scanner\MethodScanner[]

getName() 공개 메소드

Return a name of class
public getName ( ) : null | string
리턴 null | string

getParentClass() 공개 메소드

Return a name of parent class
public getParentClass ( ) : null | string
리턴 null | string

getProperties() 공개 메소드

Return a list of properties
public getProperties ( ) : Zend\Code\Scanner\PropertyScanner[]
리턴 Zend\Code\Scanner\PropertyScanner[]

getProperty() 공개 메소드

Return a single property by given name or index of info
public getProperty ( string | integer $propertyNameOrInfoIndex ) : boolean | Zend\Code\Scanner\PropertyScanner
$propertyNameOrInfoIndex string | integer
리턴 boolean | Zend\Code\Scanner\PropertyScanner

getPropertyNames() 공개 메소드

Return a list of property names
public getPropertyNames ( ) : array
리턴 array

getShortName() 공개 메소드

Return short name of class
public getShortName ( ) : null | string
리턴 null | string

getTraitAliases() 공개 메소드

Retrieve a list of aliased traits used by the class.
public getTraitAliases ( ) : array
리턴 array

getTraitNames() 공개 메소드

Retrieve a list of trait names used by this class.
public getTraitNames ( ) : array
리턴 array

getTraits() 공개 메소드

Retrieve any traits used by the class.
public getTraits ( ) : ClassScanner[]
리턴 ClassScanner[]

getVisibilityForAlias() 보호된 메소드

Retrieve visibility for a given alias.
protected getVisibilityForAlias ( mixed $aliasName ) : string
$aliasName mixed
리턴 string

hasConstant() 공개 메소드

Verify if class has constant
public hasConstant ( string $name ) : boolean
$name string
리턴 boolean

hasMethod() 공개 메소드

Verify if class has method by given name
public hasMethod ( string $name ) : boolean
$name string
리턴 boolean

hasParentClass() 공개 메소드

Verify if class has parent
public hasParentClass ( ) : boolean
리턴 boolean

hasProperty() 공개 메소드

Verify if class has property
public hasProperty ( string $name ) : boolean
$name string
리턴 boolean

isAbstract() 공개 메소드

Verify if class is an abstract class
public isAbstract ( ) : boolean
리턴 boolean

isFinal() 공개 메소드

Verify if class is final
public isFinal ( ) : boolean
리턴 boolean

isInstantiable() 공개 메소드

Verify if class is instantiable
public isInstantiable ( ) : boolean
리턴 boolean

isInterface() 공개 메소드

Verify if class is an interface
public isInterface ( ) : boolean
리턴 boolean

isTrait() 공개 메소드

Verify if class is a trait
public isTrait ( ) : boolean
리턴 boolean

scan() 보호된 메소드

Scan tokens
protected scan ( ) : void
리턴 void

프로퍼티 상세

$docComment 보호되어 있는 프로퍼티

protected string $docComment
리턴 string

$infos 보호되어 있는 프로퍼티

protected array $infos
리턴 array

$interfaces 보호되어 있는 프로퍼티

protected array $interfaces
리턴 array

$isAbstract 보호되어 있는 프로퍼티

protected bool $isAbstract
리턴 boolean

$isFinal 보호되어 있는 프로퍼티

protected bool $isFinal
리턴 boolean

$isInterface 보호되어 있는 프로퍼티

protected bool $isInterface
리턴 boolean

$isScanned 보호되어 있는 프로퍼티

protected bool $isScanned
리턴 boolean

$isTrait 보호되어 있는 프로퍼티

protected bool $isTrait
리턴 boolean

$lineEnd 보호되어 있는 프로퍼티

protected int $lineEnd
리턴 integer

$lineStart 보호되어 있는 프로퍼티

protected int $lineStart
리턴 integer

$methods 보호되어 있는 프로퍼티

protected array $methods
리턴 array

$name 보호되어 있는 프로퍼티

protected string $name
리턴 string

$nameInformation 보호되어 있는 프로퍼티

protected NameInformation,Zend\Code $nameInformation
리턴 Zend\Code\NameInformation

$parentClass 보호되어 있는 프로퍼티

protected string $parentClass
리턴 string

$shortInterfaces 보호되어 있는 프로퍼티

protected array $shortInterfaces
리턴 array

$shortName 보호되어 있는 프로퍼티

protected string $shortName
리턴 string

$shortParentClass 보호되어 있는 프로퍼티

protected string $shortParentClass
리턴 string

$tokens 보호되어 있는 프로퍼티

protected array $tokens
리턴 array

$traits 보호되어 있는 프로퍼티

protected array $traits
리턴 array