Package jamopp.proxy
Class JavaContextDependentURIFragment<ContainerType extends EObject>
java.lang.Object
jamopp.proxy.JavaContextDependentURIFragment<ContainerType>
- Type Parameters:
ContainerType- the type of the object that contains the reference which shall be resolved.
- All Implemented Interfaces:
IJavaContextDependentURIFragment
public class JavaContextDependentURIFragment<ContainerType extends EObject>
extends Object
implements IJavaContextDependentURIFragment
Standard implementation of
IContextDependentURIFragment.-
Field Summary
Fields inherited from interface jamopp.proxy.IJavaContextDependentURIFragment
INTERNAL_URI_FRAGMENT_PREFIX -
Constructor Summary
ConstructorsConstructorDescriptionJavaContextDependentURIFragment(String identifier, ContainerType container, EReference reference, int positionInReference, EObject proxy) JavaContextDependentURIFragment(String identifier, ContainerType container, EReference reference, int positionInReference, EObject proxy, org.eclipse.jdt.core.dom.IBinding binding) -
Method Summary
Modifier and TypeMethodDescriptionorg.eclipse.jdt.core.dom.IBindingReturns the binding associated with the proxy element provided by an Eclipse JDT Parser.Returns the element containing the proxy object.Returns an identifier identifying the elements at which the proxy object points to.intReturns the position within the reference if the reference contains multiple elements.getProxy()Returns the proxy object.Returns the reference in the container'sEClassthat contains the proxy object.voidsetBinding(org.eclipse.jdt.core.dom.IBinding newBinding) Sets the binding associated with the proxy element.
-
Constructor Details
-
JavaContextDependentURIFragment
public JavaContextDependentURIFragment(String identifier, ContainerType container, EReference reference, int positionInReference, EObject proxy) -
JavaContextDependentURIFragment
public JavaContextDependentURIFragment(String identifier, ContainerType container, EReference reference, int positionInReference, EObject proxy, org.eclipse.jdt.core.dom.IBinding binding)
-
-
Method Details
-
getIdentifier
Description copied from interface:IJavaContextDependentURIFragmentReturns an identifier identifying the elements at which the proxy object points to.- Specified by:
getIdentifierin interfaceIJavaContextDependentURIFragment- Returns:
- the identifier in this context.
-
getContainer
Description copied from interface:IJavaContextDependentURIFragmentReturns the element containing the proxy object.- Specified by:
getContainerin interfaceIJavaContextDependentURIFragment- Returns:
- The element that references the proxy.
-
getReference
Description copied from interface:IJavaContextDependentURIFragmentReturns the reference in the container'sEClassthat contains the proxy object.- Specified by:
getReferencein interfaceIJavaContextDependentURIFragment- Returns:
- The reference.
-
getPositionInReference
public int getPositionInReference()Description copied from interface:IJavaContextDependentURIFragmentReturns the position within the reference if the reference contains multiple elements.- Specified by:
getPositionInReferencein interfaceIJavaContextDependentURIFragment- Returns:
- The position or -1 otherwise.
-
getProxy
Description copied from interface:IJavaContextDependentURIFragmentReturns the proxy object.- Specified by:
getProxyin interfaceIJavaContextDependentURIFragment- Returns:
- The proxy object.
-
getBinding
public org.eclipse.jdt.core.dom.IBinding getBinding()Description copied from interface:IJavaContextDependentURIFragmentReturns the binding associated with the proxy element provided by an Eclipse JDT Parser.- Specified by:
getBindingin interfaceIJavaContextDependentURIFragment- Returns:
- the binding.
-
setBinding
public void setBinding(org.eclipse.jdt.core.dom.IBinding newBinding) Description copied from interface:IJavaContextDependentURIFragmentSets the binding associated with the proxy element.- Specified by:
setBindingin interfaceIJavaContextDependentURIFragment- Parameters:
newBinding- the new binding.
-