Package ca.ubc.stat.blang.blangDsl.util
Class BlangDslAdapterFactory
java.lang.Object
org.eclipse.emf.common.notify.impl.AdapterFactoryImpl
ca.ubc.stat.blang.blangDsl.util.BlangDslAdapterFactory
- All Implemented Interfaces:
org.eclipse.emf.common.notify.AdapterFactory
public class BlangDslAdapterFactory
extends org.eclipse.emf.common.notify.impl.AdapterFactoryImpl
The Adapter Factory for the model.
It provides an adapter
createXXX
method for each class of the model.
- See Also:
BlangDslPackage
-
Field Summary
Fields Modifier and Type Field Description protected static BlangDslPackage
modelPackage
The cached model package.protected BlangDslSwitch<org.eclipse.emf.common.notify.Adapter>
modelSwitch
The switch that delegates to thecreateXXX
methods. -
Constructor Summary
Constructors Constructor Description BlangDslAdapterFactory()
Creates an instance of the adapter factory. -
Method Summary
Modifier and Type Method Description org.eclipse.emf.common.notify.Adapter
createAdapter(org.eclipse.emf.common.notify.Notifier target)
Creates an adapter for thetarget
.org.eclipse.emf.common.notify.Adapter
createBlangDistAdapter()
Creates a new adapter for an object of class 'Blang Dist
'.org.eclipse.emf.common.notify.Adapter
createBlangModelAdapter()
Creates a new adapter for an object of class 'Blang Model
'.org.eclipse.emf.common.notify.Adapter
createDependencyAdapter()
Creates a new adapter for an object of class 'Dependency
'.org.eclipse.emf.common.notify.Adapter
createDistributionTypeSpecificationAdapter()
Creates a new adapter for an object of class 'Distribution Type Specification
'.org.eclipse.emf.common.notify.Adapter
createEObjectAdapter()
Creates a new adapter for the default case.org.eclipse.emf.common.notify.Adapter
createFactorDeclarationAdapter()
Creates a new adapter for an object of class 'Factor Declaration
'.org.eclipse.emf.common.notify.Adapter
createForLoopAdapter()
Creates a new adapter for an object of class 'For Loop
'.org.eclipse.emf.common.notify.Adapter
createIfElseAdapter()
Creates a new adapter for an object of class 'If Else
'.org.eclipse.emf.common.notify.Adapter
createInitializerDependencyAdapter()
Creates a new adapter for an object of class 'Initializer Dependency
'.org.eclipse.emf.common.notify.Adapter
createInstantiatedDistributionAdapter()
Creates a new adapter for an object of class 'Instantiated Distribution
'.org.eclipse.emf.common.notify.Adapter
createJavaDistAdapter()
Creates a new adapter for an object of class 'Java Dist
'.org.eclipse.emf.common.notify.Adapter
createLawNodeAdapter()
Creates a new adapter for an object of class 'Law Node
'.org.eclipse.emf.common.notify.Adapter
createLogScaleFactorDeclarationAdapter()
Creates a new adapter for an object of class 'Log Scale Factor Declaration
'.org.eclipse.emf.common.notify.Adapter
createSimpleDependencyAdapter()
Creates a new adapter for an object of class 'Simple Dependency
'.org.eclipse.emf.common.notify.Adapter
createVariableDeclarationAdapter()
Creates a new adapter for an object of class 'Variable Declaration
'.org.eclipse.emf.common.notify.Adapter
createVariableDeclarationComponentAdapter()
Creates a new adapter for an object of class 'Variable Declaration Component
'.org.eclipse.emf.common.notify.Adapter
createVariableNameAdapter()
Creates a new adapter for an object of class 'Variable Name
'.boolean
isFactoryForType(java.lang.Object object)
Returns whether this factory is applicable for the type of the object.Methods inherited from class org.eclipse.emf.common.notify.impl.AdapterFactoryImpl
adapt, adapt, adaptAllNew, adaptNew, associate, createAdapter, resolve
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
modelPackage
The cached model package. -
modelSwitch
The switch that delegates to thecreateXXX
methods.
-
-
Constructor Details
-
BlangDslAdapterFactory
public BlangDslAdapterFactory()Creates an instance of the adapter factory.
-
-
Method Details
-
isFactoryForType
public boolean isFactoryForType(java.lang.Object object)Returns whether this factory is applicable for the type of the object. This implementation returnstrue
if the object is either the model's package or is an instance object of the model.- Specified by:
isFactoryForType
in interfaceorg.eclipse.emf.common.notify.AdapterFactory
- Overrides:
isFactoryForType
in classorg.eclipse.emf.common.notify.impl.AdapterFactoryImpl
- Returns:
- whether this factory is applicable for the type of the object.
-
createAdapter
public org.eclipse.emf.common.notify.Adapter createAdapter(org.eclipse.emf.common.notify.Notifier target)Creates an adapter for thetarget
.- Overrides:
createAdapter
in classorg.eclipse.emf.common.notify.impl.AdapterFactoryImpl
- Parameters:
target
- the object to adapt.- Returns:
- the adapter for the
target
.
-
createBlangModelAdapter
public org.eclipse.emf.common.notify.Adapter createBlangModelAdapter()Creates a new adapter for an object of class 'Blang Model
'. 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 Also:
BlangModel
-
createVariableDeclarationAdapter
public org.eclipse.emf.common.notify.Adapter createVariableDeclarationAdapter()Creates a new adapter for an object of class 'Variable 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 Also:
VariableDeclaration
-
createVariableNameAdapter
public org.eclipse.emf.common.notify.Adapter createVariableNameAdapter()Creates a new adapter for an object of class 'Variable Name
'. 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 Also:
VariableName
-
createVariableDeclarationComponentAdapter
public org.eclipse.emf.common.notify.Adapter createVariableDeclarationComponentAdapter()Creates a new adapter for an object of class 'Variable Declaration Component
'. 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 Also:
VariableDeclarationComponent
-
createLawNodeAdapter
public org.eclipse.emf.common.notify.Adapter createLawNodeAdapter()Creates a new adapter for an object of class 'Law Node
'. 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 Also:
LawNode
-
createLogScaleFactorDeclarationAdapter
public org.eclipse.emf.common.notify.Adapter createLogScaleFactorDeclarationAdapter()Creates a new adapter for an object of class 'Log Scale Factor 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 Also:
LogScaleFactorDeclaration
-
createForLoopAdapter
public org.eclipse.emf.common.notify.Adapter createForLoopAdapter()Creates a new adapter for an object of class 'For Loop
'. 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 Also:
ForLoop
-
createIfElseAdapter
public org.eclipse.emf.common.notify.Adapter createIfElseAdapter()Creates a new adapter for an object of class 'If Else
'. 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 Also:
IfElse
-
createFactorDeclarationAdapter
public org.eclipse.emf.common.notify.Adapter createFactorDeclarationAdapter()Creates a new adapter for an object of class 'Factor 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 Also:
FactorDeclaration
-
createInstantiatedDistributionAdapter
public org.eclipse.emf.common.notify.Adapter createInstantiatedDistributionAdapter()Creates a new adapter for an object of class 'Instantiated Distribution
'. 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 Also:
InstantiatedDistribution
-
createDistributionTypeSpecificationAdapter
public org.eclipse.emf.common.notify.Adapter createDistributionTypeSpecificationAdapter()Creates a new adapter for an object of class 'Distribution Type Specification
'. 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 Also:
DistributionTypeSpecification
-
createBlangDistAdapter
public org.eclipse.emf.common.notify.Adapter createBlangDistAdapter()Creates a new adapter for an object of class 'Blang Dist
'. 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 Also:
BlangDist
-
createJavaDistAdapter
public org.eclipse.emf.common.notify.Adapter createJavaDistAdapter()Creates a new adapter for an object of class 'Java Dist
'. 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 Also:
JavaDist
-
createDependencyAdapter
public org.eclipse.emf.common.notify.Adapter createDependencyAdapter()Creates a new adapter for an object of class 'Dependency
'. 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 Also:
Dependency
-
createInitializerDependencyAdapter
public org.eclipse.emf.common.notify.Adapter createInitializerDependencyAdapter()Creates a new adapter for an object of class 'Initializer Dependency
'. 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 Also:
InitializerDependency
-
createSimpleDependencyAdapter
public org.eclipse.emf.common.notify.Adapter createSimpleDependencyAdapter()Creates a new adapter for an object of class 'Simple Dependency
'. 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 Also:
SimpleDependency
-
createEObjectAdapter
public org.eclipse.emf.common.notify.Adapter createEObjectAdapter()Creates a new adapter for the default case. This default implementation returns null.- Returns:
- the new adapter.
-