de.cau.cs.kieler.krep.editors.klp.klp.util
Class KlpAdapterFactory

java.lang.Object
  extended by org.eclipse.emf.common.notify.impl.AdapterFactoryImpl
      extended by de.cau.cs.kieler.krep.editors.klp.klp.util.KlpAdapterFactory
All Implemented Interfaces:
AdapterFactory

public class KlpAdapterFactory
extends AdapterFactoryImpl

The Adapter Factory for the model. It provides an adapter createXXX method for each class of the model.

See Also:
KlpPackage
Rating red
Generated:
This code was automatically generated.

Field Summary
protected static KlpPackage modelPackage
          The cached model package.
protected  KlpSwitch<Adapter> modelSwitch
          The switch that delegates to the createXXX methods.
 
Constructor Summary
KlpAdapterFactory()
          Creates an instance of the adapter factory.
 
Method Summary
 Adapter createAdapter(Notifier target)
          Creates an adapter for the target.
 Adapter createBinopAdapter()
          Creates a new adapter for an object of class 'Binop'.
 Adapter createCJmpAdapter()
          Creates a new adapter for an object of class 'CJmp'.
 Adapter createDeclAdapter()
          Creates a new adapter for an object of class 'Decl'.
 Adapter createDoneAdapter()
          Creates a new adapter for an object of class 'Done'.
 Adapter createEObjectAdapter()
          Creates a new adapter for the default case.
 Adapter createInstructionAdapter()
          Creates a new adapter for an object of class 'Instruction'.
 Adapter createJmpAdapter()
          Creates a new adapter for an object of class 'Jmp'.
 Adapter createKLPAdapter()
          Creates a new adapter for an object of class 'KLP'.
 Adapter createLabelAdapter()
          Creates a new adapter for an object of class 'Label'.
 Adapter createLineAdapter()
          Creates a new adapter for an object of class 'Line'.
 Adapter createMoveAdapter()
          Creates a new adapter for an object of class 'Move'.
 Adapter createPrioAdapter()
          Creates a new adapter for an object of class 'Prio'.
 Adapter createReadAdapter()
          Creates a new adapter for an object of class 'Read'.
 Adapter createRegAdapter()
          Creates a new adapter for an object of class 'Reg'.
 Adapter createSetClkAdapter()
          Creates a new adapter for an object of class 'Set Clk'.
 Adapter createSetPCAdapter()
          Creates a new adapter for an object of class 'Set PC'.
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

modelPackage

protected static KlpPackage modelPackage
The cached model package.

Generated:
This code was automatically generated.

modelSwitch

protected KlpSwitch<Adapter> modelSwitch
The switch that delegates to the createXXX methods.

Generated:
This code was automatically generated.
Constructor Detail

KlpAdapterFactory

public KlpAdapterFactory()
Creates an instance of the adapter factory.

Generated:
This code was automatically generated.
Method Detail

isFactoryForType

public boolean isFactoryForType(Object object)
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.

Specified by:
isFactoryForType in interface AdapterFactory
Overrides:
isFactoryForType in class AdapterFactoryImpl
Returns:
whether this factory is applicable for the type of the object.
Generated:
This code was automatically generated.

createAdapter

public Adapter createAdapter(Notifier target)
Creates an adapter for the target.

Overrides:
createAdapter in class AdapterFactoryImpl
Parameters:
target - the object to adapt.
Returns:
the adapter for the target.
Generated:
This code was automatically generated.

createKLPAdapter

public Adapter createKLPAdapter()
Creates a new adapter for an object of class 'KLP'. 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:
KLP
Generated:
This code was automatically generated.

createLineAdapter

public Adapter createLineAdapter()
Creates a new adapter for an object of class 'Line'. 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:
Line
Generated:
This code was automatically generated.

createInstructionAdapter

public Adapter createInstructionAdapter()
Creates a new adapter for an object of class 'Instruction'. 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:
Instruction
Generated:
This code was automatically generated.

createDeclAdapter

public Adapter createDeclAdapter()
Creates a new adapter for an object of class 'Decl'. 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:
Decl
Generated:
This code was automatically generated.

createSetClkAdapter

public Adapter createSetClkAdapter()
Creates a new adapter for an object of class 'Set Clk'. 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:
SetClk
Generated:
This code was automatically generated.

createSetPCAdapter

public Adapter createSetPCAdapter()
Creates a new adapter for an object of class 'Set PC'. 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:
SetPC
Generated:
This code was automatically generated.

createPrioAdapter

public Adapter createPrioAdapter()
Creates a new adapter for an object of class 'Prio'. 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:
Prio
Generated:
This code was automatically generated.

createDoneAdapter

public Adapter createDoneAdapter()
Creates a new adapter for an object of class 'Done'. 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:
Done
Generated:
This code was automatically generated.

createBinopAdapter

public Adapter createBinopAdapter()
Creates a new adapter for an object of class 'Binop'. 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:
Binop
Generated:
This code was automatically generated.

createJmpAdapter

public Adapter createJmpAdapter()
Creates a new adapter for an object of class 'Jmp'. 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:
Jmp
Generated:
This code was automatically generated.

createCJmpAdapter

public Adapter createCJmpAdapter()
Creates a new adapter for an object of class 'CJmp'. 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:
CJmp
Generated:
This code was automatically generated.

createMoveAdapter

public Adapter createMoveAdapter()
Creates a new adapter for an object of class 'Move'. 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:
Move
Generated:
This code was automatically generated.

createLabelAdapter

public Adapter createLabelAdapter()
Creates a new adapter for an object of class 'Label'. 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:
Label
Generated:
This code was automatically generated.

createRegAdapter

public Adapter createRegAdapter()
Creates a new adapter for an object of class 'Reg'. 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:
Reg
Generated:
This code was automatically generated.

createReadAdapter

public Adapter createReadAdapter()
Creates a new adapter for an object of class 'Read'. 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:
Read
Generated:
This code was automatically generated.

createEObjectAdapter

public Adapter createEObjectAdapter()
Creates a new adapter for the default case. This default implementation returns null.

Returns:
the new adapter.
Generated:
This code was automatically generated.