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
-
-
Method Summary
-
Methods inherited from class org.sonar.php.tree.impl.PHPTree
getFirstToken, getLastToken, getLine, getParent, is, isLeaf, setParent, toString
-
-
-
-
Method Detail
-
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, @Nullable SyntaxToken visibility, SyntaxToken constToken, SeparatedListImpl<VariableDeclarationTree> declarations, InternalSyntaxToken eosToken)
-
attributeGroups
public List<AttributeGroupTree> attributeGroups()
- Specified by:
attributeGroups
in interfaceHasAttributes
-
modifierTokens
public List<SyntaxToken> modifierTokens()
- Specified by:
modifierTokens
in interfaceClassPropertyDeclarationTree
-
typeAnnotation
@Nullable @Deprecated public TypeTree typeAnnotation()
Deprecated.since 3.11 - usedeclaredType()
instead.- Specified by:
typeAnnotation
in interfaceClassPropertyDeclarationTree
-
declaredType
@Nullable public DeclaredTypeTree declaredType()
- Specified by:
declaredType
in interfaceClassPropertyDeclarationTree
-
declarations
public SeparatedListImpl<VariableDeclarationTree> declarations()
- Specified by:
declarations
in interfaceClassPropertyDeclarationTree
-
eosToken
public SyntaxToken eosToken()
- Specified by:
eosToken
in interfaceClassPropertyDeclarationTree
-
hasModifiers
public boolean hasModifiers(String... modifiers)
- Specified by:
hasModifiers
in interfaceClassPropertyDeclarationTree
-
hasModifier
public boolean hasModifier(String modifier)
-
childrenIterator
public Iterator<Tree> 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
public void accept(VisitorCheck visitor)
-
-