Unnamed: 0 int64 0 305k | body stringlengths 7 52.9k | name stringlengths 1 185 |
|---|---|---|
35,600 | String () { return "Trait definition"; } | toString |
35,601 | void (@NotNull GroovyElementVisitor visitor) { visitor.visitTraitDefinition(this); } | accept |
35,602 | boolean (@NotNull PsiScopeProcessor processor, @NotNull ResolveState state, @Nullable PsiElement lastParent, @NotNull PsiElement place) { if (!super.processDeclarations(processor, state, lastParent, place)) return false; ElementClassHint hint = processor.getHint(ElementClassHint.KEY); if (!ResolveUtil.shouldProcessMeth... | processDeclarations |
35,603 | String () { return "Class definition"; } | toString |
35,604 | void (@NotNull GroovyElementVisitor visitor) { visitor.visitClassDefinition(this); } | accept |
35,605 | IElementType () { return GroovyTokenTypes.kEXTENDS; } | getKeywordType |
35,606 | void (@NotNull GroovyElementVisitor visitor) { visitor.visitExtendsClause(this); } | accept |
35,607 | String () { return "Extends clause"; } | toString |
35,608 | Role () { return Role.EXTENDS_LIST; } | getRole |
35,609 | String () { return "Annotation definition"; } | toString |
35,610 | boolean () { return true; } | isAnnotationType |
35,611 | boolean () { return true; } | isInterface |
35,612 | PsiClassType () { return TypesUtil.createTypeByFQClassName(CommonClassNames.JAVA_LANG_ANNOTATION_ANNOTATION, this); } | createAnnotationType |
35,613 | void (@NotNull GroovyElementVisitor visitor) { visitor.visitAnnotationTypeDefinition(this); } | accept |
35,614 | void (@NotNull GroovyElementVisitor visitor) { visitor.visitTypeDefinition(this); } | accept |
35,615 | int () { return getNameIdentifierGroovy().getTextRange().getStartOffset(); } | getTextOffset |
35,616 | String () { final GrTypeDefinitionStub stub = getStub(); if (stub != null) { return stub.getQualifiedName(); } PsiElement parent = getParent(); if (parent instanceof GroovyFile) { String packageName = ((GroovyFile)parent).getPackageName(); return !packageName.isEmpty() ? packageName + "." + getName() : getName(); } fin... | getQualifiedName |
35,617 | GrTypeDefinitionBody () { return getStubOrPsiChild(GroovyEmptyStubElementTypes.CLASS_BODY); } | getBody |
35,618 | ItemPresentation () { return ItemPresentationProviders.getItemPresentation(this); } | getPresentation |
35,619 | GrExtendsClause () { return getStubOrPsiChild(GroovyStubElementTypes.EXTENDS_CLAUSE); } | getExtendsClause |
35,620 | GrImplementsClause () { return getStubOrPsiChild(GroovyStubElementTypes.IMPLEMENTS_CLAUSE); } | getImplementsClause |
35,621 | PsiElement () { PsiElement result = findChildByType(TokenSets.PROPERTY_NAMES); assert result != null; return result; } | getNameIdentifierGroovy |
35,622 | boolean (@NotNull PsiScopeProcessor processor, @NotNull ResolveState state, @Nullable PsiElement lastParent, @NotNull PsiElement place) { return GrClassImplUtil.processDeclarations(this, processor, state, lastParent, place); } | processDeclarations |
35,623 | String () { final GrTypeDefinitionStub stub = getStub(); if (stub != null) { return stub.getName(); } return org.jetbrains.plugins.groovy.lang.psi.impl.PsiImplUtil.getName(this); } | getName |
35,624 | boolean (PsiElement another) { return GrClassImplUtil.isClassEquivalentTo(this, another); } | isEquivalentTo |
35,625 | boolean () { return false; } | isInterface |
35,626 | boolean () { return false; } | isAnnotationType |
35,627 | boolean () { return false; } | isEnum |
35,628 | boolean () { return false; } | isTrait |
35,629 | PsiReferenceList () { //return PsiImplUtil.getOrCreatePsiReferenceList(getExtendsClause(), PsiReferenceList.Role.EXTENDS_LIST); return getExtendsClause(); } | getExtendsList |
35,630 | PsiReferenceList () { //return PsiImplUtil.getOrCreatePsiReferenceList(getImplementsClause(), PsiReferenceList.Role.IMPLEMENTS_LIST); return getImplementsClause(); } | getImplementsList |
35,631 | PsiClass () { return GrClassImplUtil.getSuperClass(this); } | getSuperClass |
35,632 | PsiField (String name, boolean checkBases) { return GrClassImplUtil.findFieldByName(this, name, checkBases, false); } | findCodeFieldByName |
35,633 | PsiField (String name, boolean checkBases) { return GrClassImplUtil.findFieldByName(this, name, checkBases, true); } | findFieldByName |
35,634 | PsiMethod (@NotNull PsiMethod patternMethod, boolean checkBases) { return GrClassImplUtil.findMethodBySignature(this, patternMethod, checkBases); } | findMethodBySignature |
35,635 | PsiClass (String name, boolean checkBases) { return GrClassImplUtil.findInnerClassByName(this, name, checkBases); } | findInnerClassByName |
35,636 | PsiElement () { final GrTypeDefinitionBody body = getBody(); return body == null ? null : body.getLBrace(); } | getLBrace |
35,637 | PsiElement () { final GrTypeDefinitionBody body = getBody(); return body == null ? null : body.getRBrace(); } | getRBrace |
35,638 | boolean () { return false; } | isAnonymous |
35,639 | PsiIdentifier () { return PsiUtil.getJavaNameIdentifier(this); } | getNameIdentifier |
35,640 | PsiElement () { final GrTypeDefinitionStub stub = getStub(); if (stub != null) { return stub.getParentStub().getPsi(); } ASTNode treeElement = getNode(); ASTNode parent = treeElement.getTreeParent(); while (parent != null) { if (parent.getElementType() instanceof IStubElementType && !(parent.getElementType() == GroovyE... | getScope |
35,641 | boolean (@NotNull PsiClass baseClass, boolean checkDeep) { if (isTrait() && baseClass.isInterface() && !checkDeep) { for (PsiClassType superType : getImplementsListTypes()) { if (getManager().areElementsEquivalent(superType.resolve(), baseClass)) { return true; } } } return InheritanceImplUtil.isInheritor(this, baseCla... | isInheritor |
35,642 | boolean (@NotNull PsiClass baseClass, @Nullable PsiClass classToByPass) { return InheritanceImplUtil.isInheritorDeep(this, baseClass, classToByPass); } | isInheritorDeep |
35,643 | PsiClass () { PsiElement parent = getParent(); if (parent instanceof GrTypeDefinitionBody) { final PsiElement pparent = parent.getParent(); if (pparent instanceof PsiClass) { return (PsiClass)pparent; } } return null; } | getContainingClass |
35,644 | Collection<HierarchicalMethodSignature> () { return PsiSuperMethodImplUtil.getVisibleSignatures(this); } | getVisibleSignatures |
35,645 | GrModifierList () { return getStubOrPsiChild(GroovyStubElementTypes.MODIFIER_LIST); } | getModifierList |
35,646 | boolean (@NonNls @NotNull String name) { GrModifierList modifierList = getModifierList(); return modifierList != null && GrModifierListUtil.hasModifierProperty(modifierList, name, false); } | hasModifierProperty |
35,647 | GrDocComment () { return GrDocCommentUtil.findDocComment(this); } | getDocComment |
35,648 | boolean () { final GrTypeDefinitionStub stub = getStub(); if (stub != null) { return stub.isDeprecatedByDoc() || PsiImplUtil.isDeprecatedByAnnotation(this); } return PsiImplUtil.isDeprecatedByDocTag(this) || PsiImplUtil.isDeprecatedByAnnotation(this); } | isDeprecated |
35,649 | boolean () { return getTypeParameters().length > 0; } | hasTypeParameters |
35,650 | GrTypeParameterList () { return getStubOrPsiChild(GroovyEmptyStubElementTypes.TYPE_PARAMETER_LIST); } | getTypeParameterList |
35,651 | boolean () { return true; } | isVisibilitySupported |
35,652 | Icon (@IconFlags int flags) { Icon icon = getIconInner(); final boolean isLocked = (flags & ICON_FLAG_READ_STATUS) != 0 && !isWritable(); RowIcon rowIcon = IconManager.getInstance() .createLayeredIcon(this, icon, ElementPresentationUtil.getFlags(this, isLocked) | getFlagsInner()); if ((flags & ICON_FLAG_VISIBILITY) != ... | getElementIcon |
35,653 | int () { return !DumbService.isDumb(getProject()) && GroovyRunnerPsiUtil.isRunnable(this) ? ElementPresentationUtil.FLAGS_RUNNABLE : 0; } | getFlagsInner |
35,654 | Icon () { if (isAnnotationType()) return JetgroovyIcons.Groovy.AnnotationType; if (isTrait()) return JetgroovyIcons.Groovy.Trait; if (isInterface()) return JetgroovyIcons.Groovy.Interface; if (isEnum()) return JetgroovyIcons.Groovy.Enum; if (this instanceof GrRecordDefinition) { return JetgroovyIcons.Groovy.Record; } i... | getIconInner |
35,655 | boolean () { final PsiFile file = getContainingFile(); if (!(file instanceof GroovyFile groovyFile)) return false; if (groovyFile.isScript()) return false; final String name = getName(); final VirtualFile vFile = groovyFile.getVirtualFile(); return vFile != null && name != null && name.equals(vFile.getNameWithoutExtens... | isRenameFileOnClassRenaming |
35,656 | PsiElement () { return JavaPsiImplementationHelper.getInstance(getProject()).getOriginalClass(this); } | getOriginalElement |
35,657 | PsiMember (@Nullable PsiElement psiElement) { if (psiElement instanceof PsiMember) { return (PsiMember)psiElement; } if (psiElement instanceof GrVariableDeclaration) { final GrMember[] members = ((GrVariableDeclaration)psiElement).getMembers(); if (members.length > 0) { return members[0]; } } return null; } | getAnyMember |
35,658 | int (PsiElement member, GroovyCodeStyleSettingsFacade settings) { if (member instanceof PsiField) { if (member instanceof PsiEnumConstant) { return 1; } return ((PsiField)member).hasModifierProperty(PsiModifier.STATIC) ? settings.staticFieldsOrderWeight() + 1 : settings.fieldsOrderWeight() + 1; } if (member instanceof ... | getMemberOrderWeight |
35,659 | List<String> (@NotNull GrModifierList modifierList) { return myCache.getSyntheticModifiers(modifierList); } | getSyntheticModifiers |
35,660 | PsiElement (GrTypeDefinitionBody body, PsiMember member) { GroovyCodeStyleSettingsFacade settings = GroovyCodeStyleSettingsFacade.getInstance(getProject()); int order = getMemberOrderWeight(member, settings); if (order < 0) return null; PsiElement lastMember = null; for (PsiElement child = body.getFirstChild(); child !... | getDefaultAnchor |
35,661 | String () { return "Enumeration definition"; } | toString |
35,662 | GrEnumDefinitionBody () { return getStubOrPsiChild(GroovyEmptyStubElementTypes.ENUM_BODY); } | getBody |
35,663 | boolean () { return true; } | isEnum |
35,664 | PsiClassType () { JavaPsiFacade facade = JavaPsiFacade.getInstance(getProject()); PsiClass enumClass = facade.findClass(JAVA_LANG_ENUM, getResolveScope()); PsiElementFactory factory = facade.getElementFactory(); if (enumClass != null) { PsiSubstitutor substitutor = PsiSubstitutor.EMPTY; PsiTypeParameter[] typeParameter... | createEnumType |
35,665 | List<PsiMethod> (@NotNull TransformationContext context) { PsiManagerEx manager = getManager(); PsiElementFactory factory = JavaPsiFacade.getElementFactory(getProject()); PsiClassType thisType = context.eraseClassType(factory.createType(this, PsiSubstitutor.EMPTY)); List<PsiMethod> result = Arrays.asList( new LightMeth... | getDefEnumMethods |
35,666 | boolean (@NotNull PsiMethod method) { return method.getUserData(PREDEFINED_ENUM_METHOD) != null; } | isPredefinedEnumMethod |
35,667 | GrEnumConstantList () { GrEnumDefinitionBody enumDefinitionBody = getBody(); return enumDefinitionBody == null ? null : enumDefinitionBody.getEnumConstantList(); } | getEnumConstantList |
35,668 | void (@NotNull GroovyElementVisitor visitor) { visitor.visitEnumDefinition(this); } | accept |
35,669 | GrCodeReferenceElement () { GrTypeDefinitionStub stub = getStub(); if (stub != null) { GrCodeReferenceElement reference = stub.getBaseClassReference(); assert reference != null; return reference; } return findNotNullChildByClass(GrCodeReferenceElement.class); //not null because of definition =) } | getBaseClassReferenceGroovy |
35,670 | boolean (@NonNls @NotNull String name) { return PsiModifier.FINAL.equals(name); } | hasModifierProperty |
35,671 | GrArgumentList () { return findChildByClass(GrArgumentList.class); //not null because of definition } | getArgumentListGroovy |
35,672 | boolean () { return false; } | isInQualifiedNew |
35,673 | PsiJavaCodeReferenceElement () { return JavaPsiFacade.getElementFactory(getProject()).createReferenceElementByType(getBaseClassType()); } | getBaseClassReference |
35,674 | PsiClassType () { PsiClassType type = dereference(myCachedBaseType); if (type != null && type.isValid()) return type; type = new GrClassReferenceType(getBaseClassReferenceGroovy()); myCachedBaseType = new SoftReference<>(type); return type; } | getBaseClassType |
35,675 | PsiExpressionList () { return null; } | getArgumentList |
35,676 | PsiClass () { return getBaseClassType().resolve(); } | getBaseClass |
35,677 | PsiElement () { //noinspection ConstantConditions return getBaseClassReferenceGroovy().getReferenceNameElement(); } | getNameIdentifierGroovy |
35,678 | boolean (@NotNull PsiScopeProcessor processor, @NotNull ResolveState state, @Nullable PsiElement lastParent, @NotNull PsiElement place) { if (lastParent instanceof GrArgumentList) return true; GrCodeReferenceElement refElement = getBaseClassReferenceGroovy(); if (refElement == place || refElement == lastParent) return ... | processDeclarations |
35,679 | boolean () { return true; } | isAnonymous |
35,680 | PsiClass () { final PsiClass psiClass = getBaseClass(); if (psiClass != null && !psiClass.isInterface()) return psiClass; return JavaPsiFacade.getInstance(getProject()).findClass(CommonClassNames.JAVA_LANG_OBJECT, getResolveScope()); } | getSuperClass |
35,681 | PsiClass () { return null; } | getContainingClass |
35,682 | GrExtendsClause () { return null; } | getExtendsClause |
35,683 | GrImplementsClause () { return null; } | getImplementsClause |
35,684 | String () { return "Anonymous class"; } | toString |
35,685 | void () { super.subtreeChanged(); myCachedBaseType = null; } | subtreeChanged |
35,686 | Object () { final Object o = super.clone(); ((GrAnonymousClassDefinitionImpl)o).myCachedBaseType = null; return o; } | clone |
35,687 | String () { return null; } | getQualifiedName |
35,688 | String () { return null; } | getName |
35,689 | PsiIdentifier () { return null; } | getNameIdentifier |
35,690 | void (@NotNull GroovyElementVisitor visitor) { visitor.visitAnonymousClassDefinition(this); } | accept |
35,691 | GrEnumConstant () { return (GrEnumConstant)getParent(); } | getEnumConstant |
35,692 | GrCodeReferenceElement () { return new GrLightClassReferenceElement(getBaseClass(), this); } | getBaseClassReferenceGroovy |
35,693 | PsiClass () { PsiElement parent = getParent(); LOG.assertTrue(parent instanceof GrEnumConstant); PsiClass containingClass = ((GrEnumConstant)parent).getContainingClass(); LOG.assertTrue(containingClass != null); return containingClass; } | getBaseClass |
35,694 | PsiElement () { return getEnumConstant().getNameIdentifierGroovy(); } | getNameIdentifierGroovy |
35,695 | GrArgumentList () { return getEnumConstant().getArgumentList(); } | getArgumentListGroovy |
35,696 | GrTypeParameterList () { return null; } | getTypeParameterList |
35,697 | PsiElement () { return this; } | getOriginalElement |
35,698 | String () { return "Enum constant initializer"; } | toString |
35,699 | GrTypeDefinition[] () { return CachedValuesManager.getCachedValue(myDefinition, () -> CachedValueProvider.Result.create( myCodeMembersProvider.getCodeInnerClasses(myDefinition), myDependencies )).clone(); } | getCodeInnerClasses |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.