io.sarl.lang.codebuilder.appenders
Class AbstractSourceAppender
All Known Subclasses:
BlockExpressionSourceAppender, ExpressionSourceAppender, FormalParameterSourceAppender, SarlActionSourceAppender, SarlAgentSourceAppender, SarlAnnotationTypeSourceAppender, SarlArtifactSourceAppender, SarlBehaviorSourceAppender, SarlBehaviorUnitSourceAppender, SarlCapacitySourceAppender, SarlClassSourceAppender, SarlConstructorSourceAppender, SarlEnumLiteralSourceAppender, SarlEnumerationSourceAppender, SarlEventSourceAppender, SarlFieldSourceAppender, SarlInterfaceSourceAppender, SarlSkillSourceAppender, SarlSpaceSourceAppender, ScriptSourceAppender, TypeParameterSourceAppender
abstract class AbstractSourceAppender
extends java.lang.Object
Abstract implementation of an appender for the Sarl language.
Property Summary
Modifier and type Property and description
protected org.eclipse.xtext.common.types.access.IJvmTypeProvider typeResolutionContext
Replies the context for type resolution.
Nested Type Summary
Modifier and type Type and description
class AbstractSourceAppender.AppenderSerializer
Field Summary
Modifier and type Field and description
public static val java.lang.String OVERRIDEN_TYPE_SCOPE_PROVIDER_NAME
Constructor Summary
Constructor and description
new
Action Summary
Modifier and type Action and description
abstract void build(ISourceAppender)
Build the source code and put it into the given appender.
protected void build(EObject,ISourceAppender)
Build the source code and put it into the given appender.
protected abstract org.eclipse.xtext.common.types.access.IJvmTypeProvider getTypeResolutionContext
Replies the context for type resolution.
boolean isFormatting
Replies if this building is formatting the generated code.
abstract org.eclipse.xtext.common.types.JvmParameterizedTypeReference newTypeRef(String)
Replies the type reference for the given name in the given context.
abstract org.eclipse.xtext.common.types.JvmParameterizedTypeReference newTypeRef(Notifier,String)
Replies the type reference for the given name in the given context.
void setFormatting(boolean)
Set if this building is formatting the generated code.
Property Details
typeResolutionContext
protected val typeResolutionContext : org.eclipse.xtext.common.types.access.IJvmTypeProvider
Replies the context for type resolution.

This property is an alias for the action: getTypeResolutionContext

Returns:
the context, or null if the Ecore object is the context.
Field Details
OVERRIDEN_TYPE_SCOPE_PROVIDER_NAME
public static val OVERRIDEN_TYPE_SCOPE_PROVIDER_NAME : java.lang.String = "io.sarl.lang.codebuilder.appenders.SourceAppender.providerType"
Constructor Details
new
new
Action Details
build(ISourceAppender)
def build(ISourceAppender)

throws java.io.IOException

Build the source code and put it into the given appender.
Parameters:
appender - the object that permits to create the source code.
build(EObject,ISourceAppender)
protected def build(EObject,ISourceAppender)

throws java.io.IOException

Build the source code and put it into the given appender.
Parameters:
object - the object to serialize
appender - the object that permits to create the source code.
getTypeResolutionContext
protected def getTypeResolutionContext : org.eclipse.xtext.common.types.access.IJvmTypeProvider
Replies the context for type resolution.
Returns:
the context, or null if the Ecore object is the context.
isFormatting
def isFormatting : boolean
Replies if this building is formatting the generated code.
Returns:
true if the appender is formatting the generated code.
newTypeRef(String)
def newTypeRef(String) : org.eclipse.xtext.common.types.JvmParameterizedTypeReference
Replies the type reference for the given name in the given context.
newTypeRef(Notifier,String)
def newTypeRef(Notifier,String) : org.eclipse.xtext.common.types.JvmParameterizedTypeReference
Replies the type reference for the given name in the given context.
setFormatting(boolean)
def setFormatting(boolean)
Set if this building is formatting the generated code.
Parameters:
formatting - true if the appender is formatting the generated code.