org.eclipse.xtext.xbase.util
Class XbaseAdapterFactory

java.lang.Object
  extended by org.eclipse.emf.common.notify.impl.AdapterFactoryImpl
      extended by org.eclipse.xtext.xbase.util.XbaseAdapterFactory
All Implemented Interfaces:
org.eclipse.emf.common.notify.AdapterFactory

public class XbaseAdapterFactory
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:
XbasePackage
EMF generated code

Field Summary
protected static XbasePackage modelPackage
          The cached model package.
protected  XbaseSwitch<org.eclipse.emf.common.notify.Adapter> modelSwitch
          The switch that delegates to the createXXX methods.
 
Constructor Summary
XbaseAdapterFactory()
          Creates an instance of the adapter factory.
 
Method Summary
 org.eclipse.emf.common.notify.Adapter createAdapter(org.eclipse.emf.common.notify.Notifier target)
          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 createJvmIdentifiableElementAdapter()
          Creates a new adapter for an object of class 'Jvm Identifiable Element'.
 org.eclipse.emf.common.notify.Adapter createXAbstractFeatureCallAdapter()
          Creates a new adapter for an object of class 'XAbstract Feature Call'.
 org.eclipse.emf.common.notify.Adapter createXAbstractWhileExpressionAdapter()
          Creates a new adapter for an object of class 'XAbstract While Expression'.
 org.eclipse.emf.common.notify.Adapter createXAssignmentAdapter()
          Creates a new adapter for an object of class 'XAssignment'.
 org.eclipse.emf.common.notify.Adapter createXBinaryOperationAdapter()
          Creates a new adapter for an object of class 'XBinary Operation'.
 org.eclipse.emf.common.notify.Adapter createXBlockExpressionAdapter()
          Creates a new adapter for an object of class 'XBlock Expression'.
 org.eclipse.emf.common.notify.Adapter createXBooleanLiteralAdapter()
          Creates a new adapter for an object of class 'XBoolean Literal'.
 org.eclipse.emf.common.notify.Adapter createXCasePartAdapter()
          Creates a new adapter for an object of class 'XCase Part'.
 org.eclipse.emf.common.notify.Adapter createXCastedExpressionAdapter()
          Creates a new adapter for an object of class 'XCasted Expression'.
 org.eclipse.emf.common.notify.Adapter createXCatchClauseAdapter()
          Creates a new adapter for an object of class 'XCatch Clause'.
 org.eclipse.emf.common.notify.Adapter createXClosureAdapter()
          Creates a new adapter for an object of class 'XClosure'.
 org.eclipse.emf.common.notify.Adapter createXConstructorCallAdapter()
          Creates a new adapter for an object of class 'XConstructor Call'.
 org.eclipse.emf.common.notify.Adapter createXDoWhileExpressionAdapter()
          Creates a new adapter for an object of class 'XDo While Expression'.
 org.eclipse.emf.common.notify.Adapter createXExpressionAdapter()
          Creates a new adapter for an object of class 'XExpression'.
 org.eclipse.emf.common.notify.Adapter createXFeatureCallAdapter()
          Creates a new adapter for an object of class 'XFeature Call'.
 org.eclipse.emf.common.notify.Adapter createXForLoopExpressionAdapter()
          Creates a new adapter for an object of class 'XFor Loop Expression'.
 org.eclipse.emf.common.notify.Adapter createXIfExpressionAdapter()
          Creates a new adapter for an object of class 'XIf Expression'.
 org.eclipse.emf.common.notify.Adapter createXInstanceOfExpressionAdapter()
          Creates a new adapter for an object of class 'XInstance Of Expression'.
 org.eclipse.emf.common.notify.Adapter createXMemberFeatureCallAdapter()
          Creates a new adapter for an object of class 'XMember Feature Call'.
 org.eclipse.emf.common.notify.Adapter createXNullLiteralAdapter()
          Creates a new adapter for an object of class 'XNull Literal'.
 org.eclipse.emf.common.notify.Adapter createXNumberLiteralAdapter()
          Creates a new adapter for an object of class 'XNumber Literal'.
 org.eclipse.emf.common.notify.Adapter createXReturnExpressionAdapter()
          Creates a new adapter for an object of class 'XReturn Expression'.
 org.eclipse.emf.common.notify.Adapter createXStringLiteralAdapter()
          Creates a new adapter for an object of class 'XString Literal'.
 org.eclipse.emf.common.notify.Adapter createXSwitchExpressionAdapter()
          Creates a new adapter for an object of class 'XSwitch Expression'.
 org.eclipse.emf.common.notify.Adapter createXThrowExpressionAdapter()
          Creates a new adapter for an object of class 'XThrow Expression'.
 org.eclipse.emf.common.notify.Adapter createXTryCatchFinallyExpressionAdapter()
          Creates a new adapter for an object of class 'XTry Catch Finally Expression'.
 org.eclipse.emf.common.notify.Adapter createXTypeLiteralAdapter()
          Creates a new adapter for an object of class 'XType Literal'.
 org.eclipse.emf.common.notify.Adapter createXUnaryOperationAdapter()
          Creates a new adapter for an object of class 'XUnary Operation'.
 org.eclipse.emf.common.notify.Adapter createXVariableDeclarationAdapter()
          Creates a new adapter for an object of class 'XVariable Declaration'.
 org.eclipse.emf.common.notify.Adapter createXWhileExpressionAdapter()
          Creates a new adapter for an object of class 'XWhile Expression'.
 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 Detail

