|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.m2m.atl.adt.ui.text.atl.AtlModelAnalyser
public class AtlModelAnalyser
Atl model analyser, used to get information from an incomplete ATL model.
Constructor Summary | |
---|---|
AtlModelAnalyser(AtlCompletionHelper helper,
org.eclipse.emf.ecore.EObject emfRoot,
int modelOffset,
java.lang.String fileContext)
Creates an analyser for ATL models. |
Method Summary | |
---|---|
void |
displayModel()
Debugging utility (for a developer purpose). |
org.eclipse.emf.ecore.EObject |
getContainer(org.eclipse.emf.ecore.EObject element)
Search the parent element of the given element, if present. |
java.util.List<org.eclipse.emf.ecore.EObject> |
getContainers(org.eclipse.emf.ecore.EObject element)
Computes an ordered list of containers of the given element. |
java.lang.String |
getContext(int offset)
Compute the context of the given offset. |
AtlCompletionHelper |
getHelper()
|
org.eclipse.emf.ecore.EObject |
getLastLostElementByType(java.lang.String typeName)
Returns the last lost types having the given type. |
org.eclipse.emf.ecore.EObject |
getLocatedElement(int offset)
Returns the element available at the given offset |
java.util.List<org.eclipse.emf.ecore.EObject> |
getLostElementsByType(java.lang.String typeName)
Returns the list of the lost types having the given type. |
java.util.List<java.lang.String> |
getLostTypesNames()
Returns the list of the lost types names. |
int |
getModelOffset()
|
org.eclipse.emf.ecore.EObject |
getPreviousElement(org.eclipse.emf.ecore.EObject element)
Computes the previous element in the model. |
org.eclipse.emf.ecore.EObject |
getPreviousElement(org.eclipse.emf.ecore.EObject element,
java.lang.String type)
Computes the previous element in the model. |
org.eclipse.emf.ecore.EObject |
getPreviouslyParsedElement(org.eclipse.emf.ecore.EObject element)
Computes the previous element in the model. |
org.eclipse.emf.ecore.EObject |
getRoot()
|
java.lang.String |
getText(org.eclipse.emf.ecore.EObject locatedElement)
Returns the text associated to the given located element. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AtlModelAnalyser(AtlCompletionHelper helper, org.eclipse.emf.ecore.EObject emfRoot, int modelOffset, java.lang.String fileContext)
helper
- the completion helperemfRoot
- the model rootmodelOffset
- the model offsetfileContext
- the main context of the fileMethod Detail |
---|
public java.lang.String getContext(int offset) throws org.eclipse.jface.text.BadLocationException
offset
- the current offset
org.eclipse.jface.text.BadLocationException
public java.util.List<org.eclipse.emf.ecore.EObject> getContainers(org.eclipse.emf.ecore.EObject element) throws org.eclipse.jface.text.BadLocationException
element
- the element
org.eclipse.jface.text.BadLocationException
public org.eclipse.emf.ecore.EObject getContainer(org.eclipse.emf.ecore.EObject element) throws org.eclipse.jface.text.BadLocationException
element
- the element
org.eclipse.jface.text.BadLocationException
public org.eclipse.emf.ecore.EObject getPreviouslyParsedElement(org.eclipse.emf.ecore.EObject element) throws org.eclipse.jface.text.BadLocationException
element
- the current element
org.eclipse.jface.text.BadLocationException
public org.eclipse.emf.ecore.EObject getPreviousElement(org.eclipse.emf.ecore.EObject element) throws org.eclipse.jface.text.BadLocationException
element
- the current element
org.eclipse.jface.text.BadLocationException
public org.eclipse.emf.ecore.EObject getPreviousElement(org.eclipse.emf.ecore.EObject element, java.lang.String type) throws org.eclipse.jface.text.BadLocationException
element
- the current elementtype
- the previous element type
org.eclipse.jface.text.BadLocationException
public org.eclipse.emf.ecore.EObject getLocatedElement(int offset) throws org.eclipse.jface.text.BadLocationException
offset
- the current offset
org.eclipse.jface.text.BadLocationException
public java.util.List<java.lang.String> getLostTypesNames()
public java.util.List<org.eclipse.emf.ecore.EObject> getLostElementsByType(java.lang.String typeName)
typeName
- the type name
public org.eclipse.emf.ecore.EObject getLastLostElementByType(java.lang.String typeName)
typeName
- the type name
public void displayModel()
public java.lang.String getText(org.eclipse.emf.ecore.EObject locatedElement) throws org.eclipse.jface.text.BadLocationException
locatedElement
- the element
org.eclipse.jface.text.BadLocationException
public int getModelOffset()
public org.eclipse.emf.ecore.EObject getRoot()
public AtlCompletionHelper getHelper()
|
Copyright 2007 IBM Corporation and others. All Rights Reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |