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 TypeMethodDescriptionvoidaccept(VisitorCheck visitor) Creates iterator for children of this node.static ClassPropertyDeclarationTreeconstant(List<AttributeGroupTree> attributes, List<SyntaxToken> modifiers, SyntaxToken constToken, DeclaredTypeTree typeAnnotation, SeparatedListImpl<VariableDeclarationTree> declarations, InternalSyntaxToken eosToken) eosToken()getKind()booleanhasModifier(String modifier) booleanhasModifiers(String... modifiers) Deprecated.static ClassPropertyDeclarationTreevariable(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:
attributeGroupsin interfaceHasAttributes
-
modifierTokens
- Specified by:
modifierTokensin interfaceClassPropertyDeclarationTree
-
typeAnnotation
Deprecated.since 3.11 - usedeclaredType()instead.- Specified by:
typeAnnotationin interfaceClassPropertyDeclarationTree
-
declaredType
- Specified by:
declaredTypein interfaceClassPropertyDeclarationTree
-
declarations
- Specified by:
declarationsin interfaceClassPropertyDeclarationTree
-
eosToken
- Specified by:
eosTokenin interfaceClassPropertyDeclarationTree
-
hasModifiers
- Specified by:
hasModifiersin interfaceClassPropertyDeclarationTree
-
hasModifier
-
getKind
-
childrenIterator
Description copied from class:PHPTreeCreates iterator for children of this node. Note that iterator may containnullelements.- Specified by:
childrenIteratorin classPHPTree
-
accept
-
declaredType()instead.