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 ofIContextDependentURIFragment
.
-
-
Field Summary
-
Fields inherited from interface jamopp.proxy.IJavaContextDependentURIFragment
INTERNAL_URI_FRAGMENT_PREFIX
-
-
Constructor Summary
Constructors Constructor Description JavaContextDependentURIFragment(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.eclipse.jdt.core.dom.IBinding
getBinding()
Returns the binding associated with the proxy element provided by an Eclipse JDT Parser.ContainerType
getContainer()
Returns the element containing the proxy object.String
getIdentifier()
Returns an identifier identifying the elements at which the proxy object points to.int
getPositionInReference()
Returns the position within the reference if the reference contains multiple elements.EObject
getProxy()
Returns the proxy object.EReference
getReference()
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 Detail
-
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 Detail
-
getIdentifier
public String 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
public ContainerType 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
public EReference 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
public EObject 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.
-
-