本文整理汇总了Java中com.intellij.psi.impl.cache.TypeInfo.internFrequentType方法的典型用法代码示例。如果您正苦于以下问题:Java TypeInfo.internFrequentType方法的具体用法?Java TypeInfo.internFrequentType怎么用?Java TypeInfo.internFrequentType使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.intellij.psi.impl.cache.TypeInfo
的用法示例。
在下文中一共展示了TypeInfo.internFrequentType方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: ClsTypeElementImpl
import com.intellij.psi.impl.cache.TypeInfo; //导入方法依赖的package包/类
public ClsTypeElementImpl(@NotNull PsiElement parent, @NotNull String typeText, char variance) {
myParent = parent;
myTypeText = TypeInfo.internFrequentType(typeText);
myVariance = variance;
myChild = new AtomicNullableLazyValue<ClsElementImpl>() {
@Override
protected ClsElementImpl compute() {
return calculateChild();
}
};
myCachedType = new AtomicNotNullLazyValue<PsiType>() {
@NotNull
@Override
protected PsiType compute() {
return calculateType();
}
};
}
示例2: ClsTypeElementImpl
import com.intellij.psi.impl.cache.TypeInfo; //导入方法依赖的package包/类
public ClsTypeElementImpl(@NotNull PsiElement parent, @NotNull String typeText, char variance) {
myParent = parent;
myTypeText = TypeInfo.internFrequentType(typeText);
myVariance = variance;
myChild = new VolatileNullableLazyValue<ClsElementImpl>() {
@Nullable
@Override
protected ClsElementImpl compute() {
return calculateChild();
}
};
myCachedType = new AtomicNotNullLazyValue<PsiType>() {
@NotNull
@Override
protected PsiType compute() {
return calculateType();
}
};
}
示例3: ClsTypeElementImpl
import com.intellij.psi.impl.cache.TypeInfo; //导入方法依赖的package包/类
public ClsTypeElementImpl(@NotNull PsiElement parent, @NotNull String typeText, char variance)
{
myParent = parent;
myTypeText = TypeInfo.internFrequentType(typeText);
myVariance = variance;
myChild = new AtomicNullableLazyValue<ClsElementImpl>()
{
@Override
protected ClsElementImpl compute()
{
return calculateChild();
}
};
myCachedType = new AtomicNotNullLazyValue<PsiType>()
{
@NotNull
@Override
protected PsiType compute()
{
return calculateType();
}
};
}
示例4: ClsJavaCodeReferenceElementImpl
import com.intellij.psi.impl.cache.TypeInfo; //导入方法依赖的package包/类
public ClsJavaCodeReferenceElementImpl(PsiElement parent, @NotNull String canonicalText) {
myParent = parent;
String canonical = TypeInfo.internFrequentType(canonicalText);
myCanonicalText = canonical;
String qName = TypeInfo.internFrequentType(PsiNameHelper.getQualifiedClassName(myCanonicalText, false));
myQualifiedName = qName.equals(canonical) ? canonical : qName;
String[] classParameters = PsiNameHelper.getClassParametersText(canonicalText);
myRefParameterList = classParameters.length == 0 ? null : new ClsReferenceParameterListImpl(this, classParameters);
}
示例5: ClsJavaCodeReferenceElementImpl
import com.intellij.psi.impl.cache.TypeInfo; //导入方法依赖的package包/类
public ClsJavaCodeReferenceElementImpl(PsiElement parent, String canonicalText) {
myParent = parent;
String canonical = TypeInfo.internFrequentType(canonicalText);
myCanonicalText = canonical;
String qName = TypeInfo.internFrequentType(PsiNameHelper.getQualifiedClassName(myCanonicalText, false));
myQualifiedName = qName.equals(canonical) ? canonical : qName;
String[] classParameters = PsiNameHelper.getClassParametersText(canonicalText);
myRefParameterList = classParameters.length == 0 ? null : new ClsReferenceParameterListImpl(this, classParameters);
}
示例6: ClsJavaCodeReferenceElementImpl
import com.intellij.psi.impl.cache.TypeInfo; //导入方法依赖的package包/类
public ClsJavaCodeReferenceElementImpl(PsiElement parent, @NotNull String canonicalText)
{
myParent = parent;
String canonical = TypeInfo.internFrequentType(canonicalText);
myCanonicalText = canonical;
String qName = TypeInfo.internFrequentType(PsiNameHelper.getQualifiedClassName(myCanonicalText, false));
myQualifiedName = qName.equals(canonical) ? canonical : qName;
String[] classParameters = PsiNameHelper.getClassParametersText(canonicalText);
myRefParameterList = classParameters.length == 0 ? null : new ClsReferenceParameterListImpl(this, classParameters);
}