/
ElixirUnmatchedUnqualifiedNoParenthesesCallImpl.java
195 lines (155 loc) · 5.37 KB
/
ElixirUnmatchedUnqualifiedNoParenthesesCallImpl.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
// This is a generated file. Not intended for manual editing.
package org.elixir_lang.psi.impl;
import com.ericsson.otp.erlang.OtpErlangObject;
import com.intellij.lang.ASTNode;
import com.intellij.navigation.ItemPresentation;
import com.intellij.psi.PsiElement;
import com.intellij.psi.PsiElementVisitor;
import com.intellij.psi.PsiReference;
import com.intellij.psi.ResolveState;
import com.intellij.psi.scope.PsiScopeProcessor;
import com.intellij.psi.stubs.IStubElementType;
import com.intellij.psi.util.PsiTreeUtil;
import org.apache.commons.lang.math.IntRange;
import org.elixir_lang.psi.*;
import org.elixir_lang.psi.stub.UnmatchedUnqualifiedNoParenthesesCall;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import java.util.Set;
public class ElixirUnmatchedUnqualifiedNoParenthesesCallImpl extends NamedStubbedPsiElementBase<UnmatchedUnqualifiedNoParenthesesCall> implements ElixirUnmatchedUnqualifiedNoParenthesesCall {
public ElixirUnmatchedUnqualifiedNoParenthesesCallImpl(UnmatchedUnqualifiedNoParenthesesCall stub, IStubElementType type) {
super(stub, type);
}
public ElixirUnmatchedUnqualifiedNoParenthesesCallImpl(ASTNode node) {
super(node);
}
public void accept(@NotNull ElixirVisitor visitor) {
visitor.visitUnmatchedUnqualifiedNoParenthesesCall(this);
}
public void accept(@NotNull PsiElementVisitor visitor) {
if (visitor instanceof ElixirVisitor) accept((ElixirVisitor)visitor);
else super.accept(visitor);
}
@Override
@Nullable
public ElixirDoBlock getDoBlock() {
return PsiTreeUtil.getChildOfType(this, ElixirDoBlock.class);
}
@Override
@NotNull
public ElixirIdentifier getIdentifier() {
return notNullChild(PsiTreeUtil.getChildOfType(this, ElixirIdentifier.class));
}
@Override
@NotNull
public ElixirNoParenthesesOneArgument getNoParenthesesOneArgument() {
return notNullChild(PsiTreeUtil.getChildOfType(this, ElixirNoParenthesesOneArgument.class));
}
@Nullable
public String canonicalName() {
return ElixirPsiImplUtil.canonicalName(this);
}
@NotNull
public Set<String> canonicalNameSet() {
return ElixirPsiImplUtil.canonicalNameSet(this);
}
public int exportedArity() {
return ElixirPsiImplUtil.exportedArity(this);
}
@Nullable
public String exportedName() {
return ElixirPsiImplUtil.exportedName(this);
}
@Nullable
public String functionName() {
return ElixirPsiImplUtil.functionName(this);
}
@NotNull
public PsiElement functionNameElement() {
return ElixirPsiImplUtil.functionNameElement(this);
}
public boolean hasDoBlockOrKeyword() {
return ElixirPsiImplUtil.hasDoBlockOrKeyword(this);
}
public boolean isExported() {
return ElixirPsiImplUtil.isExported(this);
}
@Nullable
public String getName() {
return ElixirPsiImplUtil.getName(this);
}
public PsiElement getNameIdentifier() {
return ElixirPsiImplUtil.getNameIdentifier(this);
}
@NotNull
public ItemPresentation getPresentation() {
return ElixirPsiImplUtil.getPresentation(this);
}
@Nullable
public PsiReference getReference() {
return ElixirPsiImplUtil.getReference(this);
}
public boolean isCalling(String resolvedModuleName, String functionName) {
return ElixirPsiImplUtil.isCalling(this, resolvedModuleName, functionName);
}
public boolean isCalling(String resolvedModuleName, String functionName, int resolvedFinalArity) {
return ElixirPsiImplUtil.isCalling(this, resolvedModuleName, functionName, resolvedFinalArity);
}
public boolean isCallingMacro(String resolvedModuleName, String functionName) {
return ElixirPsiImplUtil.isCallingMacro(this, resolvedModuleName, functionName);
}
public boolean isCallingMacro(String resolvedModuleName, String functionName, int resolvedFinalArity) {
return ElixirPsiImplUtil.isCallingMacro(this, resolvedModuleName, functionName, resolvedFinalArity);
}
@Nullable
public String moduleName() {
return ElixirPsiImplUtil.moduleName(this);
}
@NotNull
public PsiElement[] primaryArguments() {
return ElixirPsiImplUtil.primaryArguments(this);
}
@Nullable
public Integer primaryArity() {
return ElixirPsiImplUtil.primaryArity(this);
}
public boolean processDeclarations(PsiScopeProcessor processor, ResolveState state, PsiElement lastParent, PsiElement place) {
return ElixirPsiImplUtil.processDeclarations(this, processor, state, lastParent, place);
}
@NotNull
public OtpErlangObject quote() {
return ElixirPsiImplUtil.quote(this);
}
@NotNull
public int resolvedFinalArity() {
return ElixirPsiImplUtil.resolvedFinalArity(this);
}
@NotNull
public IntRange resolvedFinalArityRange() {
return ElixirPsiImplUtil.resolvedFinalArityRange(this);
}
@NotNull
public String resolvedModuleName() {
return ElixirPsiImplUtil.resolvedModuleName(this);
}
@Nullable
public Integer resolvedPrimaryArity() {
return ElixirPsiImplUtil.resolvedPrimaryArity(this);
}
@Nullable
public Integer resolvedSecondaryArity() {
return ElixirPsiImplUtil.resolvedSecondaryArity(this);
}
@Nullable
public PsiElement[] secondaryArguments() {
return ElixirPsiImplUtil.secondaryArguments(this);
}
@Nullable
public Integer secondaryArity() {
return ElixirPsiImplUtil.secondaryArity(this);
}
@NotNull
public PsiElement setName(String newName) {
return ElixirPsiImplUtil.setName(this, newName);
}
}