-
All Known Subclasses:
-
BlockExpressionSourceAppender, ExpressionSourceAppender, FormalParameterSourceAppender, SarlActionSourceAppender, SarlAgentSourceAppender, SarlAnnotationTypeSourceAppender, SarlArtifactSourceAppender, SarlBehaviorSourceAppender, SarlBehaviorUnitSourceAppender, SarlCapacitySourceAppender, SarlClassSourceAppender, SarlConstructorSourceAppender, SarlEnumLiteralSourceAppender, SarlEnumerationSourceAppender, SarlEventSourceAppender, SarlFieldSourceAppender, SarlInterfaceSourceAppender, SarlProtocolSourceAppender, 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
Field Summary
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. |
Modifier and type |
Action and description |
abstract void |
build(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. |
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. |
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:
-
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 -
-
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 -
appender -
-
getTypeResolutionContext
-
protected def getTypeResolutionContext : org.eclipse.xtext.common.types.access.IJvmTypeProvider
Replies the context for type resolution.
-
Returns:
-
-
isFormatting
-
def isFormatting : boolean
Replies if this building is formatting the generated code.
-
Returns:
-
-
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 -