当前位置: 首页>>代码示例>>Java>>正文


Java IndexedJvmTypeAccess类代码示例

本文整理汇总了Java中org.eclipse.xtext.common.types.access.impl.IndexedJvmTypeAccess的典型用法代码示例。如果您正苦于以下问题:Java IndexedJvmTypeAccess类的具体用法?Java IndexedJvmTypeAccess怎么用?Java IndexedJvmTypeAccess使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


IndexedJvmTypeAccess类属于org.eclipse.xtext.common.types.access.impl包,在下文中一共展示了IndexedJvmTypeAccess类的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: getIndexJvmTypeAccess

import org.eclipse.xtext.common.types.access.impl.IndexedJvmTypeAccess; //导入依赖的package包/类
public IndexedJvmTypeAccess getIndexJvmTypeAccess() {
  if ((this._access == null)) {
    final Object provider = this.resourceSet.getResourceFactoryRegistry().getProtocolToFactoryMap().get(URIHelperConstants.PROTOCOL);
    if ((provider instanceof AbstractJvmTypeProvider)) {
      this._access = ((AbstractJvmTypeProvider)provider).getIndexedJvmTypeAccess();
    }
  }
  return this._access;
}
 
开发者ID:eclipse,项目名称:xtext-extras,代码行数:10,代码来源:JavaResource.java

示例2: findTypeByClass

import org.eclipse.xtext.common.types.access.impl.IndexedJvmTypeAccess; //导入依赖的package包/类
private JvmType findTypeByClass(Class<?> clazz) throws UnknownNestedTypeException {
	IndexedJvmTypeAccess indexedJvmTypeAccess = getIndexedJvmTypeAccess();
	URI resourceURI = uriHelper.createResourceURI(clazz);
	if (indexedJvmTypeAccess != null) {
		URI proxyURI = resourceURI.appendFragment(uriHelper.getFragment(clazz));
		EObject candidate = indexedJvmTypeAccess.getIndexedJvmType(proxyURI, getResourceSet());
		if (candidate instanceof JvmType)
			return (JvmType) candidate;
	}
	TypeResource result = (TypeResource) getResourceSet().getResource(resourceURI, true);
	return findTypeByClass(clazz, result);
}
 
开发者ID:eclipse,项目名称:xtext-extras,代码行数:13,代码来源:ReflectionTypeProvider.java

示例3: installTypeProvider

import org.eclipse.xtext.common.types.access.impl.IndexedJvmTypeAccess; //导入依赖的package包/类
protected void installTypeProvider(final Iterable<String> classPathRoots, final XtextResourceSet resSet, final IndexedJvmTypeAccess typeAccess) {
  final URLClassLoader classLoader = this.createURLClassLoader(classPathRoots);
  new ClasspathTypeProvider(classLoader, resSet, typeAccess, null);
  resSet.setClasspathURIContext(classLoader);
}
 
开发者ID:eclipse,项目名称:xtext-extras,代码行数:6,代码来源:StandaloneBuilder.java

示例4: CachingReflectionTypeProvider

import org.eclipse.xtext.common.types.access.impl.IndexedJvmTypeAccess; //导入依赖的package包/类
@Deprecated
public CachingReflectionTypeProvider(ClassLoader classLoader, ResourceSet resourceSet,
		IndexedJvmTypeAccess indexedJvmTypeAccess, ReflectionTypeFactory reusedFactory) {
	this(classLoader, resourceSet, indexedJvmTypeAccess, reusedFactory, null);
}
 
开发者ID:eclipse,项目名称:xtext-extras,代码行数:6,代码来源:CachingReflectionTypeProvider.java

示例5: ReflectionTypeProvider

import org.eclipse.xtext.common.types.access.impl.IndexedJvmTypeAccess; //导入依赖的package包/类
@Deprecated
public ReflectionTypeProvider(ClassLoader classLoader, ResourceSet resourceSet, IndexedJvmTypeAccess indexedJvmTypeAccess) {
	this(classLoader, resourceSet, indexedJvmTypeAccess, null);
}
 
