org.eclipse.xtext.xbase.typesystem.IBatchTypeResolver Java Examples

The following examples show how to use org.eclipse.xtext.xbase.typesystem.IBatchTypeResolver. 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: XbaseExpectedTypeProviderTest.java    From xtext-extras with Eclipse Public License 2.0 5 votes vote down vote up
protected void assertExpected(String expectedExpectedType, XExpression obj) {
	LightweightTypeReference reference = get(IBatchTypeResolver.class).resolveTypes(obj).getExpectedType(obj);
	if (reference == null)
		assertNull("expected " + expectedExpectedType + " for " + obj + " but was null", expectedExpectedType);
	else
		assertEquals(String.format("expression '%s' yielded unexpected type.", obj), expectedExpectedType, reference.getIdentifier());
}
 
Example #2
Source File: BatchClosureTypeTest.java    From xtext-extras with Eclipse Public License 2.0 4 votes vote down vote up
public IBatchTypeResolver getTypeResolver() {
	return batchTypeResolver;
}
 
Example #3
Source File: XsemanticsTypeSystemGen.java    From xsemantics with Eclipse Public License 1.0 4 votes vote down vote up
public void setTypeResolver(final IBatchTypeResolver typeResolver) {
  this.typeResolver = typeResolver;
}
 
Example #4
Source File: XsemanticsTypeSystemGen.java    From xsemantics with Eclipse Public License 1.0 4 votes vote down vote up
public IBatchTypeResolver getTypeResolver() {
  return this.typeResolver;
}
 
Example #5
Source File: AbstractExpressionGenerator.java    From sarl with Apache License 2.0 4 votes vote down vote up
/** Change the type resolver for expressions.
 *
 * @param resolver the batch type resolver.
 */
@Inject
public void setTypeResolver(IBatchTypeResolver resolver) {
	this.typeResolver = resolver;
}
 
Example #6
Source File: AbstractExtraLanguageGenerator.java    From sarl with Apache License 2.0 4 votes vote down vote up
/** Change the type resolver for expressions.
 *
 * @param resolver the batch type resolver.
 */
@Inject
public void setTypeResolver(IBatchTypeResolver resolver) {
	this.typeResolver = resolver;
}
 
Example #7
Source File: XtendResourceDescription.java    From xtext-xtend with Eclipse Public License 2.0 4 votes vote down vote up
public XtendResourceDescription(final Resource resource, final IDefaultResourceDescriptionStrategy strategy, final IResourceScopeCache cache, final IBatchTypeResolver typeResolver, final IQualifiedNameConverter nameConverter) {
  super(resource, strategy, cache);
  this.typeResolver = typeResolver;
  this.nameConverter = nameConverter;
}
 
Example #8
Source File: XbaseHyperLinkHelper.java    From xtext-eclipse with Eclipse Public License 2.0 4 votes vote down vote up
public IBatchTypeResolver getBatchTypeResolver() {
	return typeResolver;
}
 
Example #9
Source File: XbaseLabelProvider.java    From xtext-eclipse with Eclipse Public License 2.0 4 votes vote down vote up
protected IBatchTypeResolver getTypeResolver() {
	return typeResolver;
}
 
Example #10
Source File: BatchReturnTypeResolverTest.java    From xtext-extras with Eclipse Public License 2.0 4 votes vote down vote up
@Override
public IBatchTypeResolver getTypeResolver() {
	return typeResolver;
}
 
Example #11
Source File: InvariantCheckingBatchTypeResolverTest.java    From xtext-extras with Eclipse Public License 2.0 4 votes vote down vote up
@Override
public IBatchTypeResolver getTypeResolver() {
	return typeResolver;
}
 
Example #12
Source File: BatchTypeArgumentTest.java    From xtext-extras with Eclipse Public License 2.0 4 votes vote down vote up
public IBatchTypeResolver getTypeResolver() {
	return batchTypeResolver;
}
 
Example #13
Source File: RecomputingBatchIdentifiableTypeTest.java    From xtext-extras with Eclipse Public License 2.0 4 votes vote down vote up
@Override
public IBatchTypeResolver getTypeResolver() {
	return recomputingResolver;
}
 
