public class JavaExpressionSurroundDescriptor extends java.lang.Object implements SurroundDescriptor
| Constructor and Description |
|---|
JavaExpressionSurroundDescriptor() |
| Modifier and Type | Method and Description |
|---|---|
PsiElement [] |
getElementsToSurround(PsiFile file,
int startOffset,
int endOffset)
Returns the list of elements which will be included in the surrounded region for
the specified selection in the specified file, or an empty array if no surrounders
from this surround descriptor are applicable to the specified selection.
|
Surrounder [] |
getSurrounders()
Returns the list of surrounders (surround templates) which can be used for this
code fragment type.
|
boolean |
isExclusive() |
public PsiElement [] getElementsToSurround(PsiFile file, int startOffset, int endOffset)
SurroundDescriptorgetElementsToSurround in interface SurroundDescriptorfile - the file where elements are to be surrounded.startOffset - the selection start offset, with whitespaces skippedendOffset - the selection end offset, with whitespaces skippedpublic Surrounder [] getSurrounders()
SurroundDescriptorgetSurrounders in interface SurroundDescriptorpublic boolean isExclusive()
isExclusive in interface SurroundDescriptor