public abstract class CS2AS extends AbstractConversion
Modifier and Type | Class and Description |
---|---|
static class |
CS2AS.AbstractUnresolvedProxyMessageProvider |
static class |
CS2AS.DefaultMessageBinder
Default message binder that just invokes
NLS#bind(String, Object[]) . |
static interface |
CS2AS.MessageBinder
Interface for an optional message binder that may be used to affix additional context
for standalone and command line applications.
|
static class |
CS2AS.MessageBinderWithLineContext
Message binder that prefixes the uri and line number to the return from
NLS#bind(String, Object[]) . |
static interface |
CS2AS.UnresolvedProxyMessageProvider |
AbstractConversion.Predicate<T extends EObject>
Modifier and Type | Field and Description |
---|---|
static boolean |
showContext
Whether to show file and line number context at the start of messages.
|
Constructor and Description |
---|
CS2AS(EnvironmentFactoryInternal environmentFactory,
BaseCSResource csResource,
ASResource asResource) |
Modifier and Type | Method and Description |
---|---|
static void |
addUnresolvedProxyMessageProvider(CS2AS.UnresolvedProxyMessageProvider unresolvedProxyMessageProvider) |
static Element |
basicGetType(TypedTypeRefCS csTypedRef) |
String |
bind(EObject csContext,
String messageTemplate,
Object... bindings) |
static <any> |
computeRootContainmentFeatures(RootCS csRoot)
Return the containment features ordered so that library and import features are processed before anything else.
|
void |
dispose() |
ASResource |
getASResource() |
ModelElementCS |
getCSElement(Element pivotElement) |
BaseCSResource |
getCSResource() |
static List<ILeafNode> |
getDocumentationNodes(ICompositeNode node) |
PivotHelper |
getHelper() |
static CS2AS.MessageBinder |
getMessageBinder() |
<T extends Element> |
getPivotElement(Class<T> pivotClass,
ModelElementCS csElement) |
Element |
getPivotElement(ModelElementCS csElement) |
static DiagnosticMessage |
getUnresolvedProxyMessage(EReference eReference,
EObject csContext,
String linkText) |
static String |
getUnresolvedProxyText(EReference eReference,
EObject csContext,
String linkText) |
void |
installPivotDefinition(ModelElementCS csElement,
Element newPivotElement)
Install the mapping from a CS element that defines a pivot element to the defined pivot element.
|
void |
installPivotReference(ElementRefCS csElement,
Element newPivotElement,
EReference eReference)
Install the mapping from a CS element to a completely independent pivot element.
|
void |
installPivotUsage(ModelElementCS csElement,
Element newPivotElement)
Install the mapping from a CS element to a related pivot element.
|
Boolean |
isRequired(TypedRefCS csTypeRef)
Return true if csTYpeRef referes to a type that cannot be null, e.g.
|
Iteration |
lookupIteration(ElementCS csElement,
PathNameCS csPathName,
ScopeFilter scopeFilter) |
Operation |
lookupOperation(ElementCS csElement,
PathNameCS csPathName,
ScopeFilter scopeFilter) |
Property |
lookupProperty(ElementCS csElement,
PathNameCS csPathName,
ScopeFilter scopeFilter) |
VariableDeclaration |
lookupSelf(ElementCS csElement) |
Type |
lookupType(ElementCS csElement,
PathNameCS csPathName) |
Type |
lookupTypeQualifier(PathNameCS csPathName) |
Type |
lookupTypeValue(ElementCS csElement,
PathNameCS csPathName) |
Element |
lookupUndecoratedName(ElementCS csElement,
PathNameCS csPathName) |
static void |
printDiagnostic(String message,
boolean dispose,
int indent) |
static void |
refreshContext(PathNameCS pathNameCS,
ElementCS csContext) |
static void |
refreshElementType(PathElementCS pathElementCS,
EClassifier elementType) |
<T extends Element> |
refreshModelElement(Class<T> pivotClass,
EClass pivotEClass,
ModelElementCS csElement) |
static void |
refreshScopeFilter(PathNameCS pathNameCS,
ScopeFilter scopeFilter) |
static void |
setElementType(PathNameCS pathNameCS,
EClass elementType,
ElementCS csContext,
ScopeFilter scopeFilter) |
static CS2AS.MessageBinder |
setMessageBinder(CS2AS.MessageBinder messageBinder)
Define an alternative message binder.
|
static void |
setPathElement(PathNameCS csPathName,
Element element,
List<? extends EObject> ambiguities)
Define the resolution of a PathNameCS explicitly avoiding the need for the normal Xtext proxy resolution.
|
void |
update(IDiagnosticConsumer diagnosticsConsumer) |
getEnvironmentFactory, getEPackage, getMetamodelManager, getStandardLibrary, isId, refreshList
public static boolean showContext
public CS2AS(EnvironmentFactoryInternal environmentFactory, BaseCSResource csResource, ASResource asResource)
public static <any> computeRootContainmentFeatures(RootCS csRoot)
public static void addUnresolvedProxyMessageProvider(CS2AS.UnresolvedProxyMessageProvider unresolvedProxyMessageProvider)
public static Element basicGetType(TypedTypeRefCS csTypedRef)
public static DiagnosticMessage getUnresolvedProxyMessage(EReference eReference, EObject csContext, String linkText)
public static String getUnresolvedProxyText(EReference eReference, EObject csContext, String linkText)
public static List<ILeafNode> getDocumentationNodes(ICompositeNode node)
public static CS2AS.MessageBinder getMessageBinder()
public static void printDiagnostic(String message, boolean dispose, int indent)
public static void refreshContext(PathNameCS pathNameCS, ElementCS csContext)
public static void refreshElementType(PathElementCS pathElementCS, EClassifier elementType)
public static void refreshScopeFilter(PathNameCS pathNameCS, ScopeFilter scopeFilter)
public static void setElementType(PathNameCS pathNameCS, EClass elementType, ElementCS csContext, ScopeFilter scopeFilter)
public static CS2AS.MessageBinder setMessageBinder(CS2AS.MessageBinder messageBinder)
NLS#bind(String, Object[])
public static void setPathElement(PathNameCS csPathName, Element element, List<? extends EObject> ambiguities)
ambiguities
- public void dispose()
public ASResource getASResource()
public ModelElementCS getCSElement(Element pivotElement)
public BaseCSResource getCSResource()
public PivotHelper getHelper()
public Element getPivotElement(ModelElementCS csElement)
public <T extends Element> T getPivotElement(Class<T> pivotClass, ModelElementCS csElement)
public void installPivotDefinition(ModelElementCS csElement, Element newPivotElement)
public void installPivotReference(ElementRefCS csElement, Element newPivotElement, EReference eReference)
public void installPivotUsage(ModelElementCS csElement, Element newPivotElement)
public Boolean isRequired(TypedRefCS csTypeRef)
public Iteration lookupIteration(ElementCS csElement, PathNameCS csPathName, ScopeFilter scopeFilter)
public Operation lookupOperation(ElementCS csElement, PathNameCS csPathName, ScopeFilter scopeFilter)
public Property lookupProperty(ElementCS csElement, PathNameCS csPathName, ScopeFilter scopeFilter)
public VariableDeclaration lookupSelf(ElementCS csElement)
public Type lookupType(ElementCS csElement, PathNameCS csPathName)
public Type lookupTypeQualifier(PathNameCS csPathName)
public Type lookupTypeValue(ElementCS csElement, PathNameCS csPathName)
public Element lookupUndecoratedName(ElementCS csElement, PathNameCS csPathName)
public <T extends Element> T refreshModelElement(Class<T> pivotClass, EClass pivotEClass, ModelElementCS csElement)
public void update(IDiagnosticConsumer diagnosticsConsumer)
Copyright © 2005, 2018 IBM Corporation and others. All Rights Reserved.