Unnamed: 0 int64 0 305k | body stringlengths 7 52.9k | name stringlengths 1 185 |
|---|---|---|
303,700 | ChildrenDescriptionsHolder<FixedChildDescriptionImpl> () { return myFixed; } | getFixed |
303,701 | Object (DomInvocationHandler handler, Object[] args) { return invoke(0, handler.getProxy()); } | invoke |
303,702 | Object (final int i, final Object object) { final Object o = myMethods[i].invoke(object, ArrayUtilRt.EMPTY_OBJECT_ARRAY); if (i == myLastElement) return o; if (o instanceof List) { List<Object> result = new ArrayList<>(); for (Object o1 : (List<?>)o) { result.add(invoke(i + 1, o1)); } return result; } return invoke(i +... | invoke |
303,703 | DomNameStrategy (@NotNull DomElement parent) { final DomNameStrategy strategy = DomImplUtil.getDomNameStrategy(ClassUtil.getRawType(getType()), true); return strategy == null ? parent.getNameStrategy() : strategy; } | getDomNameStrategy |
303,704 | JavaMethod () { return myGetterMethod; } | getGetterMethod |
303,705 | String () { return "Attribute:" + getXmlName(); } | toString |
303,706 | String (@NotNull DomNameStrategy strategy) { throw new UnsupportedOperationException("Method getCommonPresentableName is not yet implemented in " + getClass().getName()); } | getCommonPresentableName |
303,707 | GenericAttributeValue (DomElement parent) { final DomInvocationHandler handler = DomManagerImpl.getDomInvocationHandler(parent); if (handler != null) { return getDomAttributeValue(handler); } return (GenericAttributeValue)myGetterMethod.invoke(parent, ArrayUtilRt.EMPTY_OBJECT_ARRAY); } | getDomAttributeValue |
303,708 | GenericAttributeValue (final DomInvocationHandler handler) { return (GenericAttributeValue)handler.getAttributeChild(this).getProxy(); } | getDomAttributeValue |
303,709 | boolean (final Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; if (!super.equals(o)) return false; final AttributeChildDescriptionImpl that = (AttributeChildDescriptionImpl)o; if (myGetterMethod != null ? !myGetterMethod.equals(that.myGetterMethod) : that.myGetterMetho... | equals |
303,710 | int () { int result = super.hashCode(); result = 29 * result + (myGetterMethod != null ? myGetterMethod.hashCode() : 0); return result; } | hashCode |
303,711 | void (final Class<?> aClass) { for (final Method method : ReflectionUtil.getClassDeclaredMethods(aClass)) { if ("equals".equals(method.getName())) { ourCoreInvocations.put(new JavaMethodSignature(method), (handler, args) -> { final DomElement proxy = handler.getProxy(); final Object arg = args[0]; if (proxy == arg) ret... | addCoreInvocations |
303,712 | Type (@NotNull Type nominalType) { return nominalType; } | narrowType |
303,713 | void () { final String s = checkValidity(); if (s != null) { throw new AssertionError(myType.toString() + " @" + hashCode() + "\nclass=" + getClass() + "\nxml=" + getXmlElement() + "; " + s); } } | assertValid |
303,714 | Type () { return myType; } | getDomElementType |
303,715 | void (final @Nullable String value) { final XmlTag tag = ensureTagExists(); myManager.runChange(() -> setTagValue(tag, value)); myManager.fireEvent(new DomEvent(getProxy(), false)); } | setValue |
303,716 | void (final DomElement other) { if (other == getProxy()) return; assert other.getDomElementType().equals(myType) : "Can't copy from " + other.getDomElementType() + " to " + myType; if (other.getXmlElement() == null) { undefine(); return; } myManager.performAtomicChange(() -> { ensureXmlElementExists(); final DomInvocat... | copyFrom |
303,717 | DomElement () { throw new UnsupportedOperationException(); } | createPathStableCopy |
303,718 | String () { final DomInvocationHandler parent = getParentHandler(); assert parent != null : "this operation should be performed on the DOM having a physical parent, your DOM may be not very fresh"; final XmlElement element = parent.getXmlElement(); assert element != null; return getXmlName().getNamespace(element, getFi... | getXmlElementNamespace |
303,719 | Module () { final Module module = ModuleUtilCore.findModuleForPsiElement(getFile()); return module != null ? module : DomUtil.getFile(this).getUserData(DomManager.MOCK_ELEMENT_MODULE); } | getModule |
303,720 | XmlTag () { assertValid(); XmlTag tag = getXmlTag(); if (tag != null) return tag; tag = setEmptyXmlTag(); setXmlElement(tag); final DomElement element = getProxy(); myManager.fireEvent(new DomEvent(element, true)); addRequiredChildren(); return getXmlTag(); } | ensureTagExists |
303,721 | XmlElement () { return getParentStrategy().getXmlElement(); } | getXmlElement |
303,722 | boolean () { return getParentStrategy().isPhysical(); } | exists |
303,723 | DomParentStrategy () { myParentStrategy = myParentStrategy.refreshStrategy(this); return myParentStrategy; } | getParentStrategy |
303,724 | XmlElement () { return ensureTagExists(); } | ensureXmlElementExists |
303,725 | XmlTag (final EvaluatedXmlName tagName) { final String localName = tagName.getXmlName().getLocalName(); if (localName.contains(":")) { try { return XmlElementFactory.getInstance(myManager.getProject()).createTagFromText("<" + localName + "/>"); } catch (IncorrectOperationException e) { LOG.error(e); } } final XmlElemen... | createChildTag |
303,726 | boolean () { return checkValidity() == null; } | isValid |
303,727 | DomGenericInfoEx () { return myGenericInfo; } | getGenericInfo |
303,728 | void () { undefineInternal(); } | undefine |
303,729 | void (final XmlTag tag) { final boolean changing = myManager.setChanging(true); try { tag.delete(); } catch (IncorrectOperationException e) { LOG.error(e); } finally { myManager.setChanging(changing); } } | deleteTag |
303,730 | void () { myManager.fireEvent(new DomEvent(getProxy(), false)); } | fireUndefinedEvent |
303,731 | void () { for (final AbstractDomChildrenDescription description : getGenericInfo().getChildrenDescriptions()) { if (description instanceof DomAttributeChildDescription) { final Required required = description.getAnnotation(Required.class); if (required != null && required.value()) { description.getValues(getProxy()).ge... | addRequiredChildren |
303,732 | String () { return myTagName.getXmlName().getLocalName(); } | getXmlElementName |
303,733 | EvaluatedXmlName () { return myTagName; } | getXmlName |
303,734 | void (final DomElementVisitor visitor) { ProgressManager.checkCanceled(); myManager.getApplicationComponent().getVisitorDescription(visitor.getClass()).acceptElement(visitor, getProxy()); } | accept |
303,735 | void (DomElementVisitor visitor) { ProgressManager.checkCanceled(); final DomElement element = getProxy(); List<? extends AbstractDomChildrenDescription> descriptions = getGenericInfo().getChildrenDescriptions(); for (int i = 0, descriptionsSize = descriptions.size(); i < descriptionsSize; i++) { AbstractDomChildrenDes... | acceptChildren |
303,736 | Converter () { Converter converter = myScalarConverter; if (converter == null) { myScalarConverter = converter = createConverter(ourGetValue); } return converter; } | getScalarConverter |
303,737 | Converter (final JavaMethod method) { final Type returnType = method.getGenericReturnType(); final Type type = returnType == void.class ? method.getGenericParameterTypes()[0] : returnType; final Class parameter = DomUtil.substituteGenericType(type, myType); if (parameter == null) { LOG.error(type + " " + myType); } Con... | createConverter |
303,738 | AbstractDomChildDescriptionImpl () { return myChildDescription; } | getChildDescription |
303,739 | DomElement () { DomElement proxy = myProxy; if (proxy == null) { Class<?> rawType = getRawType(); Class<? extends DomElement> implementation = myManager.getApplicationComponent().getImplementation(rawType); final boolean isInterface = rawType.isInterface(); if (implementation == null && !isInterface) { //noinspection u... | getProxy |
303,740 | XmlFile () { return getParentStrategy().getContainingFile(this); } | getFile |
303,741 | DomNameStrategy () { final Class<?> rawType = getRawType(); final DomNameStrategy strategy = DomImplUtil.getDomNameStrategy(rawType, isAttribute()); if (strategy != null) { return strategy; } final DomInvocationHandler handler = getParentHandler(); return handler == null ? DomNameStrategy.HYPHEN_STRATEGY : handler.getN... | getNameStrategy |
303,742 | boolean () { return false; } | isAttribute |
303,743 | ElementPresentation () { ElementPresentationTemplate template = getChildDescription().getPresentationTemplate(); if (template != null) { return template.createPresentation(getProxy()); } return new ElementPresentation() { @Override public String getElementName() { return ElementPresentationManager.getElementName(getPro... | getPresentation |
303,744 | String () { return ElementPresentationManager.getElementName(getProxy()); } | getElementName |
303,745 | String () { return ElementPresentationManager.getTypeNameForObject(getProxy()); } | getTypeName |
303,746 | Icon () { return ElementPresentationManager.getIconOld(getProxy()); } | getIcon |
303,747 | GlobalSearchScope () { return DomUtil.getFile(this).getResolveScope(); } | getResolveScope |
303,748 | DomInvocationHandler (final Pair<? extends FixedChildDescriptionImpl, Integer> info) { final FixedChildDescriptionImpl description = info.first; XmlName xmlName = description.getXmlName(); final EvaluatedXmlName evaluatedXmlName = createEvaluatedXmlName(xmlName); if (myStub != null && description.isStubbed()) { List<Do... | getFixedChild |
303,749 | DomInvocationHandler (final AttributeChildDescriptionImpl description) { final EvaluatedXmlName evaluatedXmlName = createEvaluatedXmlName(description.getXmlName()); if (myStub != null && description.isStubbed()) { AttributeStub stub = myStub.getAttributeStub(description.getXmlName()); StubParentStrategy strategy = Stub... | getAttributeChild |
303,750 | Invocation (Method method) { Invocation invocation = myAccessorInvocations.get(method); if (invocation != null) return invocation; invocation = myInvocationCache.getInvocation(method); if (invocation != null) return invocation; invocation = createAccessorInvocation(method); myAccessorInvocations = myAccessorInvocations... | findInvocation |
303,751 | Invocation (Method method) { Invocation invocation; JavaMethod javaMethod = myInvocationCache.getInternedMethod(method); if (myInvocationCache.isTagValueGetter(javaMethod)) { invocation = new GetInvocation(createConverter(javaMethod)); } else if (myInvocationCache.isTagValueSetter(javaMethod)) { invocation = new SetInv... | createAccessorInvocation |
303,752 | void (final XmlTag tag, final String value) { tag.getValue().setText(value); } | setTagValue |
303,753 | String (final XmlTag tag) { return tag.getValue().getTrimmedText(); } | getTagValue |
303,754 | String () { if (ReflectionUtil.isAssignable(GenericValue.class, getRawType())) { return ((GenericValue<?>)getProxy()).getStringValue(); } return myType.toString() + " @" + hashCode(); } | toString |
303,755 | void () { setXmlElement(null); } | detach |
303,756 | void (final XmlElement element) { refreshGenericInfo(element != null && !isAttribute()); myStub = null; myParentStrategy = element == null ? myParentStrategy.clearXmlElement() : myParentStrategy.setXmlElement(element); } | setXmlElement |
303,757 | void (final boolean dynamic) { final StaticGenericInfo staticInfo = myManager.getApplicationComponent().getStaticGenericInfo(myType); myGenericInfo = dynamic ? new DynamicGenericInfo(this, staticInfo) : staticInfo; } | refreshGenericInfo |
303,758 | DomManagerImpl () { return myManager; } | getManager |
303,759 | void (EvaluatedXmlName tagName, FixedChildDescriptionImpl description, int count) { final XmlTag tag = ensureTagExists(); final List<XmlTag> subTags = DomImplUtil.findSubTags(tag, tagName, getFile()); if (subTags.size() < count) { getFixedChild(Pair.create(description, count - 1)).ensureTagExists(); } } | createFixedChildrenTags |
303,760 | EvaluatedXmlName (final XmlName xmlName) { return getXmlName().evaluateChildName(xmlName); } | createEvaluatedXmlName |
303,761 | List<XmlTag> (@NotNull AbstractCollectionChildDescription description, @NotNull XmlTag tag, boolean processIncludes) { if (description instanceof CollectionChildDescriptionImpl) { return ((CollectionChildDescriptionImpl)description).getCollectionSubTags(this, tag, processIncludes); } return DomImplUtil.getCustomSubTags... | getCollectionSubTags |
303,762 | T () { final XmlTag tag = myPointer.getElement(); if (tag == null || !tag.isValid()) return null; final DomElement element = DomManager.getDomManager(tag.getProject()).getDomElement(tag); if (element == null || !element.getDomElementType().equals(myType)) return null; final DomInvocationHandler handler = DomManagerImpl... | create |
303,763 | boolean (final Object o) { if (this == o) return true; if (o == null || !o.getClass().equals(getClass())) return false; final DomInvocationHandler that = (DomInvocationHandler)o; if (!myChildDescription.equals(that.myChildDescription)) return false; if (!getParentStrategy().equals(that.getParentStrategy())) return fals... | equals |
303,764 | int () { return myChildDescription.hashCode(); } | hashCode |
303,765 | boolean (final Object obj) { return super.equals(obj) && myIndex == ((IndexedElementInvocationHandler)obj).myIndex; } | equals |
303,766 | int () { return super.hashCode() * 239 + myIndex; } | hashCode |
303,767 | XmlElement (final @NotNull DomInvocationHandler parentHandler) { final XmlTag tag = parentHandler.getXmlTag(); if (tag == null) return null; final List<XmlTag> tags = DomImplUtil.findSubTags(tag, getXmlName(), parentHandler.getFile()); if (tags.size() <= myIndex) return null; return tags.get(myIndex); } | recomputeXmlElement |
303,768 | XmlTag () { final DomInvocationHandler parent = getParentHandler(); assert parent != null : "write operations should be performed on the DOM having a parent, your DOM may be not very fresh"; final FixedChildDescriptionImpl description = getChildDescription(); final XmlFile xmlFile = getFile(); parent.createFixedChildre... | setEmptyXmlTag |
303,769 | FixedChildDescriptionImpl () { return (FixedChildDescriptionImpl)super.getChildDescription(); } | getChildDescription |
303,770 | void () { final DomInvocationHandler parent = getParentHandler(); assert parent != null : "write operations should be performed on the DOM having a parent, your DOM may be not very fresh"; final XmlTag parentTag = parent.getXmlTag(); if (parentTag == null) return; final EvaluatedXmlName xmlElementName = getXmlName(); f... | undefineInternal |
303,771 | DomElement () { final DomFixedChildDescription description = getChildDescription(); final DomElement parentCopy = getParent().createStableCopy(); return getManager().createStableValue( (Factory<DomElement>)() -> parentCopy.isValid() ? description.getValues(parentCopy).get(myIndex) : null); } | createPathStableCopy |
303,772 | Icon (@NotNull PomTarget target, int flags) { if (target instanceof DomTarget) { return ((DomTarget)target).getDomElement().getPresentation().getIcon(); } return null; } | getIcon |
303,773 | ElementPresentation (final DomElement element) { return new ElementPresentation() { @Override public String getElementName() { String name = ElementPresentationTemplateImpl.this.getName(element); return name == null ? ElementPresentationManager.getElementName(element) : name; } @Override public String getTypeName() { S... | createPresentation |
303,774 | String () { String name = ElementPresentationTemplateImpl.this.getName(element); return name == null ? ElementPresentationManager.getElementName(element) : name; } | getElementName |
303,775 | String () { String typeName = ElementPresentationTemplateImpl.this.getTypeName(); return typeName == null ? ElementPresentationManager.getTypeNameForObject(element) : typeName; } | getTypeName |
303,776 | Icon () { return ElementPresentationTemplateImpl.this.getIcon(element, 0); } | getIcon |
303,777 | String () { final Ref<String> result = new Ref<>(); element.acceptChildren(new DomElementVisitor() { @Override public void visitDomElement(DomElement element) { if (element instanceof GenericValue && element.getChildDescription().getAnnotation(Documentation.class) != null) { result.set(((GenericValue<?>)element).getStr... | getDocumentation |
303,778 | void (DomElement element) { if (element instanceof GenericValue && element.getChildDescription().getAnnotation(Documentation.class) != null) { result.set(((GenericValue<?>)element).getStringValue()); } } | visitDomElement |
303,779 | String () { return "CollectionChildDescription:" + getXmlName(); } | toString |
303,780 | DomElement (@NotNull DomElement element) { assert element.getGenericInfo().getCollectionChildrenDescriptions().contains(this); return addChild(element, getType(), Integer.MAX_VALUE); } | addValue |
303,781 | DomElement (final DomElement element, final Type type, final int index) { try { final DomInvocationHandler handler = DomManagerImpl.getDomInvocationHandler(element); assert handler != null; return handler.addCollectionChild(this, type, index); } catch (IncorrectOperationException e) { throw new RuntimeException(e); } } | addChild |
303,782 | DomElement (@NotNull DomElement element, int index) { return addChild(element, getType(), index); } | addValue |
303,783 | DomElement (@NotNull DomElement parent, Type type) { return addValue(parent, type, Integer.MAX_VALUE); } | addValue |
303,784 | DomElement (@NotNull DomElement parent, Type type, int index) { return addChild(parent, type, index); } | addValue |
303,785 | String (@NotNull DomNameStrategy strategy) { @NlsSafe String words = strategy.splitIntoWords(getXmlElementName()); return StringUtil.capitalizeWords(words.endsWith("es") ? words: StringUtil.pluralize(words), true); //NON-NLS } | getCommonPresentableName |
303,786 | List<XmlTag> (final DomInvocationHandler handler, final XmlTag[] subTags, final XmlFile file) { return DomImplUtil.findSubTags(subTags, handler.createEvaluatedXmlName(getXmlName()), file); } | getSubTags |
303,787 | EvaluatedXmlName (final DomInvocationHandler parent, final XmlTag childTag) { return parent.createEvaluatedXmlName(getXmlName()); } | createEvaluatedXmlName |
303,788 | PsiManager () { return PsiManager.getInstance(myGenericValue.getManager().getProject()); } | getPsiManager |
303,789 | TextRange () { if (myGenericValue instanceof GenericAttributeValue genericAttributeValue) { final XmlAttributeValue attributeValue = genericAttributeValue.getXmlAttributeValue(); if (attributeValue == null) { return TextRange.from(0, genericAttributeValue.getXmlAttribute().getTextLength()); } final int length = attribu... | createTextRange |
303,790 | GenericDomValue<T> () { return myGenericValue; } | getGenericValue |
303,791 | boolean () { return true; } | isSoft |
303,792 | boolean (final @NotNull PsiElement element) { final Converter<T> converter = getConverter(); if (converter instanceof ResolvingConverter) { T value = myGenericValue.getValue(); if (value instanceof DomElement && element instanceof PomTargetPsiElementImpl) { PomTarget target = ((PomTargetPsiElementImpl)element).getTarge... | isReferenceTo |
303,793 | String () { return myGenericValue.getStringValue(); } | getStringValue |
303,794 | Converter<T> () { return WrappingConverter.getDeepestConverter(myGenericValue.getConverter(), myGenericValue); } | getConverter |
303,795 | String () { return StringUtil.notNullize(getStringValue()); } | getCanonicalText |
303,796 | String () { final ConvertContext context = getConvertContext(); return getConverter().getErrorMessage(getStringValue(), context); } | getUnresolvedMessagePattern |
303,797 | ConvertContext () { return ConvertContextFactory.createConvertContext(DomManagerImpl.getDomInvocationHandler(myGenericValue)); } | getConvertContext |
303,798 | boolean (Class<? extends PsiElement> elementClass) { Converter<T> converter = getConverter(); return !(converter instanceof ResolvingConverter) || ((ResolvingConverter<?>)converter).canResolveTo(elementClass); } | canResolveTo |
303,799 | NavigationGutterIconBuilder<PsiElement> (@NotNull Icon icon) { return create(icon, DEFAULT_PSI_CONVERTOR, PSI_GOTO_RELATED_ITEM_PROVIDER); } | create |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.