org.eclipse.xtext.common.types.util.jdt
Class JavaElementFinder.Implementation

java.lang.Object
  extended by org.eclipse.xtext.common.types.util.TypesSwitch<org.eclipse.jdt.core.IJavaElement>
      extended by org.eclipse.xtext.common.types.util.jdt.JavaElementFinder.Implementation
Enclosing class:
JavaElementFinder

public static class JavaElementFinder.Implementation
extends TypesSwitch<org.eclipse.jdt.core.IJavaElement>


Field Summary
 
Fields inherited from class org.eclipse.xtext.common.types.util.TypesSwitch
modelPackage
 
Constructor Summary
JavaElementFinder.Implementation(org.eclipse.jdt.core.IJavaProject javaProject)
           
 
Method Summary
 org.eclipse.jdt.core.IJavaElement caseJvmArrayType(JvmArrayType object)
          Returns the result of interpreting the object as an instance of 'Jvm Array Type'
 org.eclipse.jdt.core.IJavaElement caseJvmConstructor(JvmConstructor object)
          Returns the result of interpreting the object as an instance of 'Jvm Constructor'
 org.eclipse.jdt.core.IJavaElement caseJvmDeclaredType(JvmDeclaredType object)
          Returns the result of interpreting the object as an instance of 'Jvm Declared Type'
 org.eclipse.jdt.core.IJavaElement caseJvmField(JvmField object)
          Returns the result of interpreting the object as an instance of 'Jvm Field'
 org.eclipse.jdt.core.IJavaElement caseJvmMember(JvmMember object)
          Returns the result of interpreting the object as an instance of 'Jvm Member'
 org.eclipse.jdt.core.IJavaElement caseJvmOperation(JvmOperation object)
          Returns the result of interpreting the object as an instance of 'Jvm Operation'
 org.eclipse.jdt.core.IJavaElement caseJvmPrimitiveType(JvmPrimitiveType object)
          Returns the result of interpreting the object as an instance of 'Jvm Primitive Type'
 org.eclipse.jdt.core.IJavaElement doSwitch(org.eclipse.emf.ecore.EObject theEObject)
          Calls caseXXX for each class of the model until one returns a non null result; it yields that result
 
Methods inherited from class org.eclipse.xtext.common.types.util.TypesSwitch
caseJvmAnnotationAnnotationValue, caseJvmAnnotationReference, caseJvmAnnotationTarget, caseJvmAnnotationType, caseJvmAnnotationValue, caseJvmAnyTypeReference, caseJvmBooleanAnnotationValue, caseJvmByteAnnotationValue, caseJvmCharAnnotationValue, caseJvmComponentType, caseJvmConstraintOwner, caseJvmDoubleAnnotationValue, caseJvmEnumAnnotationValue, caseJvmEnumerationLiteral, caseJvmEnumerationType, caseJvmExecutable, caseJvmFeature, caseJvmFloatAnnotationValue, caseJvmFormalParameter, caseJvmGenericArrayTypeReference, caseJvmGenericType, caseJvmIdentifiableElement, caseJvmIntAnnotationValue, caseJvmLongAnnotationValue, caseJvmLowerBound, caseJvmMultiTypeReference, caseJvmParameterizedTypeReference, caseJvmShortAnnotationValue, caseJvmStringAnnotationValue, caseJvmType, caseJvmTypeAnnotationValue, caseJvmTypeConstraint, caseJvmTypeParameter, caseJvmTypeParameterDeclarator, caseJvmTypeReference, caseJvmUpperBound, caseJvmVoid, caseJvmWildcardTypeReference, defaultCase, doSwitch, doSwitch
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JavaElementFinder.Implementation

public JavaElementFinder.Implementation(org.eclipse.jdt.core.IJavaProject javaProject)
Method Detail

caseJvmPrimitiveType

public org.eclipse.jdt.core.IJavaElement caseJvmPrimitiveType(JvmPrimitiveType object)
Description copied from class: TypesSwitch
Returns the result of interpreting the object as an instance of 'Jvm Primitive Type'. This implementation returns null; returning a non-null result will terminate the switch.

