|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface PsiIfStatement
Represents a Java if or if ... else statement.
| Field Summary |
|---|
| Fields inherited from interface com.intellij.psi.PsiStatement |
|---|
EMPTY_ARRAY |
| Fields inherited from interface com.intellij.openapi.util.Iconable |
|---|
ICON_FLAG_CLOSED, ICON_FLAG_OPEN, ICON_FLAG_READ_STATUS, ICON_FLAG_VISIBILITY |
| Method Summary | |
|---|---|
PsiExpression |
getCondition()
Returns the expression representing the condition of the statement. |
PsiStatement |
getElseBranch()
Returns the statement which is executed when the condition is true. |
PsiKeyword |
getElseElement()
Returns the else keyword of the statement. |
PsiJavaToken |
getLParenth()
Returns the opening parenthesis enclosing the statement condition. |
PsiJavaToken |
getRParenth()
Returns the closing parenthesis enclosing the statement condition. |
PsiStatement |
getThenBranch()
Returns the statement which is executed when the condition is true. |
void |
setElseBranch(PsiStatement statement)
Sets the statement which is executed when the condition is false to the specified value. |
void |
setThenBranch(PsiStatement statement)
Sets the statement which is executed when the condition is true to the specified value. |
| Methods inherited from interface com.intellij.openapi.util.UserDataHolder |
|---|
getUserData, putUserData |
| Methods inherited from interface com.intellij.openapi.util.Iconable |
|---|
getIcon |
| Method Detail |
|---|
@Nullable PsiExpression getCondition()
@Nullable PsiStatement getThenBranch()
@Nullable PsiStatement getElseBranch()
else
part or is incomplete.@Nullable PsiKeyword getElseElement()
else keyword of the statement.
else
part.
void setElseBranch(@NotNull
PsiStatement statement)
throws IncorrectOperationException
else keyword if required.
statement - the statement to use as the else branch.
IncorrectOperationException - if the modification fails for some reason (for example,
the containing file is read-only).
void setThenBranch(@NotNull
PsiStatement statement)
throws IncorrectOperationException
statement - the statement to use as the then branch.
IncorrectOperationException - if the modification fails for some reason (for example,
the containing file is read-only).@Nullable PsiJavaToken getLParenth()
@Nullable PsiJavaToken getRParenth()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||