ujf.verimag.bip.cmodel.util
Class CmodelAdapterFactory

java.lang.Object
  extended by AdapterFactoryImpl
      extended by ujf.verimag.bip.cmodel.util.CmodelAdapterFactory

public class CmodelAdapterFactory
extends AdapterFactoryImpl

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

See Also:
CmodelPackage

Field Summary
protected static CmodelPackage modelPackage
          The cached model package.
protected  CmodelSwitch modelSwitch
          The switch that delegates to the createXXX methods.
 
Constructor Summary
CmodelAdapterFactory()
          Creates an instance of the adapter factory.
 
Method Summary
 Adapter createAdapter(Notifier target)
          Creates an adapter for the target.
 Adapter createCArgumentAdapter()
          Creates a new adapter for an object of class 'CArgument'.
 Adapter createCAssignStmAdapter()
          Creates a new adapter for an object of class 'CAssign Stm'.
 Adapter createCBlockAdapter()
          Creates a new adapter for an object of class 'CBlock'.
 Adapter createCBlockStmAdapter()
          Creates a new adapter for an object of class 'CBlock Stm'.
 Adapter createCBodyItemAdapter()
          Creates a new adapter for an object of class 'CBody Item'.
 Adapter createCCallableAdapter()
          Creates a new adapter for an object of class 'CCallable'.
 Adapter createCCallAdapter()
          Creates a new adapter for an object of class 'CCall'.
 Adapter createCCaseItemAdapter()
          Creates a new adapter for an object of class 'CCase Item'.
 Adapter createCClassAdapter()
          Creates a new adapter for an object of class 'CClass'.
 Adapter createCConditionalExpressionAdapter()
          Creates a new adapter for an object of class 'CConditional Expression'.
 Adapter createCConditionalStmAdapter()
          Creates a new adapter for an object of class 'CConditional Stm'.
 Adapter createCConstructorAdapter()
          Creates a new adapter for an object of class 'CConstructor'.
 Adapter createCCreatorAdapter()
          Creates a new adapter for an object of class 'CCreator'.
 Adapter createCDataAdapter()
          Creates a new adapter for an object of class 'CData'.
 Adapter createCEnumTypeAdapter()
          Creates a new adapter for an object of class 'CEnum Type'.
 Adapter createCExpressionAdapter()
          Creates a new adapter for an object of class 'CExpression'.
 Adapter createCForAdapter()
          Creates a new adapter for an object of class 'CFor'.
 Adapter createCFunctionAdapter()
          Creates a new adapter for an object of class 'CFunction'.
 Adapter createCFunctionCallAdapter()
          Creates a new adapter for an object of class 'CFunction Call'.
 Adapter createCHeaderTextAdapter()
          Creates a new adapter for an object of class 'CHeader Text'.
 Adapter createCHierarchyAdapter()
          Creates a new adapter for an object of class 'CHierarchy'.
 Adapter createCIfStmAdapter()
          Creates a new adapter for an object of class 'CIf Stm'.
 Adapter createCIncludeAdapter()
          Creates a new adapter for an object of class 'CInclude'.
 Adapter createCIndexedAdapter()
          Creates a new adapter for an object of class 'CIndexed'.
 Adapter createCInitializationAdapter()
          Creates a new adapter for an object of class 'CInitialization'.
 Adapter createCInitParameterAdapter()
          Creates a new adapter for an object of class 'CInit Parameter'.
 Adapter createCItemAdapter()
          Creates a new adapter for an object of class 'CItem'.
 Adapter createCJumpAdapter()
          Creates a new adapter for an object of class 'CJump'.
 Adapter createCLiteralAdapter()
          Creates a new adapter for an object of class 'CLiteral'.
 Adapter createCModuleAdapter()
          Creates a new adapter for an object of class 'CModule'.
 Adapter createCNavigationAdapter()
          Creates a new adapter for an object of class 'CNavigation'.
 Adapter createCOperationAdapter()
          Creates a new adapter for an object of class 'COperation'.
 Adapter createCPointedAdapter()
          Creates a new adapter for an object of class 'CPointed'.
 Adapter createCReturnAdapter()
          Creates a new adapter for an object of class 'CReturn'.
 Adapter createCSimpleNameAdapter()
          Creates a new adapter for an object of class 'CSimple Name'.
 Adapter createCStmAdapter()
          Creates a new adapter for an object of class 'CStm'.
 Adapter createCStructuredAdapter()
          Creates a new adapter for an object of class 'CStructured'.
 Adapter createCSwitchStmAdapter()
          Creates a new adapter for an object of class 'CSwitch Stm'.
 Adapter createCTextAdapter()
          Creates a new adapter for an object of class 'CText'.
 Adapter createCTypeConvertionAdapter()
          Creates a new adapter for an object of class 'CType Convertion'.
 Adapter createCTypedElementAdapter()
          Creates a new adapter for an object of class 'CTyped Element'.
 Adapter createCWhileStmAdapter()
          Creates a new adapter for an object of class 'CWhile Stm'.
 Adapter createEObjectAdapter()
          Creates a new adapter for the default case.
 boolean isFactoryForType(java.lang.Object object)
          Returns whether this factory is applicable for the type of the object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

