com.intellij.psi
Interface PsiDoWhileStatement

All Superinterfaces:
Iconable, PsiElement, PsiStatement, UserDataHolder

public interface PsiDoWhileStatement
extends PsiStatement

Represents a Java do ... while 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
 PsiStatement getBody()
          Returns the body of the statement.
 PsiExpression getCondition()
          Returns the expression representing the exit condition of the loop.
 PsiJavaToken getLParenth()
          Returns the opening parenthesis enclosing the statement condition.
 PsiJavaToken getRParenth()
          Returns the closing parenthesis enclosing the statement condition.
 PsiKeyword getWhileKeyword()
          Returns the while keyword of the statement.
 
Methods inherited from interface com.intellij.psi.PsiElement
accept, acceptChildren, add, addAfter, addBefore, addRange, addRangeAfter, addRangeBefore, checkAdd, checkDelete, copy, delete, deleteChildRange, findElementAt, findReferenceAt, getChildren, getContainingFile, getContext, getCopyableUserData, getFirstChild, getLanguage, getLastChild, getManager, getNavigationElement, getNextSibling, getNode, getOriginalElement, getParent, getPrevSibling, getProject, getReference, getReferences, getResolveScope, getStartOffsetInParent, getText, getTextLength, getTextOffset, getTextRange, getUseScope, isPhysical, isValid, isWritable, processDeclarations, putCopyableUserData, replace, textContains, textMatches, textMatches, textToCharArray
 
Methods inherited from interface com.intellij.openapi.util.UserDataHolder
getUserData, putUserData
 
Methods inherited from interface com.intellij.openapi.util.Iconable
getIcon
 

Method Detail

getCondition

@Nullable
PsiExpression getCondition()
Returns the expression representing the exit condition of the loop.

Returns:
the expression, or null if the statement is incomplete.

getBody

@Nullable
PsiStatement getBody()
Returns the body of the statement.

Returns:
the body of the statement, or null if the statement is complete.

getWhileKeyword

@Nullable
PsiKeyword getWhileKeyword()
Returns the while keyword of the statement.

Returns:
the keyword, or null if the statement is incomplete.

getLParenth

@Nullable
PsiJavaToken getLParenth()
Returns the opening parenthesis enclosing the statement condition.

Returns:
the opening parenthesis, or null if the statement is incomplete.

getRParenth

@Nullable
PsiJavaToken getRParenth()
Returns the closing parenthesis enclosing the statement condition.

Returns:
the closing parenthesis, or null if the statement is incomplete.