Unnamed: 0
int64
0
305k
body
stringlengths
7
52.9k
name
stringlengths
1
185
34,900
void (@NotNull PsiElementVisitor visitor) { if (visitor instanceof JavaElementVisitor) { ((JavaElementVisitor) visitor).visitReferenceList(this); } else { visitor.visitElement(this); } }
accept
34,901
Role () { return Role.THROWS_LIST; }
getRole
34,902
String () { return "Light Reference List"; }
toString
34,903
GrParameter (@NotNull GrParameter parameter) { myParameters.add(parameter); myCachedParameters = null; return parameter; }
addParameter
34,904
String () { return "GrLightParameterListBuilder"; }
toString
34,905
void (@NotNull PsiMethod method, PsiSubstitutor substitutor, PsiMethod scope) { for (PsiParameter parameter : method.getParameterList().getParameters()) { GrLightParameter p = new GrLightParameter(parameter.getName(), substitutor.substitute(parameter.getType()), scope); if (parameter instanceof GrParameter) { p.setOptional(((GrParameter)parameter).isOptional()); } addParameter(p); } }
copyParameters
34,906
int (GrParameter parameter) { return getParameterIndex(parameter); }
getParameterNumber
34,907
PsiElement () { return null; }
getLParen
34,908
PsiElement () { return null; }
getRParen
34,909
TextRange () { throw new IllegalStateException(); }
getParametersRange
34,910
int (@NotNull PsiParameter parameter) { //noinspection SuspiciousMethodCalls return myParameters.indexOf(parameter); }
getParameterIndex
34,911
int () { return myParameters.size(); }
getParametersCount
34,912
void (@NotNull PsiElementVisitor visitor) { if (visitor instanceof JavaElementVisitor) { ((JavaElementVisitor) visitor).visitParameterList(this); } else { visitor.visitElement(this); } }
accept
34,913
void (@NotNull GroovyElementVisitor visitor) { visitor.visitParameterList(this); }
accept
34,914
void (@NotNull GroovyElementVisitor visitor) { }
acceptChildren
34,915
GrParameter (int index) { GrParameter removed = myParameters.remove(index); myCachedParameters = null; return removed; }
removeParameter
34,916
void () { myParameters.clear(); myCachedParameters = null; }
clear
34,917
boolean (Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; GrLightParameterListBuilder builder = (GrLightParameterListBuilder)o; return Objects.equals(myParameters, builder.myParameters); }
equals
34,918
int () { return Objects.hash(myParameters); }
hashCode
34,919
String () { return "Synthetic reference list"; }
toString
34,920
Role () { return myRole; }
getRole
34,921
void (@NotNull PsiElementVisitor visitor) { if (visitor instanceof JavaElementVisitor) { ((JavaElementVisitor)visitor).visitClass(this); } else { visitor.visitElement(this); } }
accept
34,922
PsiElement () { return new GroovyScriptClass(myFile); }
copy
34,923
GroovyFile () { return myFile; }
getContainingFile
34,924
TextRange () { return myFile.getTextRange(); }
getTextRange
34,925
int () { return 0; }
getTextOffset
34,926
boolean () { return myFile.isValid() && myFile.isScript(); }
isValid
34,927
String () { return StringUtil.getQualifiedName(myFile.getPackageName(), getName()); }
getQualifiedName
34,928
boolean () { return myFile.isWritable(); }
isWritable
34,929
PsiElement () { return myFile; }
getScope
34,930
String () { return FileUtilRt.getNameWithoutExtension(myFile.getName()); }
getName
34,931
boolean (@NotNull final PsiScopeProcessor processor, @NotNull final ResolveState state, @Nullable PsiElement lastParent, @NotNull PsiElement place) { if (shouldProcessMethods(processor) || shouldProcessProperties(processor)) { return GrClassImplUtil.processDeclarations(this, processor, state, lastParent, place); } else { return true; } }
processDeclarations
34,932
PsiElement () { return myFile; }
getContext
34,933
ItemPresentation () { return new ItemPresentation() { @Override public String getPresentableText() { return getName(); } @Override public String getLocationString() { final String packageName = myFile.getPackageName(); return "(groovy script" + (packageName.isEmpty() ? "" : ", " + packageName) + ")"; } @Override public Icon getIcon(boolean open) { return GroovyScriptClass.this.getIcon(ICON_FLAG_VISIBILITY | ICON_FLAG_READ_STATUS); } }; }
getPresentation
34,934
String () { return getName(); }
getPresentableText
34,935
String () { final String packageName = myFile.getPackageName(); return "(groovy script" + (packageName.isEmpty() ? "" : ", " + packageName) + ")"; }
getLocationString
34,936
Icon (boolean open) { return GroovyScriptClass.this.getIcon(ICON_FLAG_VISIBILITY | ICON_FLAG_READ_STATUS); }
getIcon
34,937
PsiElement () { return JavaPsiImplementationHelper.getInstance(getProject()).getOriginalClass(this); }
getOriginalElement
34,938
boolean () { return true; }
isVisibilitySupported
34,939
Icon (int flags) { RowIcon baseIcon = IconManager.getInstance().createLayeredIcon(this, JetgroovyIcons.Groovy.Class, 0); return ElementPresentationUtil.addVisibilityIcon(this, flags, baseIcon); }
getIcon
34,940
GrAccessorMethod () { return null; }
getSetter
34,941
GrVariable () { return (GrVariable)getNavigationElement(); }
getOriginalVariable
34,942
int (PsiTypeParameter typeParameter) { //noinspection SuspiciousMethodCalls return myTypeParameters.indexOf(typeParameter); }
getTypeParameterIndex
34,943
void (@NotNull GroovyElementVisitor visitor) { }
accept
34,944
void (@NotNull GroovyElementVisitor visitor) { }
acceptChildren
34,945
String () { return "Light Groovy type parameter list"; }
toString
34,946
GrLightTypeParameterList (@NotNull GrTypeParameter typeParameter) { myTypeParameters.add(typeParameter); return this; }
addTypeParameter
34,947
PsiElement (PsiElement navigationElement) { return navigationElement.getContainingFile(); }
getDeclarationScope
34,948
boolean () { return getNavigationElement() != this; }
isWritable
34,949
PsiFile () { if (!myDeclarations.isEmpty()) { return myDeclarations.get(0).getContainingFile(); } else { return getDeclarationScope().getContainingFile(); } }
getContainingFile
34,950
boolean () { for (PsiElement declaration : myDeclarations) { if (!declaration.isValid()) return false; } return true; }
isValid
34,951
SearchScope () { return new LocalSearchScope(getDeclarationScope()); }
getUseScope
34,952
boolean (PsiElement another) { return myDeclarations.contains(another) || super.isEquivalentTo(another); }
isEquivalentTo
34,953
Object () { return myCreatorKey; }
getCreatorKey
34,954
void (Object creatorKey) { myCreatorKey = creatorKey; }
setCreatorKey
34,955
List<PsiElement> () { return myDeclarations; }
getDeclarations
34,956
boolean (Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; GrLightVariable variable = (GrLightVariable)o; return Objects.equals(getName(), variable.getName()) && Objects.equals(myDeclarations, variable.myDeclarations) && Objects.equals(myCreatorKey, variable.myCreatorKey); }
equals
34,957
int () { return Objects.hash(getName(), myDeclarations, myCreatorKey); }
hashCode
34,958
boolean () { return false; }
isValid
34,959
PsiElement () { if (myContext != null) return myContext; return super.getContext(); }
getContext
34,960
void (@Nullable PsiElement context) { myContext = context; }
setContext
34,961
void (@NotNull PsiElement navigationElement) { myNavigationElementInit = true; super.setNavigationElement(navigationElement); }
setNavigationElement
34,962
PsiElement () { if (!myNavigationElementInit) { setNavigationElement(myWrappedMethod.getNavigationElement()); // getNavigationElement() can get long time if wrapped method is a ClsMethod. } return super.getNavigationElement(); }
getNavigationElement
34,963
PsiType () { PsiType type = super.getReturnType(); if (type == TYPE_MARKER) { type = myWrappedMethod.getReturnType(); super.setReturnType(type); } return type; }
getReturnType
34,964
boolean () { if (myNavigationElementInit) { return super.isValid(); // This will call isValid() on navigationElement } return myWrappedMethod.isValid(); }
isValid
34,965
GrMethodWrapper (@NotNull PsiMethod method) { return new GrMethodWrapper(method, PsiSubstitutor.EMPTY); }
wrap
34,966
GrLightMethodBuilder (GrMethod method, PsiSubstitutor substitutor) { return new GrMethodWrapper(method, substitutor); }
wrap
34,967
GrMethodWrapper (@NotNull PsiMethod method, @NlsSafe @NotNull String newName) { return new GrMethodWrapper(method, PsiSubstitutor.EMPTY, newName); }
wrap
34,968
PsiMethod () { return myWrappedMethod; }
getPrototype
34,969
PsiType () { return myType; }
getType
34,970
void (@NotNull GroovyElementVisitor visitor) { visitor.visitTypeElement(this); }
accept
34,971
void (@NotNull GroovyElementVisitor visitor) { }
acceptChildren
34,972
String () { return "light type element"; }
toString
34,973
String () { return "code block wrapper to represent java codeBlock"; }
toString
34,974
PsiElement () { final PsiElement nextSibling = myCodeBlock.getLBrace().getNextSibling(); return nextSibling == getRBrace() ? null : nextSibling; }
getFirstBodyElement
34,975
PsiElement () { final PsiElement rBrace = myCodeBlock.getRBrace(); if (rBrace != null) { final PsiElement prevSibling = rBrace.getPrevSibling(); return prevSibling == myCodeBlock.getLBrace() ? null : prevSibling; } return getLastChild(); }
getLastBodyElement
34,976
PsiJavaToken () { return getOrCreateJavaToken(myCodeBlock.getLBrace(), JavaTokenType.LBRACE); }
getLBrace
34,977
PsiJavaToken () { return getOrCreateJavaToken(myCodeBlock.getRBrace(), JavaTokenType.RBRACE); }
getRBrace
34,978
PsiJavaToken (@Nullable PsiElement element, @NotNull IElementType type) { if (element == null) return null; final SoftReference<PsiJavaToken> ref = element.getUserData(PSI_JAVA_TOKEN); final PsiJavaToken token = dereference(ref); if (token != null) return token; final LightJavaToken newToken = new LightJavaToken(element, type); element.putUserData(PSI_JAVA_TOKEN, new SoftReference<>(newToken)); return newToken; }
getOrCreateJavaToken
34,979
boolean (PsiElement place) { return false; }
shouldChangeModificationCount
34,980
TextRange () { return myCodeBlock.getTextRange(); }
getTextRange
34,981
int () { return myCodeBlock.getStartOffsetInParent(); }
getStartOffsetInParent
34,982
PsiFile () { return myCodeBlock.getContainingFile(); }
getContainingFile
34,983
int () { return myCodeBlock.getTextOffset(); }
getTextOffset
34,984
String () { return myCodeBlock.getText(); }
getText
34,985
PsiElement () { return myCodeBlock; }
getNavigationElement
34,986
boolean () { return myCodeBlock.isValid(); }
isValid
34,987
PsiElement () { return new GrLightIdentifier(getManager(), getName()); }
getNameIdentifierGroovy
34,988
GrDocComment () { return null; }
getDocComment
34,989
void (@NotNull GroovyElementVisitor visitor) { }
accept
34,990
void (@NotNull GroovyElementVisitor visitor) { }
acceptChildren
34,991
boolean () { return getTypeParameters().length != 0; }
hasTypeParameters
34,992
GrLightModifierList () { return myModifierList; }
getModifierList
34,993
boolean () { return false; }
isDeprecated
34,994
boolean (@PsiModifier.ModifierConstant @NonNls @NotNull String name) { return getModifierList().hasModifierProperty(name); }
hasModifierProperty
34,995
boolean () { return false; }
isInterface
34,996
boolean () { return false; }
isAnnotationType
34,997
boolean () { return false; }
isEnum
34,998
PsiReferenceList () { return null; }
getExtendsList
34,999
PsiReferenceList () { return null; }
getImplementsList