本文整理汇总了Java中com.intellij.psi.impl.java.stubs.PsiParameterStub类的典型用法代码示例。如果您正苦于以下问题:Java PsiParameterStub类的具体用法?Java PsiParameterStub怎么用?Java PsiParameterStub使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
PsiParameterStub类属于com.intellij.psi.impl.java.stubs包,在下文中一共展示了PsiParameterStub类的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: ClsParameterImpl
import com.intellij.psi.impl.java.stubs.PsiParameterStub; //导入依赖的package包/类
public ClsParameterImpl(@NotNull PsiParameterStub stub)
{
super(stub);
myType = new AtomicNotNullLazyValue<PsiTypeElement>()
{
@NotNull
@Override
protected PsiTypeElement compute()
{
PsiParameterStub stub = getStub();
String typeText = TypeInfo.createTypeText(stub.getType(false));
assert typeText != null : stub;
return new ClsTypeElementImpl(ClsParameterImpl.this, typeText, ClsTypeElementImpl.VARIANCE_NONE);
}
};
}
示例2: isAutoGeneratedName
import com.intellij.psi.impl.java.stubs.PsiParameterStub; //导入依赖的package包/类
public boolean isAutoGeneratedName() {
final List children = getParentStub().getChildrenStubs();
int paramIndex = 0;
for (Object o : children) {
if (o instanceof PsiParameterStub) {
paramIndex++;
if (o == this) break;
}
}
return ("p" + paramIndex).equals(getName());
}
示例3: ClsParameterImpl
import com.intellij.psi.impl.java.stubs.PsiParameterStub; //导入依赖的package包/类
public ClsParameterImpl(@NotNull PsiParameterStub stub) {
super(stub);
myType = new AtomicNotNullLazyValue<PsiTypeElement>() {
@NotNull
@Override
protected PsiTypeElement compute() {
PsiParameterStub stub = getStub();
String typeText = TypeInfo.createTypeText(stub.getType(false));
assert typeText != null : stub;
return new ClsTypeElementImpl(ClsParameterImpl.this, typeText, ClsTypeElementImpl.VARIANCE_NONE);
}
};
}
示例4: getName
import com.intellij.psi.impl.java.stubs.PsiParameterStub; //导入依赖的package包/类
@Override
@NotNull
public final String getName() {
PsiParameterStub stub = getStub();
if (stub != null) {
return stub.getName();
}
return getNameIdentifier().getText();
}
示例5: isVarArgs
import com.intellij.psi.impl.java.stubs.PsiParameterStub; //导入依赖的package包/类
@Override
public boolean isVarArgs() {
final PsiParameterStub stub = getStub();
if (stub != null) {
return stub.isParameterTypeEllipsis();
}
myCachedType = null;
final PsiTypeElement typeElement = getTypeElement();
return typeElement != null && SourceTreeToPsiMap.psiToTreeNotNull(typeElement).findChildByType(JavaTokenType.ELLIPSIS) != null;
}
示例6: getName
import com.intellij.psi.impl.java.stubs.PsiParameterStub; //导入依赖的package包/类
@Override
@NotNull
public final String getName() {
PsiParameterStub stub = getStub();
if (stub != null) {
return stub.getName();
}
return getParameterIdentifier().getText();
}
示例7: getName
import com.intellij.psi.impl.java.stubs.PsiParameterStub; //导入依赖的package包/类
@Override
@NotNull
public final String getName()
{
PsiParameterStub stub = getStub();
if(stub != null)
{
return stub.getName();
}
return getNameIdentifier().getText();
}
示例8: isVarArgs
import com.intellij.psi.impl.java.stubs.PsiParameterStub; //导入依赖的package包/类
@Override
public boolean isVarArgs()
{
final PsiParameterStub stub = getStub();
if(stub != null)
{
return stub.isParameterTypeEllipsis();
}
myCachedType = null;
final PsiTypeElement typeElement = getTypeElement();
return typeElement != null && SourceTreeToPsiMap.psiToTreeNotNull(typeElement).findChildByType(JavaTokenType
.ELLIPSIS) != null;
}
示例9: getIndex
import com.intellij.psi.impl.java.stubs.PsiParameterStub; //导入依赖的package包/类
private int getIndex() {
final PsiParameterStub stub = getStub();
return stub.getParentStub().getChildrenStubs().indexOf(stub);
}
示例10: PsiParameterImpl
import com.intellij.psi.impl.java.stubs.PsiParameterStub; //导入依赖的package包/类
public PsiParameterImpl(@NotNull PsiParameterStub stub) {
this(stub, JavaStubElementTypes.PARAMETER);
}
示例11: PsiReceiverParameterImpl
import com.intellij.psi.impl.java.stubs.PsiParameterStub; //导入依赖的package包/类
public PsiReceiverParameterImpl(@NotNull PsiParameterStub stub) {
super(stub, JavaStubElementTypes.RECEIVER_PARAMETER);
}
示例12: getIndex
import com.intellij.psi.impl.java.stubs.PsiParameterStub; //导入依赖的package包/类
private int getIndex()
{
final PsiParameterStub stub = getStub();
return stub.getParentStub().getChildrenStubs().indexOf(stub);
}
示例13: PsiParameterImpl
import com.intellij.psi.impl.java.stubs.PsiParameterStub; //导入依赖的package包/类
public PsiParameterImpl(@NotNull PsiParameterStub stub)
{
this(stub, JavaStubElementTypes.PARAMETER);
}