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


Java TypeInfo.readTYPE方法代码示例

本文整理汇总了Java中com.intellij.psi.impl.cache.TypeInfo.readTYPE方法的典型用法代码示例。如果您正苦于以下问题:Java TypeInfo.readTYPE方法的具体用法?Java TypeInfo.readTYPE怎么用?Java TypeInfo.readTYPE使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在com.intellij.psi.impl.cache.TypeInfo的用法示例。


在下文中一共展示了TypeInfo.readTYPE方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: deserialize

import com.intellij.psi.impl.cache.TypeInfo; //导入方法依赖的package包/类
@NotNull
@Override
public PsiMethodStub deserialize(@NotNull final StubInputStream dataStream, final StubElement parentStub) throws IOException {
  StringRef name = dataStream.readName();
  final TypeInfo type = TypeInfo.readTYPE(dataStream);
  byte flags = dataStream.readByte();
  final StringRef defaultMethodValue = PsiMethodStubImpl.isAnnotationMethod(flags) ? dataStream.readName() : null;
  return new PsiMethodStubImpl(parentStub, StringRef.toString(name), type, flags, StringRef.toString(defaultMethodValue));
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:10,代码来源:JavaMethodElementType.java

示例2: deserialize

import com.intellij.psi.impl.cache.TypeInfo; //导入方法依赖的package包/类
@NotNull
@Override
public PsiFieldStub deserialize(@NotNull final StubInputStream dataStream, final StubElement parentStub) throws IOException {
  final StringRef name = dataStream.readName();
  final TypeInfo type = TypeInfo.readTYPE(dataStream);
  final StringRef initializerText = dataStream.readName();
  final byte flags = dataStream.readByte();
  return new PsiFieldStubImpl(parentStub, name, type, initializerText, flags);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:10,代码来源:JavaFieldStubElementType.java

示例3: deserialize

import com.intellij.psi.impl.cache.TypeInfo; //导入方法依赖的package包/类
@NotNull
@Override
public PsiParameterStub deserialize(@NotNull StubInputStream dataStream, StubElement parentStub) throws IOException {
  StringRef name = dataStream.readName();
  TypeInfo type = TypeInfo.readTYPE(dataStream);
  boolean isEllipsis = dataStream.readBoolean();
  return new PsiParameterStubImpl(parentStub, name, type, isEllipsis);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:9,代码来源:JavaParameterElementType.java

示例4: deserialize

import com.intellij.psi.impl.cache.TypeInfo; //导入方法依赖的package包/类
@NotNull
@Override
public PsiMethodStub deserialize(@NotNull final StubInputStream dataStream, final StubElement parentStub) throws IOException {
  StringRef name = dataStream.readName();
  final TypeInfo type = TypeInfo.readTYPE(dataStream);
  byte flags = dataStream.readByte();
  final StringRef defaultMethodValue = PsiMethodStubImpl.isAnnotationMethod(flags) ? dataStream.readName() : null;
  return new PsiMethodStubImpl(parentStub, name, type, flags, defaultMethodValue);
}
 
开发者ID:lshain-android-source,项目名称:tools-idea,代码行数:10,代码来源:JavaMethodElementType.java

示例5: deserialize

import com.intellij.psi.impl.cache.TypeInfo; //导入方法依赖的package包/类
@NotNull
@Override
public PsiMethodStub deserialize(@NotNull final StubInputStream dataStream, final StubElement parentStub) throws IOException
{
	StringRef name = dataStream.readName();
	final TypeInfo type = TypeInfo.readTYPE(dataStream);
	byte flags = dataStream.readByte();
	final StringRef defaultMethodValue = PsiMethodStubImpl.isAnnotationMethod(flags) ? dataStream.readName() : null;
	return new PsiMethodStubImpl(parentStub, StringRef.toString(name), type, flags, StringRef.toString(defaultMethodValue));
}
 
开发者ID:consulo,项目名称:consulo-java,代码行数:11,代码来源:JavaMethodElementType.java

示例6: deserialize

import com.intellij.psi.impl.cache.TypeInfo; //导入方法依赖的package包/类
@NotNull
@Override
public PsiFieldStub deserialize(@NotNull final StubInputStream dataStream,
		final StubElement parentStub) throws IOException
{
	final StringRef name = dataStream.readName();
	final TypeInfo type = TypeInfo.readTYPE(dataStream);
	final StringRef initializerText = dataStream.readName();
	final byte flags = dataStream.readByte();
	return new PsiFieldStubImpl(parentStub, name, type, initializerText, flags);
}
 
开发者ID:consulo,项目名称:consulo-java,代码行数:12,代码来源:JavaFieldStubElementType.java

示例7: deserialize

import com.intellij.psi.impl.cache.TypeInfo; //导入方法依赖的package包/类
@NotNull
@Override
public PsiParameterStub deserialize(@NotNull StubInputStream dataStream, StubElement parentStub) throws IOException
{
	StringRef name = dataStream.readName();
	if(name == null)
	{
		throw new IOException("corrupted indices");
	}
	TypeInfo type = TypeInfo.readTYPE(dataStream);
	byte flags = dataStream.readByte();
	return new PsiParameterStubImpl(parentStub, name.toString(), type, flags);
}
 
开发者ID:consulo,项目名称:consulo-java,代码行数:14,代码来源:JavaParameterElementType.java


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