本文整理匯總了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);
}