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:
attributeGroupsin interfaceHasAttributes
-
modifierTokens
public List<SyntaxToken> modifierTokens()
- Specified by:
modifierTokensin interfaceClassPropertyDeclarationTree
-
typeAnnotation
@Nullable @Deprecated public TypeTree typeAnnotation()
Deprecated.since 3.11 - usedeclaredType()instead.- Specified by:
typeAnnotationin interfaceClassPropertyDeclarationTree
-
declaredType
@Nullable public DeclaredTypeTree declaredType()
- Specified by:
declaredTypein interfaceClassPropertyDeclarationTree
-
declarations
public SeparatedListImpl<VariableDeclarationTree> declarations()
- Specified by:
declarationsin interfaceClassPropertyDeclarationTree
-
eosToken
public SyntaxToken eosToken()
- Specified by:
eosTokenin interfaceClassPropertyDeclarationTree
-
hasModifiers
public boolean hasModifiers(String... modifiers)
- Specified by:
hasModifiersin interfaceClassPropertyDeclarationTree
-
hasModifier
public boolean hasModifier(String modifier)
-
childrenIterator
public Iterator<Tree> childrenIterator()
Description copied from class:PHPTreeCreates iterator for children of this node. Note that iterator may containnullelements.- Specified by:
childrenIteratorin classPHPTree
-
accept
public void accept(VisitorCheck visitor)
-
-