Overrides:
caseJvmPrimitiveType in class TypesSwitch<org.eclipse.jdt.core.IJavaElement>
Parameters:
object - the target of the switch.
Returns:
the result of interpreting the object as an instance of 'Jvm Primitive Type'.
See Also:
doSwitch(EObject)

caseJvmArrayType

public org.eclipse.jdt.core.IJavaElement caseJvmArrayType(JvmArrayType object)
Description copied from class: TypesSwitch
Returns the result of interpreting the object as an instance of 'Jvm Array Type'. This implementation returns null; returning a non-null result will terminate the switch.

Overrides:
caseJvmArrayType in class TypesSwitch<org.eclipse.jdt.core.IJavaElement>
Parameters:
object - the target of the switch.
Returns:
the result of interpreting the object as an instance of 'Jvm Array Type'.
See Also:
doSwitch(EObject)

caseJvmMember

public org.eclipse.jdt.core.IJavaElement caseJvmMember(JvmMember object)
Description copied from class: TypesSwitch
Returns the result of interpreting the object as an instance of 'Jvm Member'. This implementation returns null; returning a non-null result will terminate the switch.

Overrides:
caseJvmMember in class TypesSwitch<org.eclipse.jdt.core.IJavaElement>
Parameters:
object - the target of the switch.
Returns:
the result of interpreting the object as an instance of 'Jvm Member'.
See Also:
doSwitch(EObject)

caseJvmField

public org.eclipse.jdt.core.IJavaElement caseJvmField(JvmField object)
Description copied from class: TypesSwitch
Returns the result of interpreting the object as an instance of 'Jvm Field'. This implementation returns null; returning a non-null result will terminate the switch.

Overrides:
caseJvmField in class TypesSwitch<org.eclipse.jdt.core.IJavaElement>
Parameters:
object - the target of the switch.
Returns:
the result of interpreting the object as an instance of 'Jvm Field'.
See Also:
doSwitch(EObject)

caseJvmOperation

public org.eclipse.jdt.core.IJavaElement caseJvmOperation(JvmOperation object)
Description copied from class: TypesSwitch
Returns the result of interpreting the object as an instance of 'Jvm Operation'. This implementation returns null; returning a non-null result will terminate the switch.

Overrides:
caseJvmOperation in class TypesSwitch<org.eclipse.jdt.core.IJavaElement>
Parameters:
object - the target of the switch.
Returns:
the result of interpreting the object as an instance of 'Jvm Operation'.
See Also:
doSwitch(EObject)

caseJvmConstructor

public org.eclipse.jdt.core.IJavaElement caseJvmConstructor(JvmConstructor object)
Description copied from class: TypesSwitch
Returns the result of interpreting the object as an instance of 'Jvm Constructor'. This implementation returns null; returning a non-null result will terminate the switch.

Overrides:
caseJvmConstructor in class TypesSwitch<org.eclipse.jdt.core.IJavaElement>
Parameters:
object - the target of the switch.
Returns:
the result of interpreting the object as an instance of 'Jvm Constructor'.
See Also:
doSwitch(EObject)

caseJvmDeclaredType

public org.eclipse.jdt.core.IJavaElement caseJvmDeclaredType(JvmDeclaredType object)
Description copied from class: TypesSwitch
Returns the result of interpreting the object as an instance of 'Jvm Declared Type'. This implementation returns null; returning a non-null result will terminate the switch.

Overrides:
caseJvmDeclaredType in class TypesSwitch<org.eclipse.jdt.core.IJavaElement>
Parameters:
object - the target of the switch.
Returns:
the result of interpreting the object as an instance of 'Jvm Declared Type'.
See Also:
doSwitch(EObject)

doSwitch

public org.eclipse.jdt.core.IJavaElement doSwitch(org.eclipse.emf.ecore.EObject theEObject)
Description copied from class: TypesSwitch
Calls caseXXX for each class of the model until one returns a non null result; it yields that result.

Overrides:
doSwitch in class TypesSwitch<org.eclipse.jdt.core.IJavaElement>
Returns:
the first non-null result returned by a caseXXX call.