Java Code Examples for org.eclipse.xtext.xbase.typesystem.references.UnboundTypeReference#isOwnedBy()
The following examples show how to use
org.eclipse.xtext.xbase.typesystem.references.UnboundTypeReference#isOwnedBy() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ValidatingReassigningResolvedTypes.java From xtext-extras with Eclipse Public License 2.0 | 5 votes |
@Override public UnboundTypeReference getUnboundTypeReference(Object handle) { UnboundTypeReference result = super.getUnboundTypeReference(handle); if (!result.isOwnedBy(getReferenceOwner())) { throw new IllegalArgumentException("result is not owned by this resolved types"); } return result; }
Example 2
Source File: ValidatingRootResolvedTypes.java From xtext-extras with Eclipse Public License 2.0 | 5 votes |
@Override public UnboundTypeReference getUnboundTypeReference(Object handle) { UnboundTypeReference result = super.getUnboundTypeReference(handle); if (!result.isOwnedBy(getReferenceOwner())) { throw new IllegalArgumentException("result is not owned by this resolved types"); } return result; }
Example 3
Source File: ValidatingRootResolvedTypes.java From xtext-extras with Eclipse Public License 2.0 | 5 votes |
@Override public void acceptUnboundTypeReference(Object handle, UnboundTypeReference reference) { if (!reference.isOwnedBy(getReferenceOwner())) { throw new IllegalArgumentException("reference is not owned by this resolved types"); } super.acceptUnboundTypeReference(handle, reference); }
Example 4
Source File: ValidatingExpressionAwareResolvedTypes.java From xtext-extras with Eclipse Public License 2.0 | 5 votes |
@Override public UnboundTypeReference getUnboundTypeReference(Object handle) { UnboundTypeReference result = super.getUnboundTypeReference(handle); if (!result.isOwnedBy(getReferenceOwner())) { throw new IllegalArgumentException("result is not owned by this resolved types"); } return result; }
Example 5
Source File: ValidatingStackedResolvedTypes.java From xtext-extras with Eclipse Public License 2.0 | 5 votes |
@Override public UnboundTypeReference getUnboundTypeReference(Object handle) { UnboundTypeReference result = super.getUnboundTypeReference(handle); if (!result.isOwnedBy(getReferenceOwner())) { throw new IllegalArgumentException("result is not owned by this resolved types"); } return result; }