Class AnonymousClassTreeImpl
java.lang.Object
org.sonar.php.tree.impl.PHPTree
org.sonar.php.tree.impl.expression.AnonymousClassTreeImpl
- All Implemented Interfaces:
HasClassSymbol,ClassTree,HasAttributes,AnonymousClassTree,ExpressionTree,Tree
-
Nested Class Summary
-
Field Summary
Fields inherited from interface org.sonar.plugins.php.api.tree.declaration.ClassTree
PHP5_CONSTRUCTOR_NAME -
Constructor Summary
ConstructorsConstructorDescriptionAnonymousClassTreeImpl(List<AttributeGroupTree> attributeGroups, SyntaxToken readonly, SyntaxToken classToken, SyntaxToken openParenthesisToken, SeparatedList<CallArgumentTree> callArguments, SyntaxToken closeParenthesisToken, SyntaxToken extendsToken, NamespaceNameTree superClass, SyntaxToken implementsToken, SeparatedListImpl<NamespaceNameTree> superInterfaces, SyntaxToken openCurlyBraceToken, List<ClassMemberTree> members, SyntaxToken closeCurlyBraceToken) -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(VisitorCheck visitor) Deprecated.since 3.11 .Creates iterator for children of this node.Fetch class constructor declaration within classmembers.getKind()booleanmembers()voidsetSymbol(ClassSymbol symbol) symbol()Methods inherited from class org.sonar.php.tree.impl.PHPTree
getFirstToken, getLastToken, getLine, getParent, is, isLeaf, setParent, toString
-
Constructor Details
-
AnonymousClassTreeImpl
public AnonymousClassTreeImpl(List<AttributeGroupTree> attributeGroups, @Nullable SyntaxToken readonly, SyntaxToken classToken, @Nullable SyntaxToken openParenthesisToken, SeparatedList<CallArgumentTree> callArguments, @Nullable SyntaxToken closeParenthesisToken, @Nullable SyntaxToken extendsToken, @Nullable NamespaceNameTree superClass, @Nullable SyntaxToken implementsToken, @Nullable SeparatedListImpl<NamespaceNameTree> superInterfaces, SyntaxToken openCurlyBraceToken, List<ClassMemberTree> members, SyntaxToken closeCurlyBraceToken)
-
-
Method Details
-
attributeGroups
- Specified by:
attributeGroupsin interfaceHasAttributes
-
isReadOnly
public boolean isReadOnly()- Specified by:
isReadOnlyin interfaceAnonymousClassTree
-
classToken
- Specified by:
classTokenin interfaceAnonymousClassTree- Specified by:
classTokenin interfaceClassTree
-
openParenthesisToken
- Specified by:
openParenthesisTokenin interfaceAnonymousClassTree
-
arguments
Deprecated.since 3.11 . UsecallArguments()instead.- Specified by:
argumentsin interfaceAnonymousClassTree
-
callArguments
- Specified by:
callArgumentsin interfaceAnonymousClassTree
-
closeParenthesisToken
- Specified by:
closeParenthesisTokenin interfaceAnonymousClassTree
-
extendsToken
- Specified by:
extendsTokenin interfaceAnonymousClassTree- Specified by:
extendsTokenin interfaceClassTree
-
superClass
- Specified by:
superClassin interfaceAnonymousClassTree- Specified by:
superClassin interfaceClassTree
-
implementsToken
- Specified by:
implementsTokenin interfaceAnonymousClassTree- Specified by:
implementsTokenin interfaceClassTree
-
superInterfaces
- Specified by:
superInterfacesin interfaceAnonymousClassTree- Specified by:
superInterfacesin interfaceClassTree
-
openCurlyBraceToken
- Specified by:
openCurlyBraceTokenin interfaceAnonymousClassTree- Specified by:
openCurlyBraceTokenin interfaceClassTree
-
members
- Specified by:
membersin interfaceAnonymousClassTree- Specified by:
membersin interfaceClassTree
-
closeCurlyBraceToken
- Specified by:
closeCurlyBraceTokenin interfaceAnonymousClassTree- Specified by:
closeCurlyBraceTokenin interfaceClassTree
-
fetchConstructor
Description copied from interface:ClassTreeFetch class constructor declaration within classmembers. Will look for a method named "__construct", if cannot be found it will search for the old-style constructor function, by the name of the class.- Specified by:
fetchConstructorin interfaceClassTree- Returns:
- the class constructor method declaration if defined, null otherwise.
-
childrenIterator
Description copied from class:PHPTreeCreates iterator for children of this node. Note that iterator may containnullelements.- Specified by:
childrenIteratorin classPHPTree
-
accept
-
getKind
-
symbol
- Specified by:
symbolin interfaceHasClassSymbol
-
setSymbol
- Specified by:
setSymbolin interfaceHasClassSymbol
-