Class ClassPropertyDeclarationTreeImpl
java.lang.Object
org.sonar.php.tree.impl.PHPTree
org.sonar.php.tree.impl.declaration.ClassPropertyDeclarationTreeImpl
- All Implemented Interfaces:
ClassMemberTree
,ClassPropertyDeclarationTree
,HasAttributes
,Tree
public class ClassPropertyDeclarationTreeImpl
extends PHPTree
implements ClassPropertyDeclarationTree
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
accept
(VisitorCheck visitor) Creates iterator for children of this node.static ClassPropertyDeclarationTree
constant
(List<AttributeGroupTree> attributes, List<SyntaxToken> modifiers, SyntaxToken constToken, DeclaredTypeTree typeAnnotation, SeparatedListImpl<VariableDeclarationTree> declarations, InternalSyntaxToken eosToken) eosToken()
getKind()
boolean
hasModifier
(String modifier) boolean
hasModifiers
(String... modifiers) Deprecated.static ClassPropertyDeclarationTree
variable
(List<AttributeGroupTree> attributes, List<SyntaxToken> modifierTokens, DeclaredTypeTree typeAnnotation, SeparatedListImpl<VariableDeclarationTree> declarations, InternalSyntaxToken eosToken) Methods inherited from class org.sonar.php.tree.impl.PHPTree
getFirstToken, getLastToken, getLine, getParent, is, isLeaf, setParent, toString
-
Method Details
-
variable
public static ClassPropertyDeclarationTree variable(List<AttributeGroupTree> attributes, List<SyntaxToken> modifierTokens, @Nullable DeclaredTypeTree typeAnnotation, SeparatedListImpl<VariableDeclarationTree> declarations, InternalSyntaxToken eosToken) -
constant
public static ClassPropertyDeclarationTree constant(List<AttributeGroupTree> attributes, List<SyntaxToken> modifiers, SyntaxToken constToken, @Nullable DeclaredTypeTree typeAnnotation, SeparatedListImpl<VariableDeclarationTree> declarations, InternalSyntaxToken eosToken) -
attributeGroups
- Specified by:
attributeGroups
in interfaceHasAttributes
-
modifierTokens
- Specified by:
modifierTokens
in interfaceClassPropertyDeclarationTree
-
typeAnnotation
Deprecated.since 3.11 - usedeclaredType()
instead.- Specified by:
typeAnnotation
in interfaceClassPropertyDeclarationTree
-
declaredType
- Specified by:
declaredType
in interfaceClassPropertyDeclarationTree
-
declarations
- Specified by:
declarations
in interfaceClassPropertyDeclarationTree
-
eosToken
- Specified by:
eosToken
in interfaceClassPropertyDeclarationTree
-
hasModifiers
- Specified by:
hasModifiers
in interfaceClassPropertyDeclarationTree
-
hasModifier
-
getKind
-
childrenIterator
Description copied from class:PHPTree
Creates iterator for children of this node. Note that iterator may containnull
elements.- Specified by:
childrenIterator
in classPHPTree
-
accept
-
declaredType()
instead.