Class BslReferenceMatch
- java.lang.Object
-
- com._1c.g5.v8.dt.search.core.Match
-
- com._1c.g5.v8.dt.search.core.refs.BslReferenceMatch
-
- All Implemented Interfaces:
IMatchParentProvider
public class BslReferenceMatch extends Match
Minimal representation of finded reference between BSL module to BM objects
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com._1c.g5.v8.dt.search.core.provider.IMatchParentProvider
IMatchParentProvider.Factory, IMatchParentProvider.Registry
-
-
Constructor Summary
Constructors Constructor Description BslReferenceMatch(IBmModel model, org.eclipse.xtext.resource.IReferenceDescription referenceDescription)
Create instance of BSL module reference matchBslReferenceMatch(IBmModel model, org.eclipse.xtext.resource.IReferenceDescription referenceDescription, BmObjectMatch target)
Create instance of BSL module reference match
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
org.eclipse.emf.common.util.URI
getContainerURI()
Gets the BSL module URIObject
getElement()
Returns the element that contains this match.int
getIndexInList()
Gets index of the reference in list of multiple refrenceorg.eclipse.emf.ecore.EReference
getReference()
GetsEReference
to matched objectorg.eclipse.emf.common.util.URI
getSourceURI()
Gets reference URI to matched objectOptional<BmObjectMatch>
getTarget()
The target object of referenceint
hashCode()
-
Methods inherited from class com._1c.g5.v8.dt.search.core.Match
getMetadataTopObjectId, getModel, isFiltered, resolveObjectById, setFiltered
-
-
-
-
Constructor Detail
-
BslReferenceMatch
public BslReferenceMatch(IBmModel model, org.eclipse.xtext.resource.IReferenceDescription referenceDescription)
Create instance of BSL module reference match- Parameters:
model
- the BM model contain matched object, cannot benull
referenceDescription
- the sourceIReferenceDescription
, cannot benull
-
BslReferenceMatch
public BslReferenceMatch(IBmModel model, org.eclipse.xtext.resource.IReferenceDescription referenceDescription, BmObjectMatch target)
Create instance of BSL module reference match- Parameters:
model
- the BM model contain matched object, cannot benull
referenceDescription
- the sourceIReferenceDescription
, cannot benull
target
- the match object as target of BSL reference, can benull
-
-
Method Detail
-
getContainerURI
public org.eclipse.emf.common.util.URI getContainerURI()
Gets the BSL module URI- Returns:
- the containerURI URI of BSL module with matched object, cannot be
null
-
getSourceURI
public org.eclipse.emf.common.util.URI getSourceURI()
Gets reference URI to matched object- Returns:
- the sourceUri URI to matched object, cannot be
null
-
getIndexInList
public int getIndexInList()
Gets index of the reference in list of multiple refrence- Returns:
- the index of the reference, if the reference isMultiple, -1 if it is a single value reference
-
getReference
public org.eclipse.emf.ecore.EReference getReference()
GetsEReference
to matched object- Returns:
- the reference to matched object, may be
null
-
getTarget
public Optional<BmObjectMatch> getTarget()
The target object of reference- Returns:
- the matched object as target of reference, or empty optional
-
getElement
public Object getElement()
Description copied from class:Match
Returns the element that contains this match. The element is used to group the match.- Specified by:
getElement
in classMatch
- Returns:
- the element that contains this match, cannot be
null
-
-