Package org.eclipse.xtext.xbase.util
Class XbaseAdapterFactory
- java.lang.Object
-
- org.eclipse.emf.common.notify.impl.AdapterFactoryImpl
-
- 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.AdapterFactoryImplThe Adapter Factory for the model. It provides an adaptercreateXXXmethod for each class of the model.- Since:
- 2.7
- See Also:
XbasePackage- Generated:
-
-
Field Summary
Fields Modifier and Type Field Description protected static XbasePackagemodelPackageThe cached model package.protected XbaseSwitch<org.eclipse.emf.common.notify.Adapter>modelSwitchThe switch that delegates to thecreateXXXmethods.
-
Constructor Summary
Constructors Constructor Description XbaseAdapterFactory()Creates an instance of the adapter factory.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.eclipse.emf.common.notify.AdaptercreateAdapter(org.eclipse.emf.common.notify.Notifier target)Creates an adapter for thetarget.org.eclipse.emf.common.notify.AdaptercreateEObjectAdapter()Creates a new adapter for the default case.org.eclipse.emf.common.notify.AdaptercreateJvmIdentifiableElementAdapter()Creates a new adapter for an object of class 'Jvm Identifiable Element'.org.eclipse.emf.common.notify.AdaptercreateXAbstractFeatureCallAdapter()Creates a new adapter for an object of class 'XAbstract Feature Call'.org.eclipse.emf.common.notify.AdaptercreateXAbstractWhileExpressionAdapter()Creates a new adapter for an object of class 'XAbstract While Expression'.org.eclipse.emf.common.notify.AdaptercreateXAssignmentAdapter()Creates a new adapter for an object of class 'XAssignment'.org.eclipse.emf.common.notify.AdaptercreateXBasicForLoopExpressionAdapter()Creates a new adapter for an object of class 'XBasic For Loop Expression'.org.eclipse.emf.common.notify.AdaptercreateXBinaryOperationAdapter()Creates a new adapter for an object of class 'XBinary Operation'.org.eclipse.emf.common.notify.AdaptercreateXBlockExpressionAdapter()Creates a new adapter for an object of class 'XBlock Expression'.org.eclipse.emf.common.notify.AdaptercreateXBooleanLiteralAdapter()Creates a new adapter for an object of class 'XBoolean Literal'.org.eclipse.emf.common.notify.AdaptercreateXCasePartAdapter()Creates a new adapter for an object of class 'XCase Part'.org.eclipse.emf.common.notify.AdaptercreateXCastedExpressionAdapter()Creates a new adapter for an object of class 'XCasted Expression'.org.eclipse.emf.common.notify.AdaptercreateXCatchClauseAdapter()Creates a new adapter for an object of class 'XCatch Clause'.org.eclipse.emf.common.notify.AdaptercreateXClosureAdapter()Creates a new adapter for an object of class 'XClosure'.org.eclipse.emf.common.notify.AdaptercreateXCollectionLiteralAdapter()Creates a new adapter for an object of class 'XCollection Literal'.org.eclipse.emf.common.notify.AdaptercreateXConstructorCallAdapter()Creates a new adapter for an object of class 'XConstructor Call'.org.eclipse.emf.common.notify.AdaptercreateXDoWhileExpressionAdapter()Creates a new adapter for an object of class 'XDo While Expression'.org.eclipse.emf.common.notify.AdaptercreateXExpressionAdapter()Creates a new adapter for an object of class 'XExpression'.org.eclipse.emf.common.notify.AdaptercreateXFeatureCallAdapter()Creates a new adapter for an object of class 'XFeature Call'.org.eclipse.emf.common.notify.AdaptercreateXForLoopExpressionAdapter()Creates a new adapter for an object of class 'XFor Loop Expression'.org.eclipse.emf.common.notify.AdaptercreateXIfExpressionAdapter()Creates a new adapter for an object of class 'XIf Expression'.org.eclipse.emf.common.notify.AdaptercreateXInstanceOfExpressionAdapter()Creates a new adapter for an object of class 'XInstance Of Expression'.org.eclipse.emf.common.notify.AdaptercreateXListLiteralAdapter()Creates a new adapter for an object of class 'XList Literal'.org.eclipse.emf.common.notify.AdaptercreateXMemberFeatureCallAdapter()Creates a new adapter for an object of class 'XMember Feature Call'.org.eclipse.emf.common.notify.AdaptercreateXNullLiteralAdapter()Creates a new adapter for an object of class 'XNull Literal'.org.eclipse.emf.common.notify.AdaptercreateXNumberLiteralAdapter()Creates a new adapter for an object of class 'XNumber Literal'.org.eclipse.emf.common.notify.AdaptercreateXPostfixOperationAdapter()Creates a new adapter for an object of class 'XPostfix Operation'.org.eclipse.emf.common.notify.AdaptercreateXReturnExpressionAdapter()Creates a new adapter for an object of class 'XReturn Expression'.org.eclipse.emf.common.notify.AdaptercreateXSetLiteralAdapter()Creates a new adapter for an object of class 'XSet Literal'.org.eclipse.emf.common.notify.AdaptercreateXStringLiteralAdapter()Creates a new adapter for an object of class 'XString Literal'.org.eclipse.emf.common.notify.AdaptercreateXSwitchExpressionAdapter()Creates a new adapter for an object of class 'XSwitch Expression'.org.eclipse.emf.common.notify.AdaptercreateXSynchronizedExpressionAdapter()Creates a new adapter for an object of class 'XSynchronized Expression'.org.eclipse.emf.common.notify.AdaptercreateXThrowExpressionAdapter()Creates a new adapter for an object of class 'XThrow Expression'.org.eclipse.emf.common.notify.AdaptercreateXTryCatchFinallyExpressionAdapter()Creates a new adapter for an object of class 'XTry Catch Finally Expression'.org.eclipse.emf.common.notify.AdaptercreateXTypeLiteralAdapter()Creates a new adapter for an object of class 'XType Literal'.org.eclipse.emf.common.notify.AdaptercreateXUnaryOperationAdapter()Creates a new adapter for an object of class 'XUnary Operation'.org.eclipse.emf.common.notify.AdaptercreateXVariableDeclarationAdapter()Creates a new adapter for an object of class 'XVariable Declaration'.org.eclipse.emf.common.notify.AdaptercreateXWhileExpressionAdapter()Creates a new adapter for an object of class 'XWhile Expression'.booleanisFactoryForType(java.lang.Object object)Returns whether this factory is applicable for the type of the object.
-
-
-
Field Detail
-
modelPackage
protected static XbasePackage modelPackage
The cached model package.- Generated:
-
modelSwitch
protected XbaseSwitch<org.eclipse.emf.common.notify.Adapter> modelSwitch
The switch that delegates to thecreateXXXmethods.- Generated:
-
-
Method Detail
-
isFactoryForType
public boolean isFactoryForType(java.lang.Object object)
Returns whether this factory is applicable for the type of the object. This implementation returnstrueif the object is either the model's package or is an instance object of the model.- Specified by:
isFactoryForTypein interfaceorg.eclipse.emf.common.notify.AdapterFactory- Overrides:
isFactoryForTypein classorg.eclipse.emf.common.notify.impl.AdapterFactoryImpl- Returns:
- whether this factory is applicable for the type of the object.
- Generated:
-
createAdapter
public org.eclipse.emf.common.notify.Adapter createAdapter(org.eclipse.emf.common.notify.Notifier target)
Creates an adapter for thetarget.- Overrides:
createAdapterin classorg.eclipse.emf.common.notify.impl.AdapterFactoryImpl- Parameters:
target- the object to adapt.- Returns:
- the adapter for the
target. - Generated:
-
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.
- Since:
- 2.7
- See Also:
XExpression- Generated:
-
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.
- Since:
- 2.7
- See Also:
XIfExpression- Generated:
-
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.
- Since:
- 2.7
- See Also:
XSwitchExpression- Generated:
-
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.
- Since:
- 2.7
- See Also:
XCasePart- Generated:
-
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.
- Since:
- 2.7
- See Also:
XBlockExpression- Generated:
-
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.
- Since:
- 2.7
- See Also:
XVariableDeclaration- Generated:
-
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.
- Since:
- 2.7
- See Also:
XAbstractFeatureCall- Generated:
-
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.
- Since:
- 2.7
- See Also:
XMemberFeatureCall- Generated:
-
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.
- Since:
- 2.7
- See Also:
XFeatureCall- Generated:
-
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.
- Since:
- 2.7
- See Also:
XConstructorCall- Generated:
-
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.
- Since:
- 2.7
- See Also:
XBooleanLiteral- Generated:
-
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.
- Since:
- 2.7
- See Also:
XNullLiteral- Generated:
-
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.
- Since:
- 2.7
- See Also:
XNumberLiteral- Generated:
-
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.
- Since:
- 2.7
- See Also:
XStringLiteral- Generated:
-
createXCollectionLiteralAdapter
public org.eclipse.emf.common.notify.Adapter createXCollectionLiteralAdapter()
Creates a new adapter for an object of class 'XCollection 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.
- Since:
- 2.7
- See Also:
XCollectionLiteral- Generated:
-
createXListLiteralAdapter
public org.eclipse.emf.common.notify.Adapter createXListLiteralAdapter()
Creates a new adapter for an object of class 'XList 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.
- Since:
- 2.7
- See Also:
XListLiteral- Generated:
-
createXSetLiteralAdapter
public org.eclipse.emf.common.notify.Adapter createXSetLiteralAdapter()
Creates a new adapter for an object of class 'XSet 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.
- Since:
- 2.7
- See Also:
XSetLiteral- Generated:
-
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.
- Since:
- 2.7
- See Also:
XClosure- Generated:
-
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.
- Since:
- 2.7
- See Also:
XCastedExpression- Generated:
-
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.
- Since:
- 2.7
- See Also:
XBinaryOperation- Generated:
-
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.
- Since:
- 2.7
- See Also:
XUnaryOperation- Generated:
-
createXPostfixOperationAdapter
public org.eclipse.emf.common.notify.Adapter createXPostfixOperationAdapter()
Creates a new adapter for an object of class 'XPostfix 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.
- Since:
- 2.7
- See Also:
XPostfixOperation- Generated:
-
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.
- Since:
- 2.7
- See Also:
XForLoopExpression- Generated:
-
createXBasicForLoopExpressionAdapter
public org.eclipse.emf.common.notify.Adapter createXBasicForLoopExpressionAdapter()
Creates a new adapter for an object of class 'XBasic For 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.
- Since:
- 2.7
- See Also:
XBasicForLoopExpression- Generated:
-
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.
- Since:
- 2.7
- See Also:
XAbstractWhileExpression- Generated:
-
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.
- Since:
- 2.7
- See Also:
XDoWhileExpression- Generated:
-
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.
- Since:
- 2.7
- See Also:
XWhileExpression- Generated:
-
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.
- Since:
- 2.7
- See Also:
XTypeLiteral- Generated:
-
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.
- Since:
- 2.7
- See Also:
XInstanceOfExpression- Generated:
-
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.
- Since:
- 2.7
- See Also:
XThrowExpression- Generated:
-
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.
- Since:
- 2.7
- See Also:
XTryCatchFinallyExpression- Generated:
-
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.
- Since:
- 2.7
- See Also:
XCatchClause- Generated:
-
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.
- Since:
- 2.7
- See Also:
XAssignment- Generated:
-
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.
- Since:
- 2.7
- See Also:
XReturnExpression- Generated:
-
createXSynchronizedExpressionAdapter
public org.eclipse.emf.common.notify.Adapter createXSynchronizedExpressionAdapter()
Creates a new adapter for an object of class 'XSynchronized 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.
- Since:
- 2.7
- See Also:
XSynchronizedExpression- Generated:
-
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- Generated:
-
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.
- Generated:
-
-