io.sarl.lang.sarl.util
Class SarlAdapterFactory
All Superinterfaces:
org.eclipse.emf.common.notify.AdapterFactory
class SarlAdapterFactory
extends java.lang.Object
The Adapter Factory for the model. It provides an adapter createXXX method for each class of the model.
See:
SarlPackage
Generated:
This element is generated by the SARL compiler.
Field Summary
Modifier and type Field and description
protected static var SarlPackage modelPackage
The cached model package.
protected var SarlSwitch<T> modelSwitch
The switch that delegates to the createXXX methods.
Constructor Summary
Constructor and description
new
Creates an instance of the adapter factory.
Action Summary
Modifier and type Action and description
org.eclipse.emf.common.notify.Adapter createAdapter(Notifier)
Creates an adapter for the target.
org.eclipse.emf.common.notify.Adapter createEObjectAdapter
Creates a new adapter for the default case.
org.eclipse.emf.common.notify.Adapter createSarlActionAdapter
Creates a new adapter for an object of class 'Action'.
org.eclipse.emf.common.notify.Adapter createSarlAgentAdapter
Creates a new adapter for an object of class 'Agent'.
org.eclipse.emf.common.notify.Adapter createSarlAnnotationTypeAdapter
Creates a new adapter for an object of class 'Annotation Type'.
org.eclipse.emf.common.notify.Adapter createSarlArtifactAdapter
Creates a new adapter for an object of class 'Artifact'.
org.eclipse.emf.common.notify.Adapter createSarlAssertExpressionAdapter
Creates a new adapter for an object of class 'Assert Expression'.
org.eclipse.emf.common.notify.Adapter createSarlBehaviorAdapter
Creates a new adapter for an object of class 'Behavior'.
org.eclipse.emf.common.notify.Adapter createSarlBehaviorUnitAdapter
Creates a new adapter for an object of class 'Behavior Unit'.
org.eclipse.emf.common.notify.Adapter createSarlBreakExpressionAdapter
Creates a new adapter for an object of class 'Break Expression'.
org.eclipse.emf.common.notify.Adapter createSarlCapacityAdapter
Creates a new adapter for an object of class 'Capacity'.
org.eclipse.emf.common.notify.Adapter createSarlCapacityUsesAdapter
Creates a new adapter for an object of class 'Capacity Uses'.
org.eclipse.emf.common.notify.Adapter createSarlCastedExpressionAdapter
Creates a new adapter for an object of class 'Casted Expression'.
org.eclipse.emf.common.notify.Adapter createSarlClassAdapter
Creates a new adapter for an object of class 'Class'.
org.eclipse.emf.common.notify.Adapter createSarlConstructorAdapter
Creates a new adapter for an object of class 'Constructor'.
org.eclipse.emf.common.notify.Adapter createSarlContinueExpressionAdapter
Creates a new adapter for an object of class 'Continue Expression'.
org.eclipse.emf.common.notify.Adapter createSarlEnumerationAdapter
Creates a new adapter for an object of class 'Enumeration'.
org.eclipse.emf.common.notify.Adapter createSarlEnumLiteralAdapter
Creates a new adapter for an object of class 'Enum Literal'.
org.eclipse.emf.common.notify.Adapter createSarlEventAdapter
Creates a new adapter for an object of class 'Event'.
org.eclipse.emf.common.notify.Adapter createSarlFieldAdapter
Creates a new adapter for an object of class 'Field'.
org.eclipse.emf.common.notify.Adapter createSarlFormalParameterAdapter
Creates a new adapter for an object of class 'Formal Parameter'.
org.eclipse.emf.common.notify.Adapter createSarlInterfaceAdapter
Creates a new adapter for an object of class 'Interface'.
org.eclipse.emf.common.notify.Adapter createSarlRequiredCapacityAdapter
Creates a new adapter for an object of class 'Required Capacity'.
org.eclipse.emf.common.notify.Adapter createSarlScriptAdapter
Creates a new adapter for an object of class 'Script'.
org.eclipse.emf.common.notify.Adapter createSarlSkillAdapter
Creates a new adapter for an object of class 'Skill'.
org.eclipse.emf.common.notify.Adapter createSarlSpaceAdapter
Creates a new adapter for an object of class 'Space'.
org.eclipse.emf.common.notify.Adapter createXCastedExpressionAdapter
Creates a new adapter for an object of class 'XCasted Expression'.
org.eclipse.emf.common.notify.Adapter createXExpressionAdapter
Creates a new adapter for an object of class 'XExpression'.
org.eclipse.emf.common.notify.Adapter createXtendAnnotationTargetAdapter
Creates a new adapter for an object of class 'Annotation Target'.
org.eclipse.emf.common.notify.Adapter createXtendAnnotationTypeAdapter
Creates a new adapter for an object of class 'Annotation Type'.
org.eclipse.emf.common.notify.Adapter createXtendClassAdapter
Creates a new adapter for an object of class 'Class'.
org.eclipse.emf.common.notify.Adapter createXtendConstructorAdapter
Creates a new adapter for an object of class 'Constructor'.
org.eclipse.emf.common.notify.Adapter createXtendEnumAdapter
Creates a new adapter for an object of class 'Enum'.
org.eclipse.emf.common.notify.Adapter createXtendEnumLiteralAdapter
Creates a new adapter for an object of class 'Enum Literal'.
org.eclipse.emf.common.notify.Adapter createXtendExecutableAdapter
Creates a new adapter for an object of class 'Executable'.
org.eclipse.emf.common.notify.Adapter createXtendFieldAdapter
Creates a new adapter for an object of class 'Field'.
org.eclipse.emf.common.notify.Adapter createXtendFileAdapter
Creates a new adapter for an object of class 'File'.
org.eclipse.emf.common.notify.Adapter createXtendFunctionAdapter
Creates a new adapter for an object of class 'Function'.
org.eclipse.emf.common.notify.Adapter createXtendInterfaceAdapter
Creates a new adapter for an object of class 'Interface'.
org.eclipse.emf.common.notify.Adapter createXtendMemberAdapter
Creates a new adapter for an object of class 'Member'.
org.eclipse.emf.common.notify.Adapter createXtendParameterAdapter
Creates a new adapter for an object of class 'Parameter'.
org.eclipse.emf.common.notify.Adapter createXtendTypeDeclarationAdapter
Creates a new adapter for an object of class 'Type Declaration'.
boolean isFactoryForType(Object)
Returns whether this factory is applicable for the type of the object.
Field Details
modelPackage
protected static var modelPackage : SarlPackage
The cached model package.
Generated:
This element is generated by the SARL compiler.
modelSwitch
protected var modelSwitch : SarlSwitch<T>
The switch that delegates to the createXXX methods.
Generated:
This element is generated by the SARL compiler.
Constructor Details
new
new
Creates an instance of the adapter factory.
Generated:
This element is generated by the SARL compiler.
Action Details
createAdapter(Notifier)
def createAdapter(Notifier) : org.eclipse.emf.common.notify.Adapter
Creates an adapter for the target.
Parameters:
target - the object to adapt.
Returns:
the adapter for the target .
Generated:
This element is generated by the SARL compiler.
createEObjectAdapter
def createEObjectAdapter : org.eclipse.emf.common.notify.Adapter
Creates a new adapter for the default case. This default implementation returns null.
Returns:
the new adapter.
Generated:
This element is generated by the SARL compiler.
createSarlActionAdapter
def createSarlActionAdapter : org.eclipse.emf.common.notify.Adapter
Creates a new adapter for an object of class 'Action'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.
Returns:
the new adapter.
See:
SarlAction
Generated:
This element is generated by the SARL compiler.
createSarlAgentAdapter
def createSarlAgentAdapter : org.eclipse.emf.common.notify.Adapter
Creates a new adapter for an object of class 'Agent'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.
Returns:
the new adapter.
See:
SarlAgent
Generated:
This element is generated by the SARL compiler.
createSarlAnnotationTypeAdapter
def createSarlAnnotationTypeAdapter : org.eclipse.emf.common.notify.Adapter
Creates a new adapter for an object of class 'Annotation Type'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.
Returns:
the new adapter.
See:
SarlAnnotationType
Generated:
This element is generated by the SARL compiler.
createSarlArtifactAdapter
def createSarlArtifactAdapter : org.eclipse.emf.common.notify.Adapter
Creates a new adapter for an object of class 'Artifact'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.
Returns:
the new adapter.
See:
SarlArtifact
Generated:
This element is generated by the SARL compiler.
createSarlAssertExpressionAdapter
def createSarlAssertExpressionAdapter : org.eclipse.emf.common.notify.Adapter
Creates a new adapter for an object of class 'Assert Expression'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.
Returns:
the new adapter.
Since:
0.6
See:
SarlAssertExpression
Generated:
This element is generated by the SARL compiler.
createSarlBehaviorAdapter
def createSarlBehaviorAdapter : org.eclipse.emf.common.notify.Adapter
Creates a new adapter for an object of class 'Behavior'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.
Returns:
the new adapter.
See:
SarlBehavior
Generated:
This element is generated by the SARL compiler.
createSarlBehaviorUnitAdapter
def createSarlBehaviorUnitAdapter : org.eclipse.emf.common.notify.Adapter
Creates a new adapter for an object of class 'Behavior Unit'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.
Returns:
the new adapter.
See:
SarlBehaviorUnit
Generated:
This element is generated by the SARL compiler.
createSarlBreakExpressionAdapter
def createSarlBreakExpressionAdapter : org.eclipse.emf.common.notify.Adapter
Creates a new adapter for an object of class 'Break Expression'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.
Returns:
the new adapter.
Since:
0.5
See:
SarlBreakExpression
Generated:
This element is generated by the SARL compiler.
createSarlCapacityAdapter
def createSarlCapacityAdapter : org.eclipse.emf.common.notify.Adapter
Creates a new adapter for an object of class 'Capacity'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.
Returns:
the new adapter.
See:
SarlCapacity
Generated:
This element is generated by the SARL compiler.
createSarlCapacityUsesAdapter
def createSarlCapacityUsesAdapter : org.eclipse.emf.common.notify.Adapter
Creates a new adapter for an object of class 'Capacity Uses'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.
Returns:
the new adapter.
See:
SarlCapacityUses
Generated:
This element is generated by the SARL compiler.
createSarlCastedExpressionAdapter
def createSarlCastedExpressionAdapter : org.eclipse.emf.common.notify.Adapter
Creates a new adapter for an object of class 'Casted Expression'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.
Returns:
the new adapter.
Since:
0.9
See:
SarlCastedExpression
Generated:
This element is generated by the SARL compiler.
createSarlClassAdapter
def createSarlClassAdapter : org.eclipse.emf.common.notify.Adapter
Creates a new adapter for an object of class 'Class'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.
Returns:
the new adapter.
See:
SarlClass
Generated:
This element is generated by the SARL compiler.
createSarlConstructorAdapter
def createSarlConstructorAdapter : org.eclipse.emf.common.notify.Adapter
Creates a new adapter for an object of class 'Constructor'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.
Returns:
the new adapter.
See:
SarlConstructor
Generated:
This element is generated by the SARL compiler.
createSarlContinueExpressionAdapter
def createSarlContinueExpressionAdapter : org.eclipse.emf.common.notify.Adapter
Creates a new adapter for an object of class 'Continue Expression'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.
Returns:
the new adapter.
Since:
0.7
See:
SarlContinueExpression
Generated:
This element is generated by the SARL compiler.
createSarlEnumerationAdapter
def createSarlEnumerationAdapter : org.eclipse.emf.common.notify.Adapter
Creates a new adapter for an object of class 'Enumeration'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.
Returns:
the new adapter.
See:
SarlEnumeration
Generated:
This element is generated by the SARL compiler.
createSarlEnumLiteralAdapter
def createSarlEnumLiteralAdapter : org.eclipse.emf.common.notify.Adapter
Creates a new adapter for an object of class 'Enum Literal'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.
Returns:
the new adapter.
See:
SarlEnumLiteral
Generated:
This element is generated by the SARL compiler.
createSarlEventAdapter
def createSarlEventAdapter : org.eclipse.emf.common.notify.Adapter
Creates a new adapter for an object of class 'Event'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.
Returns:
the new adapter.
See:
SarlEvent
Generated:
This element is generated by the SARL compiler.
createSarlFieldAdapter
def createSarlFieldAdapter : org.eclipse.emf.common.notify.Adapter
Creates a new adapter for an object of class 'Field'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.
Returns:
the new adapter.
See:
SarlField
Generated:
This element is generated by the SARL compiler.
createSarlFormalParameterAdapter
def createSarlFormalParameterAdapter : org.eclipse.emf.common.notify.Adapter
Creates a new adapter for an object of class 'Formal Parameter'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.
Returns:
the new adapter.
See:
SarlFormalParameter
Generated:
This element is generated by the SARL compiler.
createSarlInterfaceAdapter
def createSarlInterfaceAdapter : org.eclipse.emf.common.notify.Adapter
Creates a new adapter for an object of class 'Interface'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.
Returns:
the new adapter.
See:
SarlInterface
Generated:
This element is generated by the SARL compiler.
createSarlRequiredCapacityAdapter
def createSarlRequiredCapacityAdapter : org.eclipse.emf.common.notify.Adapter
Creates a new adapter for an object of class 'Required Capacity'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.
Returns:
the new adapter.
See:
SarlRequiredCapacity
Generated:
This element is generated by the SARL compiler.
createSarlScriptAdapter
def createSarlScriptAdapter : org.eclipse.emf.common.notify.Adapter
Creates a new adapter for an object of class 'Script'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.
Returns:
the new adapter.
See:
SarlScript
Generated:
This element is generated by the SARL compiler.
createSarlSkillAdapter
def createSarlSkillAdapter : org.eclipse.emf.common.notify.Adapter
Creates a new adapter for an object of class 'Skill'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.
Returns:
the new adapter.
See:
SarlSkill
Generated:
This element is generated by the SARL compiler.
createSarlSpaceAdapter
def createSarlSpaceAdapter : org.eclipse.emf.common.notify.Adapter
Creates a new adapter for an object of class 'Space'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.
Returns:
the new adapter.
See:
SarlSpace
Generated:
This element is generated by the SARL compiler.
createXCastedExpressionAdapter
def createXCastedExpressionAdapter : org.eclipse.emf.common.notify.Adapter
Creates a new adapter for an object of class 'XCasted Expression'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.
Returns:
the new adapter.
Since:
2.7
See:
org.eclipse.xtext.xbase.XCastedExpression
Generated:
This element is generated by the SARL compiler.
createXExpressionAdapter
def createXExpressionAdapter : org.eclipse.emf.common.notify.Adapter
Creates a new adapter for an object of class 'XExpression'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.
Returns:
the new adapter.
Since:
2.7
See:
org.eclipse.xtext.xbase.XExpression
Generated:
This element is generated by the SARL compiler.
createXtendAnnotationTargetAdapter
def createXtendAnnotationTargetAdapter : org.eclipse.emf.common.notify.Adapter
Creates a new adapter for an object of class 'Annotation Target'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.
Returns:
the new adapter.
See:
org.eclipse.xtend.core.xtend.XtendAnnotationTarget
Generated:
This element is generated by the SARL compiler.
createXtendAnnotationTypeAdapter
def createXtendAnnotationTypeAdapter : org.eclipse.emf.common.notify.Adapter
Creates a new adapter for an object of class 'Annotation Type'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.
Returns:
the new adapter.
See:
org.eclipse.xtend.core.xtend.XtendAnnotationType
Generated:
This element is generated by the SARL compiler.
createXtendClassAdapter
def createXtendClassAdapter : org.eclipse.emf.common.notify.Adapter
Creates a new adapter for an object of class 'Class'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.
Returns:
the new adapter.
See:
org.eclipse.xtend.core.xtend.XtendClass
Generated:
This element is generated by the SARL compiler.
createXtendConstructorAdapter
def createXtendConstructorAdapter : org.eclipse.emf.common.notify.Adapter
Creates a new adapter for an object of class 'Constructor'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.
Returns:
the new adapter.
See:
org.eclipse.xtend.core.xtend.XtendConstructor
Generated:
This element is generated by the SARL compiler.
createXtendEnumAdapter
def createXtendEnumAdapter : org.eclipse.emf.common.notify.Adapter
Creates a new adapter for an object of class 'Enum'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.
Returns:
the new adapter.
See:
org.eclipse.xtend.core.xtend.XtendEnum
Generated:
This element is generated by the SARL compiler.
createXtendEnumLiteralAdapter
def createXtendEnumLiteralAdapter : org.eclipse.emf.common.notify.Adapter
Creates a new adapter for an object of class 'Enum Literal'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.
Returns:
the new adapter.
See:
org.eclipse.xtend.core.xtend.XtendEnumLiteral
Generated:
This element is generated by the SARL compiler.
createXtendExecutableAdapter
def createXtendExecutableAdapter : org.eclipse.emf.common.notify.Adapter
Creates a new adapter for an object of class 'Executable'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.
Returns:
the new adapter.
See:
org.eclipse.xtend.core.xtend.XtendExecutable
Generated:
This element is generated by the SARL compiler.
createXtendFieldAdapter
def createXtendFieldAdapter : org.eclipse.emf.common.notify.Adapter
Creates a new adapter for an object of class 'Field'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.
Returns:
the new adapter.
See:
org.eclipse.xtend.core.xtend.XtendField
Generated:
This element is generated by the SARL compiler.
createXtendFileAdapter
def createXtendFileAdapter : org.eclipse.emf.common.notify.Adapter
Creates a new adapter for an object of class 'File'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.
Returns:
the new adapter.
See:
org.eclipse.xtend.core.xtend.XtendFile
Generated:
This element is generated by the SARL compiler.
createXtendFunctionAdapter
def createXtendFunctionAdapter : org.eclipse.emf.common.notify.Adapter
Creates a new adapter for an object of class 'Function'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.
Returns:
the new adapter.
See:
org.eclipse.xtend.core.xtend.XtendFunction
Generated:
This element is generated by the SARL compiler.
createXtendInterfaceAdapter
def createXtendInterfaceAdapter : org.eclipse.emf.common.notify.Adapter
Creates a new adapter for an object of class 'Interface'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.
Returns:
the new adapter.
See:
org.eclipse.xtend.core.xtend.XtendInterface
Generated:
This element is generated by the SARL compiler.
createXtendMemberAdapter
def createXtendMemberAdapter : org.eclipse.emf.common.notify.Adapter
Creates a new adapter for an object of class 'Member'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.
Returns:
the new adapter.
See:
org.eclipse.xtend.core.xtend.XtendMember
Generated:
This element is generated by the SARL compiler.
createXtendParameterAdapter
def createXtendParameterAdapter : org.eclipse.emf.common.notify.Adapter
Creates a new adapter for an object of class 'Parameter'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.
Returns:
the new adapter.
See:
org.eclipse.xtend.core.xtend.XtendParameter
Generated:
This element is generated by the SARL compiler.
createXtendTypeDeclarationAdapter
def createXtendTypeDeclarationAdapter : org.eclipse.emf.common.notify.Adapter
Creates a new adapter for an object of class 'Type Declaration'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.
Returns:
the new adapter.
See:
org.eclipse.xtend.core.xtend.XtendTypeDeclaration
Generated:
This element is generated by the SARL compiler.
isFactoryForType(Object)
def isFactoryForType(Object) : boolean
Returns whether this factory is applicable for the type of the object. This implementation returns true if the object is either the model's package or is an instance object of the model.
Returns:
whether this factory is applicable for the type of the object.
Generated:
This element is generated by the SARL compiler.