本文整理汇总了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;
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例6: getIndexedJvmTypeAccess
import org.eclipse.xtext.common.types.access.impl.IndexedJvmTypeAccess; //导入依赖的package包/类
public IndexedJvmTypeAccess getIndexedJvmTypeAccess() {
return indexedJvmTypeAccess;
}
示例7: setIndexedJvmTypeAccess
import org.eclipse.xtext.common.types.access.impl.IndexedJvmTypeAccess; //导入依赖的package包/类
public void setIndexedJvmTypeAccess(IndexedJvmTypeAccess indexedJvmTypeAccess) {
this.indexedJvmTypeAccess = indexedJvmTypeAccess;
}
示例8: getIndexedJvmTypeAccess
import org.eclipse.xtext.common.types.access.impl.IndexedJvmTypeAccess; //导入依赖的package包/类
protected IndexedJvmTypeAccess getIndexedJvmTypeAccess() {
return indexedJvmTypeAccess;
}
示例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;
}
示例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);
}