modelPackage

protected static XbasePackage modelPackage
The cached model package.

EMF generated code

modelSwitch

protected XbaseSwitch<org.eclipse.emf.common.notify.Adapter> modelSwitch
The switch that delegates to the createXXX methods.

EMF generated code
Constructor Detail

XbaseAdapterFactory

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

EMF generated code
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.

Specified by:
isFactoryForType in interface org.eclipse.emf.common.notify.AdapterFactory
Overrides:
isFactoryForType in class org.eclipse.emf.common.notify.impl.AdapterFactoryImpl
Returns:
whether this factory is applicable for the type of the object.
EMF generated code

createAdapter

public org.eclipse.emf.common.notify.Adapter createAdapter(org.eclipse.emf.common.notify.Notifier target)
Creates an adapter for the target.

Overrides:
createAdapter in class org.eclipse.emf.common.notify.impl.AdapterFactoryImpl
Parameters:
target - the object to adapt.
Returns:
the adapter for the target.
EMF generated code

createXExpressionAdapter

public org.eclipse.emf.common.notify.Adapter createXExpressionAdapter()
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.
See Also:
XExpression
EMF generated code

createXIfExpressionAdapter

public org.eclipse.emf.common.notify.Adapter createXIfExpressionAdapter()
Creates a new adapter for an object of class 'XIf 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:
XIfExpression
EMF generated code

createXSwitchExpressionAdapter

public org.eclipse.emf.common.notify.Adapter createXSwitchExpressionAdapter()
Creates a new adapter for an object of class 'XSwitch 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:
XSwitchExpression
EMF generated code

createXCasePartAdapter

public org.eclipse.emf.common.notify.Adapter createXCasePartAdapter()
Creates a new adapter for an object of class 'XCase Part'. 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:
XCasePart
EMF generated code

createXBlockExpressionAdapter

public org.eclipse.emf.common.notify.Adapter createXBlockExpressionAdapter()
Creates a new adapter for an object of class 'XBlock 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:
XBlockExpression
EMF generated code

createXVariableDeclarationAdapter

public org.eclipse.emf.common.notify.Adapter createXVariableDeclarationAdapter()
Creates a new adapter for an object of class 'XVariable 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:
XVariableDeclaration
EMF generated code

createXAbstractFeatureCallAdapter

public org.eclipse.emf.common.notify.Adapter createXAbstractFeatureCallAdapter()
Creates a new adapter for an object of class 'XAbstract Feature 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:
XAbstractFeatureCall
EMF generated code

createXMemberFeatureCallAdapter

public org.eclipse.emf.common.notify.Adapter createXMemberFeatureCallAdapter()
Creates a new adapter for an object of class 'XMember Feature 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:
XMemberFeatureCall
EMF generated code

createXFeatureCallAdapter

public org.eclipse.emf.common.notify.Adapter createXFeatureCallAdapter()
Creates a new adapter for an object of class 'XFeature 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:
XFeatureCall
EMF generated code

createXConstructorCallAdapter

public org.eclipse.emf.common.notify.Adapter createXConstructorCallAdapter()
Creates a new adapter for an object of class 'XConstructor 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:
XConstructorCall
EMF generated code

createXBooleanLiteralAdapter

public org.eclipse.emf.common.notify.Adapter createXBooleanLiteralAdapter()
Creates a new adapter for an object of class 'XBoolean 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 Also:
XBooleanLiteral
EMF generated code