modelPackage

protected static CmodelPackage modelPackage
The cached model package.


modelSwitch

protected CmodelSwitch modelSwitch
The switch that delegates to the createXXX methods.

Constructor Detail

CmodelAdapterFactory

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

Method Detail

isFactoryForType

public boolean isFactoryForType(java.lang.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.

Returns:
whether this factory is applicable for the type of the object.

createAdapter

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

Parameters:
target - the object to adapt.
Returns:
the adapter for the target.

createCStmAdapter

public Adapter createCStmAdapter()
Creates a new adapter for an object of class 'CStm'. 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:
CStm

createCBlockAdapter

public Adapter createCBlockAdapter()
Creates a new adapter for an object of class 'CBlock'. 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:
CBlock

createCConditionalStmAdapter

public Adapter createCConditionalStmAdapter()
Creates a new adapter for an object of class 'CConditional Stm'. 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:
CConditionalStm

createCSwitchStmAdapter

public Adapter createCSwitchStmAdapter()
Creates a new adapter for an object of class 'CSwitch Stm'. 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:
CSwitchStm

createCWhileStmAdapter

public Adapter createCWhileStmAdapter()
Creates a new adapter for an object of class 'CWhile Stm'. 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:
CWhileStm

createCIfStmAdapter

public Adapter createCIfStmAdapter()
Creates a new adapter for an object of class 'CIf Stm'. 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:
CIfStm

createCExpressionAdapter

public Adapter createCExpressionAdapter()
Creates a new adapter for an object of class 'CExpression'. 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:
CExpression

createCCaseItemAdapter

public Adapter createCCaseItemAdapter()
Creates a new adapter for an object of class 'CCase Item'. 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:
CCaseItem

createCJumpAdapter

public Adapter createCJumpAdapter()
Creates a new adapter for an object of class 'CJump'. 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:
CJump

createCCallAdapter

public Adapter createCCallAdapter()
Creates a new adapter for an object of class 'CCall'. 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:
CCall

createCAssignStmAdapter

public Adapter createCAssignStmAdapter()
Creates a new adapter for an object of class 'CAssign Stm'. 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:
CAssignStm

createCFunctionCallAdapter

public Adapter createCFunctionCallAdapter()
Creates a new adapter for an object of class 'CFunction Call'. 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:
CFunctionCall

createCCreatorAdapter

public Adapter createCCreatorAdapter()
Creates a new adapter for an object of class 'CCreator'. 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:
CCreator

createCTypedElementAdapter

public Adapter createCTypedElementAdapter()
Creates a new adapter for an object of class 'CTyped Element'. 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:
CTypedElement

createCOperationAdapter

public Adapter createCOperationAdapter()
Creates a new adapter for an object of class 'COperation'. 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:
COperation

createCTypeConvertionAdapter

public Adapter createCTypeConvertionAdapter()
Creates a new adapter for an object of class 'CType Convertion'. 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:
CTypeConvertion

createCHierarchyAdapter

public Adapter createCHierarchyAdapter()
Creates a new adapter for an object of class 'CHierarchy'. 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:
CHierarchy

createCSimpleNameAdapter

public Adapter createCSimpleNameAdapter()
Creates a new adapter for an object of class 'CSimple 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:
CSimpleName

createCIndexedAdapter

public Adapter createCIndexedAdapter()
Creates a new adapter for an object of class 'CIndexed'. 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:
CIndexed

createCStructuredAdapter

public Adapter createCStructuredAdapter()
Creates a new adapter for an object of class 'CStructured'. 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:
CStructured

createCPointedAdapter

public Adapter createCPointedAdapter()
Creates a new adapter for an object of class 'CPointed'. 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:
CPointed

createCLiteralAdapter

public Adapter createCLiteralAdapter()
Creates a new adapter for an object of class 'CLiteral'. 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:
CLiteral

createCModuleAdapter

public Adapter createCModuleAdapter()
Creates a new adapter for an object of class 'CModule'. 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:
CModule

createCIncludeAdapter

public Adapter createCIncludeAdapter()
Creates a new adapter for an object of class 'CInclude'. 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:
CInclude

createCEnumTypeAdapter

public Adapter createCEnumTypeAdapter()
Creates a new adapter for an object of class 'CEnum 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 Also:
CEnumType

createCClassAdapter

public Adapter createCClassAdapter()
Creates a new adapter for an object of class 'CClass'. 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:
CClass

createCCallableAdapter

public Adapter createCCallableAdapter()
Creates a new adapter for an object of class 'CCallable'. 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:
CCallable

createCDataAdapter

public Adapter createCDataAdapter()
Creates a new adapter for an object of class 'CData'. 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:
CData

createCArgumentAdapter

public Adapter createCArgumentAdapter()
Creates a new adapter for an object of class 'CArgument'. 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:
CArgument

createCInitParameterAdapter

public Adapter createCInitParameterAdapter()
Creates a new adapter for an object of class 'CInit 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 Also:
CInitParameter

createCFunctionAdapter

public Adapter createCFunctionAdapter()
Creates a new adapter for an object of class 'CFunction'. 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:
CFunction

createCConstructorAdapter

public Adapter createCConstructorAdapter()
Creates a new adapter for an object of class 'CConstructor'. 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:
CConstructor

createCItemAdapter

public Adapter createCItemAdapter()
Creates a new adapter for an object of class 'CItem'. 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:
CItem

createCTextAdapter

public Adapter createCTextAdapter()
Creates a new adapter for an object of class 'CText'. 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:
CText

createCBodyItemAdapter

public Adapter createCBodyItemAdapter()
Creates a new adapter for an object of class 'CBody Item'. 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:
CBodyItem

createCBlockStmAdapter

public Adapter createCBlockStmAdapter()
Creates a new adapter for an object of class 'CBlock Stm'. 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:
CBlockStm

createCNavigationAdapter

public Adapter createCNavigationAdapter()
Creates a new adapter for an object of class 'CNavigation'. 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:
CNavigation

createCReturnAdapter

public Adapter createCReturnAdapter()
Creates a new adapter for an object of class 'CReturn'. 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:
CReturn

createCInitializationAdapter

public Adapter createCInitializationAdapter()
Creates a new adapter for an object of class 'CInitialization'. 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:
CInitialization

createCForAdapter

public Adapter createCForAdapter()
Creates a new adapter for an object of class 'CFor'. 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:
CFor

createCConditionalExpressionAdapter

public Adapter createCConditionalExpressionAdapter()
Creates a new adapter for an object of class 'CConditional 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:
CConditionalExpression

createCHeaderTextAdapter

public Adapter createCHeaderTextAdapter()
Creates a new adapter for an object of class 'CHeader Text'. 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:
CHeaderText

createEObjectAdapter

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

Returns:
the new adapter.