mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-19 04:51:24 +07:00
Java: improve javadoc
GitOrigin-RevId: 24c2aaa7182c9a19734b9c639ac700d58bc6df5c
This commit is contained in:
committed by
intellij-monorepo-bot
parent
d83277bb7b
commit
5db7b62f2e
@@ -1,4 +1,4 @@
|
||||
// Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
|
||||
// Copyright 2000-2025 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
|
||||
package com.intellij.psi;
|
||||
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
@@ -9,24 +9,28 @@ import org.jetbrains.annotations.NotNull;
|
||||
* @see PsiCall#getArgumentList()
|
||||
* @see PsiExpressionListStatement#getExpressionList()
|
||||
* @see PsiSwitchLabelStatementBase#getCaseValues()
|
||||
* @see PsiAnonymousClass#getArgumentList()
|
||||
*/
|
||||
public interface PsiExpressionList extends PsiElement {
|
||||
/**
|
||||
* Returns the expressions contained in the list.
|
||||
* @return the expressions contained in the list
|
||||
*/
|
||||
PsiExpression @NotNull [] getExpressions();
|
||||
|
||||
/**
|
||||
* @return the types of the expressions contained in this list.
|
||||
*/
|
||||
PsiType @NotNull [] getExpressionTypes();
|
||||
|
||||
/**
|
||||
* @return number of expressions in the expression list
|
||||
* @return the number of expressions in this expression list
|
||||
*/
|
||||
default int getExpressionCount() {
|
||||
return getExpressions().length;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {@code }true} if expression list contains no expressions
|
||||
* @return {@code true} if this expression list contains no expressions
|
||||
*/
|
||||
default boolean isEmpty() {
|
||||
return getExpressionCount() == 0;
|
||||
|
||||
Reference in New Issue
Block a user