下面列出了怎么用com.intellij.psi.stubs.IStubElementType的API类实例代码及写法,或者点击链接到github查看源代码。
public PsiLetStub(StubElement parent, @NotNull IStubElementType elementType, String name, String qname, String alias, boolean isFunction, List<String> deconstructionNames) {
super(parent, elementType, name);
m_qname = qname;
m_alias = alias;
m_isFunction = isFunction;
m_deconstructionNames = deconstructionNames;
}
public CSharpReferenceExpressionStub(StubElement parent, IStubElementType elementType, String referenceText, int kindIndex, int memberAccessType, boolean global)
{
super(parent, elementType);
myGlobal = global;
myReferenceText = referenceText;
myKindIndex = kindIndex;
myMemberAccessTypeIndex = memberAccessType;
}
public PsiModuleStub(StubElement parent, @NotNull IStubElementType elementType, @Nullable String name, @Nullable String path, String alias,
boolean isComponent, boolean isInterface) {
super(parent, elementType, name);
m_path = path;
m_qname = path == null || path.length() == 0 ? "" + name : path + "." + name;
m_alias = alias;
m_isComponent = isComponent;
m_isInterface = isInterface;
}
public PsiModuleStub(StubElement parent, @NotNull IStubElementType elementType, @Nullable StringRef name, @Nullable String path, String alias,
boolean isComponent, boolean isInterface) {
super(parent, elementType, name);
m_path = path;
m_qname = path == null || path.length() == 0 ? "" + name : path + "." + name;
m_alias = alias;
m_isComponent = isComponent;
m_isInterface = isInterface;
}
public PsiFakeModule(@NotNull ORTypes types, @NotNull PsiModuleStub stub, @NotNull IStubElementType nodeType) {
super(types, stub, nodeType);
}
public PsiVariantDeclaration(@NotNull ORTypes types, @NotNull PsiVariantDeclarationStub stub, @NotNull IStubElementType nodeType) {
super(types, stub, nodeType);
}
public CSharpStubTupleTypeImpl(@Nonnull EmptyStub<CSharpTupleType> stub,
@Nonnull IStubElementType<? extends EmptyStub<CSharpTupleType>, ?> nodeType)
{
super(stub, nodeType);
}
public MemberStub(StubElement parent, IStubElementType elementType, @Nullable String namespaceQName, int otherModifierMask)
{
super(parent, elementType);
myParentQName = namespaceQName;
myOtherModifierMask = otherModifierMask;
}
public CSharpNamespaceDeclStub(StubElement parent, IStubElementType elementType, @Nullable StringRef referenceTextRef)
{
super(parent, elementType);
myReferenceTextRef = StringRef.toString(referenceTextRef);
}
public PsiParameterImpl(@NotNull ORTypes types, @NotNull PsiParameterStub stub, @NotNull IStubElementType nodeType) {
super(types, stub, nodeType);
}
public PsiLetImpl(@NotNull ORTypes types, @NotNull PsiLetStub stub, @NotNull IStubElementType nodeType) {
super(types, stub, nodeType);
}
public PsiTokenStub(@NotNull T types, @NotNull S stub, @NotNull IStubElementType nodeType) {
super(stub, nodeType);
m_types = types;
}
public PsiFunctorImpl(@NotNull ORTypes types, @NotNull PsiModuleStub stub, @NotNull IStubElementType nodeType) {
super(types, stub, nodeType);
}
public PsiExceptionImpl(@NotNull ORTypes types, @NotNull PsiExceptionStub stub, @NotNull IStubElementType nodeType) {
super(types, stub, nodeType);
}
public CSharpStubUserTypeImpl(@Nonnull CSharpWithStringValueStub<CSharpUserType> stub, @Nonnull IStubElementType<? extends CSharpWithStringValueStub<CSharpUserType>, ?> nodeType)
{
super(stub, nodeType);
}
public PsiExternalImpl(@NotNull ORTypes types, @NotNull PsiExternalStub stub, @NotNull IStubElementType nodeType) {
super(types, stub, nodeType);
}
public CSharpAttributeListStub(StubElement parent, IStubElementType elementType, @Nullable DotNetAttributeTargetType targetType)
{
super(parent, elementType);
myTargetType = targetType;
}
public PsiRecordFieldStub(StubElement parent, @NotNull IStubElementType elementType, String name, String path) {
super(parent, elementType, name);
m_path = path;
m_qname = path + "." + name;
}
public PsiRecordFieldStub(StubElement parent, @NotNull IStubElementType elementType, StringRef name, String path) {
super(parent, elementType, name);
m_path = path;
m_qname = path + "." + name;
}
public CSharpStubElementImpl(@Nonnull S stub, @Nonnull IStubElementType<? extends S, ?> nodeType)
{
super(stub, nodeType);
}
public PsiValStub(StubElement parent, @NotNull IStubElementType elementType, StringRef name, String path, boolean isFunction) {
super(parent, elementType, name);
m_path = path;
m_qname = path + "." + name;
m_isFunction = isFunction;
}
public CSharpStubPointerTypeImpl(@Nonnull EmptyStub<DotNetPointerType> stub,
@Nonnull IStubElementType<? extends EmptyStub<DotNetPointerType>, ?> nodeType)
{
super(stub, nodeType);
}
public PsiTypeStub(StubElement parent, @NotNull IStubElementType elementType, StringRef name, String path) {
super(parent, elementType, name);
m_path = path;
m_qname = path + "." + name;
}
public PsiExternalStub(StubElement parent, @NotNull IStubElementType elementType, StringRef name, String path, boolean isFunction) {
super(parent, elementType, name);
m_path = path;
m_qname = path + "." + name;
m_isFunction = isFunction;
}
public PsiParameterStub(StubElement parent, @NotNull IStubElementType elementType, String name, String qname) {
super(parent, elementType, name);
m_qname = qname;
}
public PsiParameterStub(StubElement parent, @NotNull IStubElementType elementType, StringRef name, String qname) {
super(parent, elementType, name);
m_qname = qname;
}
public CSharpIdentifierStub(StubElement parent, IStubElementType elementType, @Nullable StringRef value)
{
this(parent, elementType, StringRef.toString(value));
}
public PsiExceptionStub(StubElement parent, @NotNull IStubElementType elementType, StringRef name, String path) {
super(parent, elementType, name);
m_path = path;
m_qname = path + "." + name;
}
public PsiVariantDeclarationStub(StubElement parent, @NotNull IStubElementType elementType, String name, String path) {
super(parent, elementType, name);
m_path = path;
m_qname = path + "." + name;
}
public PsiVariantDeclarationStub(StubElement parent, @NotNull IStubElementType elementType, StringRef name, String path) {
super(parent, elementType, name);
m_path = path;
m_qname = path + "." + name;
}