|
||||||||||
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.types.AtlTypesProcessor
public class AtlTypesProcessor
The ATL Type processor.
Constructor Summary | |
---|---|
AtlTypesProcessor()
|
Method Summary | |
---|---|
static java.lang.String |
cutString(java.lang.String s)
|
static java.lang.Object |
eGet(org.eclipse.emf.ecore.EObject self,
java.lang.String featureName)
Returns the value of a feature on an EObject. |
java.lang.Object |
getDeclaration(org.eclipse.emf.ecore.EObject element)
Returns the type of the given element. |
static Feature |
getFeature(OclAnyType context,
UnitType module,
java.lang.String featureName)
Returns the feature associated to the given context, with the given name. |
java.lang.String |
getInformation(org.eclipse.emf.ecore.EObject locatedElement)
Returns a description of the given element. |
static Operation |
getOperation(OclAnyType context,
UnitType module,
java.lang.String operationName,
OclAnyType... parameters)
Returns the operation associated to the given context, with the given name. |
java.lang.String |
getTemplateInformation(java.lang.String elementName,
org.eclipse.emf.ecore.EObject element)
|
OclAnyType |
getType(org.eclipse.emf.ecore.EObject element)
Returns the type of the given element. |
UnitType |
getUnit()
|
java.util.Map<java.lang.String,OclAnyType> |
getVariables(org.eclipse.emf.ecore.EObject element)
Returns the variables available at the given element level. |
static boolean |
oclIsKindOf(org.eclipse.emf.ecore.EObject element,
java.lang.String testedElementName)
Equivalent of ASMOclAny oclIsKindOf method for EObjects. |
void |
update(org.eclipse.core.resources.IFile file,
AtlModelAnalyser analyser,
AtlSourceManager manager)
Updates the type processor. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AtlTypesProcessor()
Method Detail |
---|
public void update(org.eclipse.core.resources.IFile file, AtlModelAnalyser analyser, AtlSourceManager manager)
file
- the file containing the current unitanalyser
- the current model analyser (local code analysis)manager
- the current source manager (entire code file repository)public OclAnyType getType(org.eclipse.emf.ecore.EObject element) throws org.eclipse.jface.text.BadLocationException
element
- the element to analyze
org.eclipse.jface.text.BadLocationException
public java.lang.String getInformation(org.eclipse.emf.ecore.EObject locatedElement) throws org.eclipse.jface.text.BadLocationException
locatedElement
- the element
org.eclipse.jface.text.BadLocationException
public java.lang.String getTemplateInformation(java.lang.String elementName, org.eclipse.emf.ecore.EObject element) throws org.eclipse.jface.text.BadLocationException
org.eclipse.jface.text.BadLocationException
public static java.lang.String cutString(java.lang.String s)
public java.lang.Object getDeclaration(org.eclipse.emf.ecore.EObject element) throws org.eclipse.jface.text.BadLocationException
element
- the element to analyze
org.eclipse.jface.text.BadLocationException
public java.util.Map<java.lang.String,OclAnyType> getVariables(org.eclipse.emf.ecore.EObject element) throws org.eclipse.jface.text.BadLocationException
element
- the located element
org.eclipse.jface.text.BadLocationException
public UnitType getUnit()
public static boolean oclIsKindOf(org.eclipse.emf.ecore.EObject element, java.lang.String testedElementName)
element
- the tested elementtestedElementName
- the type name
True
element has testedElementName in its superTypes, False
else.public static java.lang.Object eGet(org.eclipse.emf.ecore.EObject self, java.lang.String featureName)
self
- the EObjectfeatureName
- the feature name
public static Feature getFeature(OclAnyType context, UnitType module, java.lang.String featureName)
context
- the context typemodule
- the current modulefeatureName
- the feature name
public static Operation getOperation(OclAnyType context, UnitType module, java.lang.String operationName, OclAnyType... parameters)
context
- the context typemodule
- the current moduleoperationName
- the operation nameparameters
- the operation parameters
|
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 |