io.sarl.lang.extralanguage.compiler
Class ExtraLanguageGeneratorContext
All Superinterfaces:
IExtraLanguageGeneratorContext, org.eclipse.xtext.generator.IGeneratorContext
class ExtraLanguageGeneratorContext
extends java.lang.Object
implements IExtraLanguageGeneratorContext
The generator from SARL to the Python language.
Maven Group Identifier:
io.sarl.lang
Maven Artifact Identifier:
compiler
Since:
0.6
Property Summary
Modifier and type Property and description
org.eclipse.xtext.util.CancelIndicator cancelIndicator
org.eclipse.xtext.generator.IGeneratorContext delegate
org.eclipse.xtext.xbase.typesystem.references.LightweightTypeReference expectedExpressionType
org.eclipse.xtext.generator.IFileSystemAccess2 fileSystemAccess
java.util.Date generationDate
java.util.UUID generationID
java.lang.String preferenceID
org.eclipse.emf.ecore.resource.Resource resource
IRootGenerator rootGenerator
Constructor Summary
Constructor and description
new(IGeneratorContext,IFileSystemAccess2,IRootGenerator,Resource,String)
Create the context for the given delegate.
Action Summary
Modifier and type Action and description
void clearData
IActionPrototypeContext getActionPrototypeContext(IActionPrototypeProvider)
org.eclipse.xtext.util.CancelIndicator getCancelIndicator
T getData(String,Class<T>)
T getData(String,Class<T>,T)
org.eclipse.xtext.generator.IGeneratorContext getDelegate
org.eclipse.xtext.xbase.typesystem.references.LightweightTypeReference getExpectedExpressionType
org.eclipse.xtext.generator.IFileSystemAccess2 getFileSystemAccess
java.util.Date getGenerationDate
java.util.UUID getGenerationID
java.util.List<E> getListData(String)
java.util.Map<K,V> getMapData(String)
java.util.Map<K,V> getMultimapData(String)
java.util.List<E> getMultimapValues(String,K)
java.lang.String getPreferenceID
org.eclipse.emf.ecore.resource.Resource getResource
IRootGenerator getRootGenerator
java.util.Set<E> getSetData(String)
void setData(String,Object)
org.eclipse.xtext.xbase.typesystem.references.LightweightTypeReference setExpectedExpressionType(LightweightTypeReference)
Property Details
cancelIndicator
val cancelIndicator : org.eclipse.xtext.util.CancelIndicator

This property is an alias for the action: getCancelIndicator

delegate
val delegate : org.eclipse.xtext.generator.IGeneratorContext

This property is an alias for the action: getDelegate

expectedExpressionType
val expectedExpressionType : org.eclipse.xtext.xbase.typesystem.references.LightweightTypeReference

This property is an alias for the action: getExpectedExpressionType

fileSystemAccess
val fileSystemAccess : org.eclipse.xtext.generator.IFileSystemAccess2

This property is an alias for the action: getFileSystemAccess

generationDate
val generationDate : java.util.Date

This property is an alias for the action: getGenerationDate

generationID
val generationID : java.util.UUID

This property is an alias for the action: getGenerationID

preferenceID
val preferenceID : java.lang.String

This property is an alias for the action: getPreferenceID

resource
val resource : org.eclipse.emf.ecore.resource.Resource

This property is an alias for the action: getResource

rootGenerator
val rootGenerator : IRootGenerator

This property is an alias for the action: getRootGenerator

Constructor Details
new(IGeneratorContext,IFileSystemAccess2,IRootGenerator,Resource,String)
new(IGeneratorContext,IFileSystemAccess2,IRootGenerator,Resource,String)
Create the context for the given delegate.
Parameters:
delegate - the delegate.
fileSystemAccess - the file system access.
generator - the root generator.
resource - the resource.
preferenceId - the identifier of the container of the generator's preferences.
Action Details
clearData
def clearData
getActionPrototypeContext(IActionPrototypeProvider)
def getActionPrototypeContext(IActionPrototypeProvider) : IActionPrototypeContext
getCancelIndicator
def getCancelIndicator : org.eclipse.xtext.util.CancelIndicator
getData(String,Class<T>)
def getData(String,Class<T>) : T

with T

getData(String,Class<T>,T)
def getData(String,Class<T>,T) : T

with T

getDelegate
def getDelegate : org.eclipse.xtext.generator.IGeneratorContext
getExpectedExpressionType
def getExpectedExpressionType : org.eclipse.xtext.xbase.typesystem.references.LightweightTypeReference
getFileSystemAccess
def getFileSystemAccess : org.eclipse.xtext.generator.IFileSystemAccess2
getGenerationDate
def getGenerationDate : java.util.Date
getGenerationID
def getGenerationID : java.util.UUID
getListData(String)
def getListData(String) : java.util.List<E>

with T

getMapData(String)
def getMapData(String) : java.util.Map<K,V>

with K, V

getMultimapData(String)
def getMultimapData(String) : java.util.Map<K,V>

with K, V

getMultimapValues(String,K)
def getMultimapValues(String,K) : java.util.List<E>

with K, V

getPreferenceID
def getPreferenceID : java.lang.String
getResource
def getResource : org.eclipse.emf.ecore.resource.Resource
getRootGenerator
def getRootGenerator : IRootGenerator
getSetData(String)
def getSetData(String) : java.util.Set<E>

with T

setData(String,Object)
def setData(String,Object)
setExpectedExpressionType(LightweightTypeReference)
def setExpectedExpressionType(LightweightTypeReference) : org.eclipse.xtext.xbase.typesystem.references.LightweightTypeReference