public class ExpressionUtil
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected ILocationInFileProvider |
locationInFileProvider |
Constructor and Description |
---|
ExpressionUtil() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
contains(org.eclipse.emf.ecore.EObject element,
INode node,
org.eclipse.jface.text.ITextSelection selection) |
protected boolean |
contains(ITextRegion textRegion,
org.eclipse.jface.text.ITextSelection selection) |
XExpression |
findSelectedExpression(XtextResource resource,
org.eclipse.jface.text.ITextSelection selection) |
java.util.List<XExpression> |
findSelectedSiblingExpressions(XtextResource resource,
org.eclipse.jface.text.ITextSelection selection) |
XExpression |
findSuccessorExpressionForVariableDeclaration(org.eclipse.emf.ecore.EObject expression) |
ITextRegion |
getTextRegion(org.eclipse.emf.ecore.EObject element) |
protected ITextRegion |
getTotalTextRegion(org.eclipse.emf.ecore.EObject element,
INode node) |
protected boolean |
intersects(ITextRegion textRegion,
org.eclipse.jface.text.ITextSelection trimmedSelection) |
protected boolean |
isBeginOfExpression(INode node) |
protected boolean |
isBlockInsertable(org.eclipse.emf.ecore.EObject eContainer,
org.eclipse.emf.ecore.EObject expression) |
protected INode |
nextNodeForFindSelectedExpression(org.eclipse.emf.ecore.EObject element,
INode node,
org.eclipse.jface.text.ITextSelection selection) |
protected org.eclipse.jface.text.ITextSelection |
trimSelection(XtextResource resource,
org.eclipse.jface.text.ITextSelection selection) |
@Inject protected ILocationInFileProvider locationInFileProvider
public XExpression findSelectedExpression(XtextResource resource, org.eclipse.jface.text.ITextSelection selection)
protected INode nextNodeForFindSelectedExpression(org.eclipse.emf.ecore.EObject element, INode node, org.eclipse.jface.text.ITextSelection selection)
public java.util.List<XExpression> findSelectedSiblingExpressions(XtextResource resource, org.eclipse.jface.text.ITextSelection selection)
protected org.eclipse.jface.text.ITextSelection trimSelection(XtextResource resource, org.eclipse.jface.text.ITextSelection selection)
protected boolean isBeginOfExpression(INode node)
protected boolean contains(org.eclipse.emf.ecore.EObject element, INode node, org.eclipse.jface.text.ITextSelection selection)
protected boolean contains(ITextRegion textRegion, org.eclipse.jface.text.ITextSelection selection)
protected boolean intersects(ITextRegion textRegion, org.eclipse.jface.text.ITextSelection trimmedSelection)
protected ITextRegion getTotalTextRegion(org.eclipse.emf.ecore.EObject element, INode node)
public ITextRegion getTextRegion(org.eclipse.emf.ecore.EObject element)
public XExpression findSuccessorExpressionForVariableDeclaration(org.eclipse.emf.ecore.EObject expression)
protected boolean isBlockInsertable(org.eclipse.emf.ecore.EObject eContainer, org.eclipse.emf.ecore.EObject expression)