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 + 1, o); } | 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.myGetterMethod != null) return false; return true; } | 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) return true; if (arg == null) return false; if (arg instanceof DomElement) { final DomInvocationHandler handler1 = DomManagerImpl.getDomInvocationHandler(proxy); return handler1 != null && handler1.equals(DomManagerImpl.getDomInvocationHandler((DomElement)arg)); } return false; }); } else if ("hashCode".equals(method.getName())) { ourCoreInvocations.put(new JavaMethodSignature(method), (handler, args) -> handler.hashCode()); } else { ourCoreInvocations.put(new JavaMethodSignature(method), (handler, args) -> method.invoke(handler, args)); } } } | 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 DomInvocationHandler otherInvocationHandler = DomManagerImpl.getDomInvocationHandler(other); assert otherInvocationHandler != null : other; final DomGenericInfoEx genericInfo = otherInvocationHandler.getGenericInfo(); for (final AttributeChildDescriptionImpl description : genericInfo.getAttributeChildrenDescriptions()) { description.getDomAttributeValue(this).setStringValue(description.getDomAttributeValue(other).getRawText()); } for (final DomFixedChildDescription description : genericInfo.getFixedChildrenDescriptions()) { final List<? extends DomElement> list = description.getValues(getProxy()); final List<? extends DomElement> otherValues = description.getValues(other); for (int i = 0; i < list.size(); i++) { final DomElement otherValue = otherValues.get(i); final DomElement value = list.get(i); if (!DomUtil.hasXml(otherValue)) { value.undefine(); } else { value.copyFrom(otherValue); } } } for (final DomCollectionChildDescription description : genericInfo.getCollectionChildrenDescriptions()) { for (final DomElement value : description.getValues(getProxy())) { value.undefine(); } for (final DomElement otherValue : description.getValues(other)) { description.addValue(getProxy(), otherValue.getDomElementType()).copyFrom(otherValue); } } final String stringValue = otherInvocationHandler.getValue(); if (StringUtil.isNotEmpty(stringValue)) { setValue(stringValue); } }); if (!myManager.isInsideAtomicChange()) { myManager.fireEvent(new DomEvent(getProxy(), false)); } } | 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, getFile()); } | 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 XmlElement element = getXmlElement(); assert element != null; return getXmlTag().createChildTag(localName, tagName.getNamespace(element, getFile()), null, false); } | 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()).get(0).ensureXmlElementExists(); } } else if (description instanceof DomFixedChildDescription childDescription) { List<? extends DomElement> values = null; final int count = childDescription.getCount(); for (int i = 0; i < count; i++) { final Required required = childDescription.getAnnotation(i, Required.class); if (required != null && required.value()) { if (values == null) { values = description.getValues(getProxy()); } values.get(i).ensureTagExists(); } } } } } | 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++) { AbstractDomChildrenDescription description = descriptions.get(i); List<? extends DomElement> values = description.getValues(element); for (int j = 0, valuesSize = values.size(); j < valuesSize; j++) { DomElement value = values.get(j); value.accept(visitor); } } } | 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); } Converter converter = getConverter(new AnnotatedElement() { @Override public <T extends Annotation> T getAnnotation(Class<T> annotationClass) { return myInvocationCache.getMethodAnnotation(method, annotationClass); } }, parameter); if (converter == null && type instanceof TypeVariable) { converter = getConverter(this, DomUtil.getGenericValueParameter(myType)); } if (converter == null) { converter = myManager.getConverterManager().getConverterByClass(parameter); } if (converter == null) { throw new AssertionError("No converter specified: String<->" + parameter.getName() + "; method=" + method + "; place=" + myChildDescription); } return converter; } | 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 unchecked implementation = (Class<? extends DomElement>)rawType; } myProxy = proxy = AdvancedProxy.createProxy(this, implementation, isInterface ? new Class[]{rawType} : ArrayUtil.EMPTY_CLASS_ARRAY); } return proxy; } | 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.getNameStrategy(); } | 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(getProxy()); } @Override public String getTypeName() { return ElementPresentationManager.getTypeNameForObject(getProxy()); } @Override public Icon getIcon() { return ElementPresentationManager.getIconOld(getProxy()); } }; } | 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<DomStub> stubs = myStub.getChildrenByName(xmlName); DomStub stub = stubs.isEmpty() ? null : stubs.get(0); DomParentStrategy strategy = stub == null ? new StubParentStrategy.Empty(myStub) : new StubParentStrategy(stub); return new IndexedElementInvocationHandler(evaluatedXmlName, description, 0, strategy, myManager, (ElementStub)stub); } final XmlTag tag = getXmlTag(); final int index = info.second; if (tag != null) { List<XmlTag> tags = DomImplUtil.findSubTags(tag.getSubTags(), evaluatedXmlName, getFile()); if (tags.size() > index) { final XmlTag child = tags.get(index); DomInvocationHandler handler = myManager.getDomHandler(child); if (!(handler instanceof IndexedElementInvocationHandler)) { DomInvocationHandler take2 = myManager.getDomHandler(child); throw new AssertionError("Expected indexed DOM, but got " + handler + ". Parent=" + tag + "; child=" + child + "; index=" + index+ "; second attempt=" + take2); } return handler; } } return new IndexedElementInvocationHandler(evaluatedXmlName, description, index, new VirtualDomParentStrategy(this), myManager, null); } | 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 = StubParentStrategy.createAttributeStrategy(stub, myStub); return new AttributeChildInvocationHandler(evaluatedXmlName, description, myManager, strategy, stub); } final XmlTag tag = getXmlTag(); if (tag != null) { // TODO: this seems ugly String ns = evaluatedXmlName.getNamespace(tag, getFile()); final XmlAttribute attribute = tag.getAttribute(description.getXmlName().getLocalName(), ns.equals(tag.getNamespace())? null:ns); if (attribute != null) { PsiUtilCore.ensureValid(attribute); DomInvocationHandler handler = myManager.getDomHandler(attribute); if (!(handler instanceof AttributeChildInvocationHandler)) { throw new AssertionError("Expected indexed DOM, but got " + handler + "; ns=" + ns + "; description=" + description + "; attribute=" + attribute.getName() + "; XML consistent=" + (PhysicalDomParentStrategy.getParentTag(attribute) == tag) + "; DOM consistent =" + equals(DomCreator.getParentDom(tag)) + "; re-creation=" + DomCreator.createAttributeHandler(attribute)); } return handler; } } return new AttributeChildInvocationHandler(evaluatedXmlName, description, myManager, new VirtualDomParentStrategy(this), null); } | 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.plus(method, invocation); return invocation; } | 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 SetInvocation(createConverter(javaMethod)); } else { throw new RuntimeException("No implementation for method " + method.toString() + " in class " + myType); } return invocation; } | 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(this, tag.getSubTags(), getFile()); } | 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.getDomInvocationHandler(element); if (handler == null || !handler.getClass().equals(myHandlerClass)) return null; //noinspection unchecked return (T)element; } | 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 false; return true; } | 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.createFixedChildrenTags(getXmlName(), description, myIndex); final List<XmlTag> tags = DomImplUtil.findSubTags(parent.getXmlTag(), getXmlName(), xmlFile); if (tags.size() > myIndex) { return tags.get(myIndex); } final XmlTag[] newTag = new XmlTag[1]; getManager().runChange(() -> { try { final XmlTag parentTag = parent.getXmlTag(); newTag[0] = (XmlTag)parentTag.add(parent.createChildTag(getXmlName())); } catch (IncorrectOperationException e) { LOG.error(e); } }); return newTag[0]; } | 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(); final FixedChildDescriptionImpl description = getChildDescription(); final int totalCount = description.getCount(); final List<XmlTag> subTags = DomImplUtil.findSubTags(parentTag, xmlElementName, getFile()); if (subTags.size() <= myIndex) { return; } XmlTag tag = getXmlTag(); if (tag == null) return; final boolean changing = getManager().setChanging(true); try { detach(); if (totalCount == myIndex + 1 && subTags.size() >= myIndex + 1) { for (int i = myIndex; i < subTags.size(); i++) { subTags.get(i).delete(); } } else if (subTags.size() == myIndex + 1) { tag.delete(); } else { setXmlElement((XmlTag) tag.replace(parent.createChildTag(getXmlName()))); } } catch (IncorrectOperationException e) { LOG.error(e); } finally { getManager().setChanging(changing); } fireUndefinedEvent(); } | 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() { String typeName = ElementPresentationTemplateImpl.this.getTypeName(); return typeName == null ? ElementPresentationManager.getTypeNameForObject(element) : typeName; } @Override public Icon getIcon() { return ElementPresentationTemplateImpl.this.getIcon(element, 0); } @Override public String getDocumentation() { 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).getStringValue()); } } }); return result.isNull() ? super.getDocumentation() : result.get(); //NON-NLS } }; } | 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).getStringValue()); } } }); return result.isNull() ? super.getDocumentation() : result.get(); //NON-NLS } | 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 = attributeValue.getTextLength(); return length < 2 ? TextRange.from(0, length) : new TextRange(1, length - 1); } final XmlTag tag = myGenericValue.getXmlTag(); assert tag != null; return XmlTagUtil.getTrimmedValueRange(tag); } | 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).getTarget(); if (target instanceof DomTarget) { if (value.equals(((DomTarget)target).getDomElement())) { return true; } } } return ((ResolvingConverter<T>)converter).isReferenceTo(element, getStringValue(), value, getConvertContext()); } return super.isReferenceTo(element); } | 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.