Class PrologAdapterFactory
- java.lang.Object
-
- org.eclipse.emf.common.notify.impl.AdapterFactoryImpl
-
- org.palladiosimulator.supporting.prolog.model.prolog.util.PrologAdapterFactory
-
- All Implemented Interfaces:
AdapterFactory
- Direct Known Subclasses:
PrologItemProviderAdapterFactory
public class PrologAdapterFactory extends AdapterFactoryImpl
The Adapter Factory for the model. It provides an adaptercreateXXX
method for each class of the model.- See Also:
PrologPackage
- Generated class or method.
-
-
Field Summary
Fields Modifier and Type Field Description protected static PrologPackage
modelPackage
The cached model package.protected PrologSwitch<Adapter>
modelSwitch
The switch that delegates to thecreateXXX
methods.
-
Constructor Summary
Constructors Constructor Description PrologAdapterFactory()
Creates an instance of the adapter factory.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Adapter
createAdapter(Notifier target)
Creates an adapter for thetarget
.Adapter
createAtomicDoubleAdapter()
Creates a new adapter for an object of class 'Atomic Double
'.Adapter
createAtomicNumberAdapter()
Creates a new adapter for an object of class 'Atomic Number
'.Adapter
createAtomicQuotedStringAdapter()
Creates a new adapter for an object of class 'Atomic Quoted String
'.Adapter
createClauseAdapter()
Creates a new adapter for an object of class 'Clause
'.Adapter
createCommentAdapter()
Creates a new adapter for an object of class 'Comment
'.Adapter
createCompoundTermAdapter()
Creates a new adapter for an object of class 'Compound Term
'.Adapter
createControlPredicateAdapter()
Creates a new adapter for an object of class 'Control Predicate
'.Adapter
createCutAdapter()
Creates a new adapter for an object of class 'Cut
'.Adapter
createEObjectAdapter()
Creates a new adapter for the default case.Adapter
createExpressionAdapter()
Creates a new adapter for an object of class 'Expression
'.Adapter
createFactAdapter()
Creates a new adapter for an object of class 'Fact
'.Adapter
createFailAdapter()
Creates a new adapter for an object of class 'Fail
'.Adapter
createFalseAdapter()
Creates a new adapter for an object of class 'False
'.Adapter
createListAdapter()
Creates a new adapter for an object of class 'List
'.Adapter
createProgramAdapter()
Creates a new adapter for an object of class 'Program
'.Adapter
createRuleAdapter()
Creates a new adapter for an object of class 'Rule
'.Adapter
createTermAdapter()
Creates a new adapter for an object of class 'Term
'.Adapter
createTrueAdapter()
Creates a new adapter for an object of class 'True
'.boolean
isFactoryForType(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
-
-
-
-
Field Detail
-
modelPackage
protected static PrologPackage modelPackage
The cached model package.- Generated class or method.
-
modelSwitch
protected PrologSwitch<Adapter> modelSwitch
The switch that delegates to thecreateXXX
methods.- Generated class or method.
-
-
Method Detail
-
isFactoryForType
public boolean isFactoryForType(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 interfaceAdapterFactory
- Overrides:
isFactoryForType
in classAdapterFactoryImpl
- Returns:
- whether this factory is applicable for the type of the object.
- Generated class or method.
-
createAdapter
public Adapter createAdapter(Notifier target)
Creates an adapter for thetarget
.- Overrides:
createAdapter
in classAdapterFactoryImpl
- Parameters:
target
- the object to adapt.- Returns:
- the adapter for the
target
. - Generated class or method.
-
createProgramAdapter
public Adapter createProgramAdapter()
Creates a new adapter for an object of class 'Program
'. 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:
Program
- Generated class or method.
-
createClauseAdapter
public Adapter createClauseAdapter()
Creates a new adapter for an object of class 'Clause
'. 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:
Clause
- Generated class or method.
-
createCommentAdapter
public Adapter createCommentAdapter()
Creates a new adapter for an object of class 'Comment
'. 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:
Comment
- Generated class or method.
-
createTermAdapter
public Adapter createTermAdapter()
Creates a new adapter for an object of class 'Term
'. 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:
Term
- Generated class or method.
-
createCompoundTermAdapter
public Adapter createCompoundTermAdapter()
Creates a new adapter for an object of class 'Compound Term
'. 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:
CompoundTerm
- Generated class or method.
-
createAtomicNumberAdapter
public Adapter createAtomicNumberAdapter()
Creates a new adapter for an object of class 'Atomic Number
'. 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:
AtomicNumber
- Generated class or method.
-
createAtomicDoubleAdapter
public Adapter createAtomicDoubleAdapter()
Creates a new adapter for an object of class 'Atomic Double
'. 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:
AtomicDouble
- Generated class or method.
-
createAtomicQuotedStringAdapter
public Adapter createAtomicQuotedStringAdapter()
Creates a new adapter for an object of class 'Atomic Quoted String
'. 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:
AtomicQuotedString
- Generated class or method.
-
createListAdapter
public Adapter createListAdapter()
Creates a new adapter for an object of class 'List
'. 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:
List
- Generated class or method.
-
createFactAdapter
public Adapter createFactAdapter()
Creates a new adapter for an object of class 'Fact
'. 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:
Fact
- Generated class or method.
-
createRuleAdapter
public Adapter createRuleAdapter()
Creates a new adapter for an object of class 'Rule
'. 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:
Rule
- Generated class or method.
-
createControlPredicateAdapter
public Adapter createControlPredicateAdapter()
Creates a new adapter for an object of class 'Control Predicate
'. 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:
ControlPredicate
- Generated class or method.
-
createTrueAdapter
public Adapter createTrueAdapter()
Creates a new adapter for an object of class 'True
'. 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:
True
- Generated class or method.
-
createFalseAdapter
public Adapter createFalseAdapter()
Creates a new adapter for an object of class 'False
'. 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:
False
- Generated class or method.
-
createFailAdapter
public Adapter createFailAdapter()
Creates a new adapter for an object of class 'Fail
'. 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:
Fail
- Generated class or method.
-
createCutAdapter
public Adapter createCutAdapter()
Creates a new adapter for an object of class 'Cut
'. 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:
Cut
- Generated class or method.
-
createExpressionAdapter
public Adapter createExpressionAdapter()
Creates a new adapter for an object of class '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.
- See Also:
Expression
- Generated class or method.
-
createEObjectAdapter
public Adapter createEObjectAdapter()
Creates a new adapter for the default case. This default implementation returns null.- Returns:
- the new adapter.
- Generated class or method.
-
-