开发者ID:eclipse,项目名称:xtext-extras,代码行数:5,代码来源:ReflectionTypeProvider.java

示例6: getIndexedJvmTypeAccess

import org.eclipse.xtext.common.types.access.impl.IndexedJvmTypeAccess; //导入依赖的package包/类
public IndexedJvmTypeAccess getIndexedJvmTypeAccess() {
	return indexedJvmTypeAccess;
}
 
开发者ID:eclipse,项目名称:xtext-extras,代码行数:4,代码来源:TypeResource.java

示例7: setIndexedJvmTypeAccess

import org.eclipse.xtext.common.types.access.impl.IndexedJvmTypeAccess; //导入依赖的package包/类
public void setIndexedJvmTypeAccess(IndexedJvmTypeAccess indexedJvmTypeAccess) {
	this.indexedJvmTypeAccess = indexedJvmTypeAccess;
}
 
开发者ID:eclipse,项目名称:xtext-extras,代码行数:4,代码来源:TypeResource.java

示例8: getIndexedJvmTypeAccess

import org.eclipse.xtext.common.types.access.impl.IndexedJvmTypeAccess; //导入依赖的package包/类
protected IndexedJvmTypeAccess getIndexedJvmTypeAccess() {
	return indexedJvmTypeAccess;
}
 
开发者ID:eclipse,项目名称:xtext-extras,代码行数:4,代码来源:AbstractTypeProviderFactory.java

示例9: JdtFallbackTypeProviderFactory

import org.eclipse.xtext.common.types.access.impl.IndexedJvmTypeAccess; //导入依赖的package包/类
/**
 * Creates a new instance of {@link JdtFallbackTypeProviderFactory}.
 * 
 * @param javaProjectProvider
 *          the {@link IJavaProjectProvider}, may be {@code null}
 * @param classLoader
 *          the {@link ClassLoader}, must not be {@code null}
 * @param indexedJvmTypeAccess
 *          the {@link IndexedJvmTypeAccess}, may be {@code null}
 */
@Inject
public JdtFallbackTypeProviderFactory(final IJavaProjectProvider javaProjectProvider, final ClassLoader classLoader, final IndexedJvmTypeAccess indexedJvmTypeAccess, final TypeResourceServices typeResourceServices) {
  super(javaProjectProvider);
  this.classLoader = classLoader;
  this.indexedJvmTypeAccess = indexedJvmTypeAccess;
  this.typeResourceServices = typeResourceServices;
}
 
开发者ID:dsldevkit,项目名称:dsl-devkit,代码行数:18,代码来源:JdtFallbackTypeProviderFactory.java

示例10: BundleAwareTypeProvider

import org.eclipse.xtext.common.types.access.impl.IndexedJvmTypeAccess; //导入依赖的package包/类
/**
 * Creates a new instance of {@link BundleAwareTypeProvider}.
 * 
 * @param classLoader
 *          the {@link ClassLoader}, may be {@code null}
 * @param resourceSet
 *          the {@link ResourceSet}, must not be {@code null}
 * @param indexedJvmTypeAccess
 *          the {@link IndexedJvmTypeAccess}, may be {@code null}
 */
public BundleAwareTypeProvider(final ClassLoader classLoader, final ResourceSet resourceSet, final IndexedJvmTypeAccess indexedJvmTypeAccess, final TypeResourceServices typeResourceServices) {
  super(classLoader, resourceSet, indexedJvmTypeAccess, typeResourceServices);
}
 
开发者ID:dsldevkit,项目名称:dsl-devkit,代码行数:14,代码来源:BundleAwareTypeProvider.java


注:本文中的org.eclipse.xtext.common.types.access.impl.IndexedJvmTypeAccess类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。