public class PsiBinaryExpressionImpl extends ExpressionPsiElement implements PsiBinaryExpression
Iconable.IconFlags, Iconable.LastComputedIcon
ourHC
EMPTY_ARRAY
FLAGS_LOCKED, ICON_PLACEHOLDER
BOOLEAN_OPERATION_TOKENS
ARRAY_FACTORY, EMPTY_ARRAY, EXPRESSION_TO_TYPE
ICON_FLAG_IGNORE_MASK, ICON_FLAG_OPEN, ICON_FLAG_READ_STATUS, ICON_FLAG_VISIBILITY
EMPTY_NAVIGATION_ITEM_ARRAY
Modifier | Constructor and Description |
---|---|
|
PsiBinaryExpressionImpl() |
protected |
PsiBinaryExpressionImpl(IElementType elementType) |
Modifier and Type | Method and Description |
---|---|
void |
accept(PsiElementVisitor visitor)
Passes the element to the specified visitor.
|
ASTNode |
findChildByRole(int role) |
int |
getChildRole(ASTNode child) |
PsiExpression |
getLOperand()
Returns the left operand of the expression.
|
PsiExpression [] |
getOperands() |
PsiJavaToken |
getOperationSign()
Returns the token representing the operation (for example,
JavaTokenType.PLUS for an
addition operation). |
IElementType |
getOperationTokenType()
Returns the type of the token representing the operation performed.
|
PsiExpression |
getROperand()
Returns the right operand of the expression.
|
PsiJavaToken |
getTokenBeforeOperand(PsiExpression operand) |
PsiType |
getType()
Returns the type of the expression.
|
boolean |
processDeclarations(PsiScopeProcessor processor,
ResolveState state,
PsiElement lastParent,
PsiElement place)
Passes the declarations contained in this PSI element and its children
for processing to the specified scope processor.
|
java.lang.String |
toString()
toString() should never be presented to the user.
|
hashCode, replaceChildInternal
acceptChildren, add, addAfter, addBefore, addRange, addRangeAfter, addRangeBefore, canNavigate, canNavigateToSource, checkAdd, checkDelete, clone, copy, delete, deleteChildRange, findElementAt, findReferenceAt, getChildren, getContainingFile, getContext, getFirstChild, getLanguage, getLastChild, getName, getNavigationElement, getNextSibling, getNode, getOriginalElement, getParent, getPresentation, getPrevSibling, getProject, getReference, getReferences, getResolveScope, getUseScope, isEquivalentTo, isPhysical, isValid, isWritable, navigate, replace
acceptTree, addChild, addChild, addChildren, addInternal, addLeaf, clearCaches, countChildren, createPsiNoLock, deleteChildInternal, findChildByRoleAsPsiElement, findChildByType, findChildByType, findChildByType, findChildByType, findLeafElementAt, findPsiChildByType, findPsiChildByType, getCachedLength, getChars, getChildren, getChildrenAsPsiElements, getChildrenAsPsiElements, getChildRole, getFirstChildNode, getLastChildNode, getPsi, getPsi, getText, getTextLength, hc, rawAddChildren, rawAddChildrenWithoutNotifications, rawFirstChild, rawLastChild, rawRemoveAllChildren, removeAllChildren, removeChild, removeRange, replaceAllChildrenToChildrenOf, replaceChild, setPsi, subtreeChanged, textContains, textMatches, textToCharArray
copyElement, equals, getElementType, getManager, getStartOffset, getStartOffsetInParent, getTextOffset, getTextRange, getTreeNext, getTreeParent, getTreePrev, invalidate, onInvalidated, rawInsertAfterMe, rawInsertBeforeMe, rawRemove, rawRemoveUpTo, rawRemoveUpToLast, rawReplaceWithList, textMatches, textMatches, textMatches
buildRowIcon, computeBaseIcon, createLayeredIcon, getAdjustedBaseIcon, getBaseIcon, getElementIcon, getIcon, iconWithVisibilityIfNeeded, isNativeFileType, isVisibilitySupported, overlayIcons, registerIconLayer, transformFlags
changeUserMap, clearUserData, copyCopyableDataTo, copyUserDataTo, getCopyableUserData, getUserData, getUserDataString, getUserMap, isUserDataEmpty, putCopyableUserData, putUserData, putUserDataIfAbsent, replace, setUserMap
finalize, getClass, notify, notifyAll, wait, wait, wait
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, getOwnReferences, getParent, getPrevSibling, getProject, getReference, getReferences, getResolveScope, getStartOffsetInParent, getText, getTextLength, getTextOffset, getTextRange, getTextRangeInParent, getUseScope, isEquivalentTo, isPhysical, isValid, isWritable, putCopyableUserData, replace, textContains, textMatches, textMatches, textToCharArray
getUserData, putUserData
getCopyableUserData, putCopyableUserData
public PsiBinaryExpressionImpl()
protected PsiBinaryExpressionImpl(IElementType elementType)
public PsiExpression getLOperand()
PsiBinaryExpression
getLOperand
in interface PsiBinaryExpression
public PsiExpression getROperand()
PsiBinaryExpression
getROperand
in interface PsiBinaryExpression
public PsiJavaToken getOperationSign()
PsiBinaryExpression
JavaTokenType.PLUS
for an
addition operation).getOperationSign
in interface PsiBinaryExpression
public IElementType getOperationTokenType()
PsiBinaryExpression
getOperationTokenType
in interface PsiBinaryExpression
getOperationTokenType
in interface PsiPolyadicExpression
public PsiJavaToken getTokenBeforeOperand(PsiExpression operand)
getTokenBeforeOperand
in interface PsiPolyadicExpression
public PsiType getType()
PsiExpression
getType
in interface PsiExpression
public ASTNode findChildByRole(int role)
findChildByRole
in class CompositeElement
public int getChildRole(ASTNode child)
getChildRole
in class CompositeElement
public void accept(PsiElementVisitor visitor)
PsiElement
accept
in interface PsiElement
accept
in class CompositePsiElement
visitor
- the visitor to pass the element to.public java.lang.String toString()
PsiElement
toString
in interface PsiElement
toString
in class CompositePsiElement
public boolean processDeclarations(PsiScopeProcessor processor, ResolveState state, PsiElement lastParent, PsiElement place)
PsiElement
processDeclarations
in interface PsiElement
processDeclarations
in class CompositePsiElement
processor
- the processor receiving the declarations.lastParent
- the child of this element has been processed during the previous
step of the tree up walk (declarations under this element do not need
to be processed again)place
- the original element from which the tree up walk was initiated.public PsiExpression [] getOperands()
getOperands
in interface PsiPolyadicExpression