Example #14
Source File: LogicalContainerAwareReentrantTypeResolver.java    From xtext-extras with Eclipse Public License 2.0 4 votes vote down vote up
protected IBatchTypeResolver getTypeResolver() {
	return typeResolver;
}
 
Example #15
Source File: TimedBatchTypeResolverTest.java    From xtext-extras with Eclipse Public License 2.0 4 votes vote down vote up
@Override
public IBatchTypeResolver getTypeResolver() {
	return typeResolver;
}
 
Example #16
Source File: RecomputingTypeResolverTest.java    From xtext-extras with Eclipse Public License 2.0 4 votes vote down vote up
@Override
public IBatchTypeResolver getTypeResolver() {
	return typeResolver;
}
 
Example #17
Source File: AbstractXbaseCompiler.java    From xtext-extras with Eclipse Public License 2.0 4 votes vote down vote up
private IBatchTypeResolver getTypeResolver() {
	return typeResolver;
}
 
Example #18
Source File: BatchTypeResolverTest.java    From xtext-extras with Eclipse Public License 2.0 4 votes vote down vote up
@Override
public IBatchTypeResolver getTypeResolver() {
	return typeResolver;
}
 
Example #19
Source File: RecomputingBatchClosureTypeTest.java    From xtext-extras with Eclipse Public License 2.0 4 votes vote down vote up
@Override
public IBatchTypeResolver getTypeResolver() {
	return recomputingResolver;
}
 
Example #20
Source File: RecomputingBatchFeatureCallTypeTest.java    From xtext-extras with Eclipse Public License 2.0 4 votes vote down vote up
@Override
public IBatchTypeResolver getTypeResolver() {
	return recomputingResolver;
}
 
Example #21
Source File: BatchIdentifiableTypeTest.java    From xtext-extras with Eclipse Public License 2.0 4 votes vote down vote up
public IBatchTypeResolver getTypeResolver() {
	return batchTypeResolver;
}
 
Example #22
Source File: BatchFeatureCallTypeTest.java    From xtext-extras with Eclipse Public License 2.0 4 votes vote down vote up
public IBatchTypeResolver getTypeResolver() {
	return batchTypeResolver;
}
 
Example #23
Source File: RecomputingBatchTypeArgumentTest.java    From xtext-extras with Eclipse Public License 2.0 4 votes vote down vote up
@Override
public IBatchTypeResolver getTypeResolver() {
	return recomputingResolver;
}
 
Example #24
Source File: ShuffledTypeResolverTest.java    From xtext-extras with Eclipse Public License 2.0 4 votes vote down vote up
@Override
public IBatchTypeResolver getTypeResolver() {
	return typeResolver;
}
 
Example #25
Source File: BatchConstructorCallTypeTest.java    From xtext-extras with Eclipse Public License 2.0 4 votes vote down vote up
public IBatchTypeResolver getTypeResolver() {
	return batchTypeResolver;
}
 
Example #26
Source File: IsolationTest.java    From xtext-extras with Eclipse Public License 2.0 4 votes vote down vote up
@Override
public IBatchTypeResolver getTypeResolver() {
	return typeResolver;
}
 
Example #27
Source File: RecomputingBatchConstructorCallTypeTest.java    From xtext-extras with Eclipse Public License 2.0 4 votes vote down vote up
@Override
public IBatchTypeResolver getTypeResolver() {
	return recomputingResolver;
}
 
Example #28
Source File: InvariantCheckingIsolationTest.java    From xtext-extras with Eclipse Public License 2.0 4 votes vote down vote up
@Override
public IBatchTypeResolver getTypeResolver() {
	return typeResolver;
}
 
Example #29
Source File: AbstractExtraLanguageGenerator.java    From sarl with Apache License 2.0 2 votes vote down vote up
/** Replies the type resolver for expressions.
 *
 * @return the batch type resolver.
 */
public IBatchTypeResolver getTypeResolver() {
	return this.typeResolver;
}
 
Example #30
Source File: AbstractExpressionGenerator.java    From sarl with Apache License 2.0 2 votes vote down vote up
/** Replies the type resolver for expressions.
 *
 * @return the batch type resolver.
 */
public IBatchTypeResolver getTypeResolver() {
	return this.typeResolver;
}