|
||||||||||
| 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.
| Field Summary | |
|---|---|
static int |
DO_CONTEXT
Do section. |
static int |
FROM_CONTEXT
From section. |
static int |
HELPER_CONTEXT
Helper. |
static int |
MODULE_CONTEXT
ATL module. |
static int |
NULL_CONTEXT
context types. |
static int |
RULE_CONTEXT
Rule. |
static int |
TO_CONTEXT
To section. |
static int |
USING_CONTEXT
Using section. |
| Constructor Summary | |
|---|---|
AtlModelAnalyser(AtlCompletionHelper fHelper,
org.eclipse.emf.ecore.EObject emfRoot,
int modelOffset,
java.lang.String lastKeyword,
int userOffset)
Creates an analyser for ATL models. |
|
| Method Summary | |
|---|---|
int |
getContext()
|
static java.lang.String |
getContextName(int id)
Returns the context name by id. |
org.eclipse.emf.ecore.EObject |
getLocatedElement(int offset)
Search the nearest element of the given offset. |
org.eclipse.emf.ecore.EObject |
getLostType(java.lang.String type)
Looks for a specific type in the anormal root types. |
org.eclipse.emf.ecore.EObject |
getRootElement()
Search the root element of the model. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int NULL_CONTEXT
public static final int MODULE_CONTEXT
public static final int HELPER_CONTEXT
public static final int RULE_CONTEXT
public static final int FROM_CONTEXT
public static final int TO_CONTEXT
public static final int DO_CONTEXT
public static final int USING_CONTEXT
| Constructor Detail |
|---|
public AtlModelAnalyser(AtlCompletionHelper fHelper,
org.eclipse.emf.ecore.EObject emfRoot,
int modelOffset,
java.lang.String lastKeyword,
int userOffset)
fHelper - the completion helperemfRoot - the model rootmodelOffset - the model offsetlastKeyword - the last detected keyworduserOffset - the user current offset| Method Detail |
|---|
public org.eclipse.emf.ecore.EObject getRootElement()
public org.eclipse.emf.ecore.EObject getLocatedElement(int offset)
throws org.eclipse.jface.text.BadLocationException
offset - the given offset
org.eclipse.jface.text.BadLocationExceptionpublic org.eclipse.emf.ecore.EObject getLostType(java.lang.String type)
type - the name of the searched type
public int getContext()
public static java.lang.String getContextName(int id)
id - the given id
|
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 | |||||||||