org.eclipse.xtext.xbase.typesystem.internal.DefaultReentrantTypeResolver Java Examples

The following examples show how to use org.eclipse.xtext.xbase.typesystem.internal.DefaultReentrantTypeResolver. 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: DeferredTypeParameterHintCollectorTest.java    From xtext-xtend with Eclipse Public License 2.0 5 votes vote down vote up
public Map<JvmTypeParameter, LightweightMergedBoundTypeArgument> in(final String typeParameters, final String expectedType, final String actualType) {
  final JvmOperation operation = this.operation(typeParameters, expectedType, actualType);
  ITypeReferenceOwner _owner = this.getOwner();
  final DeferredTypeParameterHintCollector collector = new DeferredTypeParameterHintCollector(_owner);
  final DefaultReentrantTypeResolver resolver = this.resolverProvider.get();
  resolver.initializeFrom(EcoreUtil.getRootContainer(operation));
  ITypeReferenceOwner _owner_1 = this.getOwner();
  PublicResolvedTypes _publicResolvedTypes = new PublicResolvedTypes(resolver);
  final MockTypeParameterSubstitutor substitutor = new MockTypeParameterSubstitutor(_owner_1, _publicResolvedTypes);
  final LightweightTypeReference hasUnbounds = substitutor.substitute(this.toLightweightTypeReference(IterableExtensions.<JvmFormalParameter>head(operation.getParameters()).getParameterType()));
  final LightweightTypeReference isActual = this.toLightweightTypeReference(IterableExtensions.<JvmFormalParameter>last(operation.getParameters()).getParameterType());
  collector.processPairedReferences(hasUnbounds, isActual);
  return substitutor.getTypeParameterMapping();
}
 
Example #2
Source File: AbstractEntitiesRuntimeModule.java    From xtext-web with Eclipse Public License 2.0 4 votes vote down vote up
public Class<? extends DefaultReentrantTypeResolver> bindDefaultReentrantTypeResolver() {
	return LogicalContainerAwareReentrantTypeResolver.class;
}
 
Example #3
Source File: AbstractSARLRuntimeModule.java    From sarl with Apache License 2.0 4 votes vote down vote up
public Class<? extends DefaultReentrantTypeResolver> bindDefaultReentrantTypeResolver() {
	return SARLReentrantTypeResolver.class;
}
 
Example #4
Source File: XtxtUMLRuntimeModule.java    From txtUML with Eclipse Public License 1.0 4 votes vote down vote up
@Override
public Class<? extends DefaultReentrantTypeResolver> bindDefaultReentrantTypeResolver() {
	return XtxtUMLReentrantTypeResolver.class;
}
 
Example #5
Source File: XtendRuntimeModule.java    From xtext-xtend with Eclipse Public License 2.0 4 votes vote down vote up
@Override
public Class<? extends DefaultReentrantTypeResolver> bindDefaultReentrantTypeResolver() {
	return XtendReentrantTypeResolver.class;
}
 
Example #6
Source File: AbstractXtendRuntimeModule.java    From xtext-xtend with Eclipse Public License 2.0 4 votes vote down vote up
public Class<? extends DefaultReentrantTypeResolver> bindDefaultReentrantTypeResolver() {
	return LogicalContainerAwareReentrantTypeResolver.class;
}
 
Example #7
Source File: PublicResolvedTypes.java    From xtext-xtend with Eclipse Public License 2.0 4 votes vote down vote up
public PublicResolvedTypes(final DefaultReentrantTypeResolver resolver) {
  super(resolver, CancelIndicator.NullImpl);
}
 
Example #8
Source File: PublicResolvedTypes.java    From xtext-eclipse with Eclipse Public License 2.0 4 votes vote down vote up
public PublicResolvedTypes(DefaultReentrantTypeResolver resolver) {
	super(resolver, CancelIndicator.NullImpl);
}
 
Example #9
Source File: AbstractRuleEngineRuntimeModule.java    From xtext-eclipse with Eclipse Public License 2.0 4 votes vote down vote up
public Class<? extends DefaultReentrantTypeResolver> bindDefaultReentrantTypeResolver() {
	return LogicalContainerAwareReentrantTypeResolver.class;
}
 
Example #10
Source File: AbstractDomainmodelRuntimeModule.java    From xtext-eclipse with Eclipse Public License 2.0 4 votes vote down vote up
public Class<? extends DefaultReentrantTypeResolver> bindDefaultReentrantTypeResolver() {
	return LogicalContainerAwareReentrantTypeResolver.class;
}
 
Example #11
Source File: AbstractPureXbaseRuntimeModule.java    From xtext-extras with Eclipse Public License 2.0 4 votes vote down vote up
public Class<? extends DefaultReentrantTypeResolver> bindDefaultReentrantTypeResolver() {
	return LogicalContainerAwareReentrantTypeResolver.class;
}
 
Example #12
Source File: AbstractContentAssistFragmentTestLangRuntimeModule.java    From xtext-extras with Eclipse Public License 2.0 4 votes vote down vote up
public Class<? extends DefaultReentrantTypeResolver> bindDefaultReentrantTypeResolver() {
	return LogicalContainerAwareReentrantTypeResolver.class;
}
 
Example #13
Source File: AbstractXImportSectionTestLangRuntimeModule.java    From xtext-extras with Eclipse Public License 2.0 4 votes vote down vote up
public Class<? extends DefaultReentrantTypeResolver> bindDefaultReentrantTypeResolver() {
	return LogicalContainerAwareReentrantTypeResolver.class;
}
 
Example #14
Source File: AbstractBug462047LangRuntimeModule.java    From xtext-extras with Eclipse Public License 2.0 4 votes vote down vote up
public Class<? extends DefaultReentrantTypeResolver> bindDefaultReentrantTypeResolver() {
	return LogicalContainerAwareReentrantTypeResolver.class;
}
 
Example #15
Source File: XbaseWithLogicalContainerInjectorProvider.java    From xtext-extras with Eclipse Public License 2.0 4 votes vote down vote up
public Class<? extends DefaultReentrantTypeResolver> bindReentrantTypeResolver() {
	return LogicalContainerAwareReentrantTypeResolver.class;
}
 
Example #16
Source File: PublicResolvedTypes.java    From xtext-extras with Eclipse Public License 2.0 4 votes vote down vote up
public PublicResolvedTypes(DefaultReentrantTypeResolver resolver) {
	super(resolver, CancelIndicator.NullImpl);
}
 
Example #17
Source File: RecordingRootResolvedTypes.java    From xtext-extras with Eclipse Public License 2.0 4 votes vote down vote up
public RecordingRootResolvedTypes(DefaultReentrantTypeResolver resolver, CancelIndicator monitor) {
	super(resolver, monitor);
}
 
Example #18
Source File: ValidatingRootResolvedTypes.java    From xtext-extras with Eclipse Public License 2.0 4 votes vote down vote up
public ValidatingRootResolvedTypes(DefaultReentrantTypeResolver resolver, CancelIndicator monitor) {
	super(resolver, monitor);
}
 
Example #19
Source File: TimedRootResolvedTypes.java    From xtext-extras with Eclipse Public License 2.0 4 votes vote down vote up
public TimedRootResolvedTypes(DefaultReentrantTypeResolver resolver, TypeResolutionTimes times,
		CancelIndicator monitor) {
	super(resolver, monitor);
	this.times = times;
}
 
Example #20
Source File: PublicResolvedTypes.java    From xtext-extras with Eclipse Public License 2.0 4 votes vote down vote up
public PublicResolvedTypes(DefaultReentrantTypeResolver resolver) {
	super(resolver, CancelIndicator.NullImpl);
}