io.sarl.lang.services
Class TypeDefaultValueProviderImpl
All Superinterfaces:
ITypeDefaultValueProvider
class TypeDefaultValueProviderImpl
extends java.lang.Object
implements ITypeDefaultValueProvider
Replies the default value that is associated to a JvmType.
Constructor Summary
Constructor and description
new
Action Summary
Modifier and type Action and description
java.lang.Object getDefaultValue(String)
Replies the default value that is associated to the given type.
java.lang.Object getDefaultValue(JvmType)
Replies the default value that is associated to the given type.
java.lang.String getDefaultValueInSarlSyntax(String)
Replies the default value in Sarl syntax and that is associated to the given type.
java.lang.String getDefaultValueInSarlSyntax(JvmType)
Replies the default value in Sarl syntax and that is associated to the given type.
org.eclipse.xtext.xbase.XExpression getDefaultValueXExpression(String,Notifier)
Replies the XExpression for the default value that is associated to the given type.
org.eclipse.xtext.xbase.XExpression getDefaultValueXExpression(JvmType,Notifier)
Replies the XExpression for the default value that is associated to the given type.
void setKeywords(SARLGrammarKeywordAccess)
void setTypeReferences(TypeReferences)
Constructor Details
new
new
Action Details
getDefaultValue(String)
def getDefaultValue(String) : java.lang.Object
Replies the default value that is associated to the given type.
Parameters:
typeName - the name of the type to consider.
Returns:
the default value
getDefaultValue(JvmType)
def getDefaultValue(JvmType) : java.lang.Object
Replies the default value that is associated to the given type.
Parameters:
type - the type to consider.
Returns:
the default value
getDefaultValueInSarlSyntax(String)
def getDefaultValueInSarlSyntax(String) : java.lang.String
Replies the default value in Sarl syntax and that is associated to the given type.
Parameters:
typeName - the name of the type to consider.
Returns:
the default value in Sarl syntax
getDefaultValueInSarlSyntax(JvmType)
def getDefaultValueInSarlSyntax(JvmType) : java.lang.String
Replies the default value in Sarl syntax and that is associated to the given type.
Parameters:
type - the type to consider.
Returns:
the default value in Sarl syntax
getDefaultValueXExpression(String,Notifier)
def getDefaultValueXExpression(String,Notifier) : org.eclipse.xtext.xbase.XExpression
Replies the XExpression for the default value that is associated to the given type.
Parameters:
typeName - the type to consider.
notifier - the context from whic a type must be loaded if needed.
Returns:
the XExpression for the default value
getDefaultValueXExpression(JvmType,Notifier)
def getDefaultValueXExpression(JvmType,Notifier) : org.eclipse.xtext.xbase.XExpression
Replies the XExpression for the default value that is associated to the given type.
Parameters:
type - the type to consider.
notifier - the context from whic a type must be loaded if needed.
Returns:
the XExpression for the default value
setKeywords(SARLGrammarKeywordAccess)
def setKeywords(SARLGrammarKeywordAccess)
setTypeReferences(TypeReferences)
def setTypeReferences(TypeReferences)