createXNullLiteralAdapter

public org.eclipse.emf.common.notify.Adapter createXNullLiteralAdapter()
Creates a new adapter for an object of class 'XNull 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 Also:
XNullLiteral
EMF generated code

createXNumberLiteralAdapter

public org.eclipse.emf.common.notify.Adapter createXNumberLiteralAdapter()
Creates a new adapter for an object of class 'XNumber 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 Also:
XNumberLiteral
EMF generated code

createXStringLiteralAdapter

public org.eclipse.emf.common.notify.Adapter createXStringLiteralAdapter()
Creates a new adapter for an object of class 'XString 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 Also:
XStringLiteral
EMF generated code

createXClosureAdapter

public org.eclipse.emf.common.notify.Adapter createXClosureAdapter()
Creates a new adapter for an object of class 'XClosure'. 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:
XClosure
EMF generated code

createXCastedExpressionAdapter

public org.eclipse.emf.common.notify.Adapter createXCastedExpressionAdapter()
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.
See Also:
XCastedExpression
EMF generated code

createXBinaryOperationAdapter

public org.eclipse.emf.common.notify.Adapter createXBinaryOperationAdapter()
Creates a new adapter for an object of class 'XBinary Operation'. 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:
XBinaryOperation
EMF generated code

createXUnaryOperationAdapter

public org.eclipse.emf.common.notify.Adapter createXUnaryOperationAdapter()
Creates a new adapter for an object of class 'XUnary Operation'. 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:
XUnaryOperation
EMF generated code

createXForLoopExpressionAdapter

public org.eclipse.emf.common.notify.Adapter createXForLoopExpressionAdapter()
Creates a new adapter for an object of class 'XFor Loop 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:
XForLoopExpression
EMF generated code

createXAbstractWhileExpressionAdapter

public org.eclipse.emf.common.notify.Adapter createXAbstractWhileExpressionAdapter()
Creates a new adapter for an object of class 'XAbstract While 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:
XAbstractWhileExpression
EMF generated code

createXDoWhileExpressionAdapter

public org.eclipse.emf.common.notify.Adapter createXDoWhileExpressionAdapter()
Creates a new adapter for an object of class 'XDo While 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:
XDoWhileExpression
EMF generated code

createXWhileExpressionAdapter

public org.eclipse.emf.common.notify.Adapter createXWhileExpressionAdapter()
Creates a new adapter for an object of class 'XWhile 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:
XWhileExpression
EMF generated code

createXTypeLiteralAdapter

public org.eclipse.emf.common.notify.Adapter createXTypeLiteralAdapter()
Creates a new adapter for an object of class 'XType 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 Also:
XTypeLiteral
EMF generated code

createXInstanceOfExpressionAdapter

public org.eclipse.emf.common.notify.Adapter createXInstanceOfExpressionAdapter()
Creates a new adapter for an object of class 'XInstance Of 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:
XInstanceOfExpression
EMF generated code

createXThrowExpressionAdapter

public org.eclipse.emf.common.notify.Adapter createXThrowExpressionAdapter()
Creates a new adapter for an object of class 'XThrow 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:
XThrowExpression
EMF generated code

createXTryCatchFinallyExpressionAdapter

public org.eclipse.emf.common.notify.Adapter createXTryCatchFinallyExpressionAdapter()
Creates a new adapter for an object of class 'XTry Catch Finally 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:
XTryCatchFinallyExpression
EMF generated code

createXCatchClauseAdapter

public org.eclipse.emf.common.notify.Adapter createXCatchClauseAdapter()
Creates a new adapter for an object of class 'XCatch 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:
XCatchClause
EMF generated code

createXAssignmentAdapter

public org.eclipse.emf.common.notify.Adapter createXAssignmentAdapter()
Creates a new adapter for an object of class 'XAssignment'. 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:
XAssignment
EMF generated code

createXReturnExpressionAdapter

public org.eclipse.emf.common.notify.Adapter createXReturnExpressionAdapter()
Creates a new adapter for an object of class 'XReturn 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:
XReturnExpression
EMF generated code

createJvmIdentifiableElementAdapter

public org.eclipse.emf.common.notify.Adapter createJvmIdentifiableElementAdapter()
Creates a new adapter for an object of class 'Jvm Identifiable 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:
JvmIdentifiableElement
EMF generated code

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.
EMF generated code