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
ConstructorDescriptionJavaContextDependentURIFragment
(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.IBinding
Returns 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.int
Returns the position within the reference if the reference contains multiple elements.getProxy()
Returns the proxy object.Returns the reference in the container'sEClass
that contains the proxy object.void
setBinding
(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:IJavaContextDependentURIFragment
Returns an identifier identifying the elements at which the proxy object points to.- Specified by:
getIdentifier
in interfaceIJavaContextDependentURIFragment
- Returns:
- the identifier in this context.
-
getContainer
Description copied from interface:IJavaContextDependentURIFragment
Returns the element containing the proxy object.- Specified by:
getContainer
in interfaceIJavaContextDependentURIFragment
- Returns:
- The element that references the proxy.
-
getReference
Description copied from interface:IJavaContextDependentURIFragment
Returns the reference in the container'sEClass
that contains the proxy object.- Specified by:
getReference
in interfaceIJavaContextDependentURIFragment
- Returns:
- The reference.
-
getPositionInReference
public int getPositionInReference()Description copied from interface:IJavaContextDependentURIFragment
Returns the position within the reference if the reference contains multiple elements.- Specified by:
getPositionInReference
in interfaceIJavaContextDependentURIFragment
- Returns:
- The position or -1 otherwise.
-
getProxy
Description copied from interface:IJavaContextDependentURIFragment
Returns the proxy object.- Specified by:
getProxy
in interfaceIJavaContextDependentURIFragment
- Returns:
- The proxy object.
-
getBinding
public org.eclipse.jdt.core.dom.IBinding getBinding()Description copied from interface:IJavaContextDependentURIFragment
Returns the binding associated with the proxy element provided by an Eclipse JDT Parser.- Specified by:
getBinding
in interfaceIJavaContextDependentURIFragment
- Returns:
- the binding.
-
setBinding
public void setBinding(org.eclipse.jdt.core.dom.IBinding newBinding) Description copied from interface:IJavaContextDependentURIFragment
Sets the binding associated with the proxy element.- Specified by:
setBinding
in interfaceIJavaContextDependentURIFragment
- Parameters:
newBinding
- the new binding.
-