io.sarl.lang.compiler
Class InlineAnnotationTreeAppendable
All Superinterfaces:
org.eclipse.xtext.generator.trace.ITraceRegionProvider, org.eclipse.xtext.xbase.compiler.IAppendable, org.eclipse.xtext.xbase.compiler.ISourceAppender, org.eclipse.xtext.xbase.compiler.output.ITreeAppendable
Enclosing class:
JavaInlineExpressionCompiler
protected static class InlineAnnotationTreeAppendable
extends java.lang.Object
Appendable for creating an inline expression.
Maven Group Identifier:
io.sarl.lang
Maven Artifact Identifier:
compiler
Since:
0.4
Property Summary
Modifier and type Property and description
org.eclipse.xtext.xbase.compiler.ImportManager importManager
Constructor Summary
Constructor and description
new(ImportManager)
Constructor.
Action Summary
Modifier and type Action and description
void appendConstant(String)
Append a constant.
void appendStringConstant(String)
Append a string constant.
void appendTypeConstant(JvmType)
Append a type constant.
org.eclipse.xtext.xbase.compiler.ImportManager getImportManager
boolean isConstant
Replies if the expression is constant.
boolean isStatement
Replies if the expression is statement.
void setConstant(boolean)
Change the constant flag.
void setStatement(boolean)
Change the statement flag.
Property Details
importManager
val importManager : org.eclipse.xtext.xbase.compiler.ImportManager

This property is an alias for the action: getImportManager

Constructor Details
new(ImportManager)
new(ImportManager)
Constructor.
Parameters:
imports - the manager of imports.
Action Details
appendConstant(String)
def appendConstant(String)
Append a constant.
Parameters:
constant - the constant.
appendStringConstant(String)
def appendStringConstant(String)
Append a string constant.
Parameters:
stringValue - the value of the string.
appendTypeConstant(JvmType)
def appendTypeConstant(JvmType)
Append a type constant.
Parameters:
type - the type.
getImportManager
def getImportManager : org.eclipse.xtext.xbase.compiler.ImportManager
isConstant
def isConstant : boolean
Replies if the expression is constant.
Returns:
is constant.
isStatement
def isStatement : boolean
Replies if the expression is statement.
Returns:
is statement.
setConstant(boolean)
def setConstant(boolean)
Change the constant flag.
Parameters:
isConstant - is a constant.
setStatement(boolean)
def setStatement(boolean)
Change the statement flag.
Parameters:
isStatement - is a statement.