Unnamed: 0
int64
0
305k
body
stringlengths
7
52.9k
name
stringlengths
1
185
302,900
void () { throw new UnsupportedOperationException("Method undefine is not yet implemented in " + getClass().getName()); }
undefine
302,901
boolean () { throw new UnsupportedOperationException("Method isValid is not yet implemented in " + getClass().getName()); }
isValid
302,902
boolean () { throw new UnsupportedOperationException("Method exists is not yet implemented in " + getClass().getName()); }
exists
302,903
DomGenericInfo () { throw new UnsupportedOperationException("Method getGenericInfo is not yet implemented in " + getClass().getName()); }
getGenericInfo
302,904
String () { throw new UnsupportedOperationException("Method getXmlElementName is not yet implemented in " + getClass().getName()); }
getXmlElementName
302,905
String () { throw new UnsupportedOperationException("Method getXmlElementNamespace is not yet implemented in " + getClass().getName()); }
getXmlElementNamespace
302,906
String () { throw new UnsupportedOperationException("Method getXmlElementNamespaceKey is not yet implemented in " + getClass().getName()); }
getXmlElementNamespaceKey
302,907
void (final DomElementVisitor visitor) { throw new UnsupportedOperationException("Method accept is not yet implemented in " + getClass().getName()); }
accept
302,908
void (DomElementVisitor visitor) { }
acceptChildren
302,909
DomManager () { throw new UnsupportedOperationException("Method getManager is not yet implemented in " + getClass().getName()); }
getManager
302,910
Type () { throw new UnsupportedOperationException("Method getDomElementType is not yet implemented in " + getClass().getName()); }
getDomElementType
302,911
AbstractDomChildrenDescription () { throw new UnsupportedOperationException("Method getChildDescription is not yet implemented in " + getClass().getName()); }
getChildDescription
302,912
DomNameStrategy () { throw new UnsupportedOperationException("Method getNameStrategy is not yet implemented in " + getClass().getName()); }
getNameStrategy
302,913
ElementPresentation () { throw new UnsupportedOperationException("Method getPresentation is not yet implemented in " + getClass().getName()); }
getPresentation
302,914
GlobalSearchScope () { throw new UnsupportedOperationException("Method getResolveScope is not yet implemented in " + getClass().getName()); }
getResolveScope
302,915
Module () { throw new UnsupportedOperationException("Method getModule is not yet implemented in " + getClass().getName()); }
getModule
302,916
void (DomElement other) { throw new UnsupportedOperationException("Method copyFrom is not yet implemented in " + getClass().getName()); }
copyFrom
302,917
long () { return 0; }
getModificationCount
302,918
void () { Ref<MyElement> ref = new Ref<>(); PlatformTestUtil.startPerformanceTest("creating", 40_000, () -> ApplicationManager.getApplication().runWriteAction(() -> { MyElement element = createElement("<root xmlns=\"http://www.w3.org/1999/xhtml\"/>", MyElement.class); MyElement child = element.addChildElement(); child....
testVisitorPerformance
302,919
void (DomElement element) { element.acceptChildren(this); }
visitDomElement
302,920
boolean (@NotNull final XmlFile file, final Module module) { fail(); return super.isMyFile(file, module); }
isMyFile
302,921
boolean (@NotNull final XmlFile file, final Module module) { fail(); return super.isMyFile(file, module); }
isMyFile
302,922
void () { registerNamespacePolicy("project", "project"); }
initializeFileDescription
302,923
void () { final XmlFile file = createXmlFile("<a/>"); final DomManagerImpl manager = getDomManager(); final DomFileElementImpl<DomElement> fileElement = manager.getFileElement(file, DomElement.class, "a"); assertEquals(fileElement, manager.getFileElement(file, DomElement.class, "a")); assertCached(fileElement, file); a...
testFileElementCaching
302,924
void () { final XmlFile file = createXmlFile("<a/>"); final DomManagerImpl manager = getDomManager(); final DomFileElementImpl<DomElement> fileElement = manager.getFileElement(file, DomElement.class, "a"); final DomElement rootElement = fileElement.getRootElement(); assertNotNull(rootElement); assertTrue(rootElement.ex...
testRootElementUndefineNotExisting
302,925
void () { final MyElement element = createElement("<a><child/></a>"); assertSame(element.getChild(), element.getChild()); assertSame(element.getXmlTag().getSubTags()[0], element.getChild().getXmlTag()); assertCached(element.getChild(), element.getChild().getXmlTag()); }
testElementCaching
302,926
void () { final XmlFile file = createXmlFile("<a><foo/><child-element/><child-element/></a>"); final DomFileElementImpl<MyElement> fileElement = getDomManager().getFileElement(file, MyElement.class, "a"); assertNull(fileElement.getParent()); assertSame(fileElement, DomUtil.getFileElement(fileElement)); final MyElement ...
testGetParentAndRoot
302,927
void (final DomElement element, final DomElement parent) { assertEquals(parent, element.getParent()); }
assertParent
302,928
void () { final MyElement element = createElement("<a/>"); myCallRegistry.clear(); final MyElement child = element.getChild(); assertNull(child.getXmlTag()); child.ensureTagExists(); final XmlTag[] subTags = element.getXmlTag().getSubTags(); assertEquals(1, subTags.length); final XmlTag childTag = subTags[0]; assertEqu...
testEnsureTagExists
302,929
void () { final MyElement rootElement = createEmptyElement(); myCallRegistry.clear(); assertNull(rootElement.getXmlTag()); rootElement.ensureTagExists(); final DomElement element = rootElement; myCallRegistry.putExpected(new DomEvent(element, true)); assertCached(rootElement, assertRootTag(rootElement)); myCallRegistry...
testEnsureRootTagExists
302,930
XmlTag (final DomElement rootElement) { return assertRootTag(DomUtil.getFile(rootElement)); }
assertRootTag
302,931
XmlTag (final XmlFile file) { final XmlTag rootTag = file.getDocument().getRootTag(); assertNotNull(rootTag); assertEquals("root", rootTag.getName()); return rootTag; }
assertRootTag
302,932
void () { final XmlFile file = createXmlFile("<a>foo</a>"); DomFileElementImpl<MyElement> fileElement = getDomManager().getFileElement(file, MyElement.class, "a"); final MyElement rootElement = fileElement.getRootElement(); assertNotNull(rootElement); assertEquals("foo", rootElement.getValue()); }
testFile
302,933
void () { final MyElement element = createElement("<a><child-element/><child/><child-element/></a>"); final Set<DomElement> visited = new HashSet<>(); element.acceptChildren(new DomElementVisitor() { @Override public void visitDomElement(DomElement element) { visited.add(element); } }); final MyElement foo = element.ge...
testAcceptChildren
302,934
void (DomElement element) { visited.add(element); }
visitDomElement
302,935
void (final DomFixedChildDescription description, final DomElement child, final String tagName) { assertEquals(1, description.getCount()); assertEquals(Arrays.asList(child), description.getValues(child.getParent())); assertEquals(tagName, description.getXmlElementName()); assertEquals(MyElement.class, description.getTy...
assertFixedChildDescription
302,936
void (final DomFixedChildDescription description, final DomElement child, final String tagName) { assertEquals(1, description.getCount()); assertEquals(Arrays.asList(child), description.getValues(child.getParent())); assertEquals(tagName, description.getXmlElementName()); assertEquals(GenericDomValue.class, ((Parameter...
assertGenericChildDescription
302,937
void () { final MyElement element = createElement("<a><child-element/></a>"); final DomGenericInfo info = element.getGenericInfo(); final DomCollectionChildDescription collectionChild = info.getCollectionChildDescription("child-element"); final List<? extends DomElement> values = collectionChild.getValues(element); MyE...
testAddChildrenByReflection
302,938
void () { assertCollectionPresentableName("Aaas", "aaa", DomNameStrategy.HYPHEN_STRATEGY); assertCollectionPresentableName("Aaa Bbbs", "aaa-bbb", DomNameStrategy.HYPHEN_STRATEGY); assertCollectionPresentableName("Aaas", "aaa", DomNameStrategy.JAVA_STRATEGY); assertCollectionPresentableName("Aaa Children", "aaaChild", D...
testGetPresentableName
302,939
void (final String expected, final String tagName, final DomNameStrategy strategy) { assertEquals(expected, new CollectionChildDescriptionImpl(new XmlName(tagName), DomElement.class, null).getCommonPresentableName(strategy)); }
assertCollectionPresentableName
302,940
void (final String expected, final String tagName, final DomNameStrategy strategy) { assertEquals(expected, new FixedChildDescriptionImpl(new XmlName(tagName), DomElement.class, 0, new Collection[0]).getCommonPresentableName(strategy)); }
assertFixedPresentableName
302,941
void () { assertTrue(createElement("<a/>").getNameStrategy() instanceof HyphenNameStrategy); final AnotherElement anotherElement = createElement("<a/>", AnotherElement.class); assertTrue(anotherElement.getNameStrategy() instanceof JavaNameStrategy); assertTrue(anotherElement.getChild().getNameStrategy() instanceof Java...
testNameStrategy
302,942
void () { final MyElement element = createElement("<a/>"); final long count = DomUtil.getFileElement(element).getModificationCount(); element.addChildElement(); assertTrue(DomUtil.getFileElement(element).getModificationCount() > count); }
testModificationCount
302,943
void () { assertTrue(getDomManager().getGenericInfo(MyElement.class).isTagValueElement()); assertFalse(getDomManager().getGenericInfo(AnotherElement.class).isTagValueElement()); }
testIsTagValueElement
302,944
void () { final StaticGenericInfo genericInfo = DomApplicationComponent.getInstance().getStaticGenericInfo(MyElement.class); final List<? extends DomAttributeChildDescription> descriptions = genericInfo.getAttributeChildrenDescriptions(); assertEquals(1, descriptions.size()); final DomAttributeChildDescription descript...
testAttributeChildrenGenerics
302,945
void () { final MyElement element = createElement(""); final GenericAttributeValue<String> attr = element.getChild().getChild().getAttr(); assertNotNull(attr); assertEquals(element.getChildChildAttr(), attr); final GenericAttributeValue<String> attr1 = element.getChild().addChildElement().getAttr(); final GenericAttrib...
testSubPropertyAccessing
302,946
void () { DomApplicationComponent.getInstance().registerImplementation(MyElement.class, Impl.class, getTestRootDisposable()); DomApplicationComponent.getInstance().registerImplementation(InheritedElement.class, AnotherImpl.class, getTestRootDisposable()); MyElement element = createElement(""); final Object o = new Obje...
testInstanceImplementation
302,947
void () { DomApplicationComponent.getInstance().registerImplementation(MyElement.class, Impl.class, getTestRootDisposable()); DomApplicationComponent.getInstance().registerImplementation(InheritedElement.class, AnotherImpl.class, getTestRootDisposable()); InheritedElement element = createElement("", InheritedElement.cl...
testSeveralInstanceImplementations
302,948
void () { final Integer[] visits = new Integer[]{0, 0, 0}; DomElementVisitor visitor = new MyVisitor() { @Override public void visit(InheritedElement element) { visits[0]++; } @Override public void visitDomElement(DomElement element) { visits[1]++; } @Override public void visitMyElement(MyElement element) { visits[2]++...
testVisitor
302,949
void (InheritedElement element) { visits[0]++; }
visit
302,950
void (DomElement element) { visits[1]++; }
visitDomElement
302,951
void (MyElement element) { visits[2]++; }
visitMyElement
302,952
void (DomElement element) { visits[1]++; }
visitDomElement
302,953
void () { DomApplicationComponent.getInstance().registerImplementation(AnotherElement.class, EmptyImpl.class, getTestRootDisposable()); DomApplicationComponent.getInstance().registerImplementation(DomElement.class, BaseImpl.class, getTestRootDisposable()); final AnotherElement element = createElement("", AnotherElement...
testRegisteringImplementation
302,954
void () { Module module = new MockModule(getTestRootDisposable()); final MyElement element = getDomManager().createMockElement(MyElement.class, module, false); assertSame(module, element.getModule()); assertTrue(element.isValid()); assertNull(element.getXmlTag()); assertEquals(element, DomUtil.getFileElement(element).g...
testMockElements
302,955
void () { Module module = new MockModule(getTestRootDisposable()); MyElement element1 = getDomManager().createMockElement(MyElement.class, module, false); MyElement element2 = getDomManager().createMockElement(MyElement.class, module, false); element2.copyFrom(element1); assertNull(element2.getXmlTag()); }
testCopyingFromEmptyToEmpty
302,956
void () { Module module = new MockModule(getTestRootDisposable()); final MyElement element1 = getDomManager().createMockElement(MyElement.class, module, false); final MyElement element2 = getDomManager().createMockElement(MyElement.class, module, false); element2.ensureTagExists(); assertNull(element2.getChild().getChi...
testCopyingFromNonEmptyToEmpty
302,957
void () { final MyElement[] element = new MyElement[]{null}; final MyElement stable = getDomManager().createStableValue(() -> { try { return element[0] = createElement("<root/>").addChildElement(); } catch (IncorrectOperationException e) { throw new RuntimeException(e); } }); assertNotNull(element[0]); //noinspection C...
testStableValues
302,958
void () { final MyElement[] element = new MyElement[]{createElement("")}; final MyElement stable = getDomManager().createStableValue(() -> element[0]); MyElement oldElement = element[0]; //noinspection CastToIncompatibleInterface ((StableElement<?>) stable).revalidate(); assertSame(oldElement, ((StableElement<?>) stabl...
testStable_Revalidate
302,959
void () { final MyElement oldElement = createElement(""); final MyElement[] element = new MyElement[]{oldElement}; final MyElement stable = getDomManager().createStableValue(() -> element[0]); element[0] = null; //noinspection CastToIncompatibleInterface ((StableElement<?>) stable).invalidate(); assertEquals(stable, st...
testStable_Invalidate
302,960
void () { final MyElement element = createElement("<a><child-element/><child-element><child/></child-element></a>"); final MyElement parent = element.getChildElements().get(1); final MyElement child = parent.getChild(); final MyElement copy = child.createStableCopy(); WriteCommandAction.runWriteCommandAction(getProject...
testStableCopies
302,961
void () { XmlFile xmlFile = (XmlFile)PsiFileFactory.getInstance(getProject()) .createFileFromText(XMLLanguage.INSTANCE, "<a><child-element/><child-element/></a>"); VirtualFile file = xmlFile.getViewProvider().getVirtualFile(); getDomManager().registerFileDescription(new MockDomFileDescription<>(MyElement.class, "a", fi...
testStableCopySurvivesPsiFileInvalidation
302,962
Object () { return myObject; }
_getObject
302,963
Object () { return myObject; }
getObject
302,964
void (final Object object) { myObject = object; }
setObject
302,965
String () { return myString; }
getString
302,966
void (final String string) { myString = string; }
setString
302,967
void () { assertData("<root>", "root", null, null, null); }
testGetRootTagNameWithoutNamespace
302,968
void () { assertData("<root xmlns=\"foo\">", "root", "foo", null, null); }
testGetRootTagNameWithNamespaceWithEmptyPrefix
302,969
void () { XmlFile file = createXmlFile("<root xmlns=\"foo\" aaa>"); ensureParsed(file); final XmlFileHeader header = DomService.getInstance().getXmlFileHeader(file); assertEquals(new XmlFileHeader("root", "foo", null, null), header); }
testGetRootTagNameWithUnfinishedAttribute
302,970
void () { assertData("<bar:root xmlns=\"foo\" xmlns:bar=\"b\">", "root", "b", null, null); }
testGetRootTagNameWithNamespaceWithNonEmptyPrefix
302,971
void () { assertData(""" <!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN" "http://java.sun.com/dtd/ejb-jar_2_0.dtd"><root>""", "root", null, "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN", "http://java.sun.com/dtd/ejb-jar_2_0.dtd"); }
testGetRootTagNameWithDtdNamespace
302,972
void () { assertData(""" <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN" "http://java.sun.com/dtd/ejb-jar_2_0.dtd"><root>""", "root", null, "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN", "http://java.sun.com/dtd/ejb-jar_2_0.dt...
testGetRootTagNameWithDtdNamespace2
302,973
void () { assertData("aaaaaaaaaaaaaaaaaaaaa", null, null, null, null); }
testNoTag
302,974
void () { assertData("", null, null, null, null); }
testEmptyFile
302,975
void () { assertData("<?xmlmas8v6708986><OKHD POH:&*$%*&*I8yo9", null, null, null, null); }
testInvalidContent
302,976
void () { assertData("?xmlmas8v6708986><OKHD POH:&*$%*&*I8yo9", null, null, null, null); }
testInvalidContent2
302,977
void (PsiFile file) { file.getNode().getFirstChildNode(); }
ensureParsed
302,978
void () { assertData("<?xmlmas8v67089", null, null, null, null); }
testInvalidContent3
302,979
void () { assertData("<root><foo/>", "root", null, null, null); }
testSubtag
302,980
void () { assertData(""" <?xml version="1.0" encoding="gbk"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:aop="http://www.springframework.org/schema/aop" xmlns:tx="http://www.springframework.org/schema/tx" xsi:schemaLocation="http://www.springfr...
testSpring
302,981
void () { assertData(""" <?xml version="1.0"?> <!DOCTYPE\s hibernate-mapping SYSTEM \t\t\t"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd" [ <!ENTITY % globals SYSTEM "classpath://auction/persistence/globals.dtd"> %globals; ]><a/>""", "a", null, null, "http://hibernate.sourceforge.net/hibernate-mapping-3.0....
testInternalDtd
302,982
void (final String start, @Nullable final String localName, @Nullable String namespace, @Nullable String publicId, @Nullable String systemId) { XmlFileHeader expected = new XmlFileHeader(localName, namespace, publicId, systemId); XmlFile file = createXmlFile(start); assert !file.getNode().isParsed(); assertEquals(expec...
assertData
302,983
XmlFile (String text) { return (XmlFile)PsiFileFactory.getInstance(getProject()).createFileFromText("a.xml", XMLLanguage.INSTANCE, text, false, false, false); }
createXmlFile
302,984
InspectionProfile (final DomFileElement fileElement) { return myInspectionProfile; }
getInspectionProfile
302,985
XmlTag () { return file.getRootTag(); }
getXmlTag
302,986
Type () { return DomElement.class; }
getDomElementType
302,987
XmlFile () { return file; }
getFile
302,988
DomElement () { return null; }
getParent
302,989
DomElement () { return rootElement; }
getRootElement
302,990
Class<DomElement> () { return DomElement.class; }
getRootElementClass
302,991
boolean () { return true; }
isValid
302,992
void () { assertEmptyHolder(myAnnotationsManager.getProblemHolder(myElement)); }
testEmptyProblemDescriptorInTheBeginning
302,993
void (final DomElementsProblemsHolder holder) { assertFalse(holder instanceof DomElementsProblemsHolderImpl); assertEmpty(holder.getAllProblems()); }
assertEmptyHolder
302,994
void () { myAnnotationsManager.appendProblems(myElement, createHolder(), MyDomElementsInspection.class); final DomElementsProblemsHolderImpl holder = assertNotEmptyHolder(myAnnotationsManager.getProblemHolder(myElement)); assertEmpty(holder.getAllProblems()); assertEmpty(holder.getAllProblems(new MyDomElementsInspectio...
testProblemDescriptorIsCreated
302,995
DomElementAnnotationHolderImpl () { return AnnotationSessionImpl.computeWithSession(myElement.getFile(), false, holder -> new DomElementAnnotationHolderImpl(true, myElement, holder)); }
createHolder
302,996
DomElementsProblemsHolderImpl (final DomElementsProblemsHolder holder1) { return assertInstanceOf(holder1, DomElementsProblemsHolderImpl.class); }
assertNotEmptyHolder
302,997
void () { myAnnotationsManager.appendProblems(myElement, createHolder(), MyDomElementsInspection.class); final DomElementsProblemsHolderImpl holder = (DomElementsProblemsHolderImpl)myAnnotationsManager.getProblemHolder(myElement); assertTrue(holder.isInspectionCompleted(MyDomElementsInspection.class)); assertFalse(hold...
testInspectionMarkedAsPassedAfterAppend
302,998
void () { myAnnotationsManager.appendProblems(myElement, createHolder(), MyDomElementsInspection.class); assertTrue(myAnnotationsManager.isHolderUpToDate(myElement)); final DomElementsProblemsHolder holder = myAnnotationsManager.getProblemHolder(myElement); getPsiManager().dropPsiCaches(); assertFalse(myAnnotationsMana...
testHolderRecreationAfterChange
302,999
void () { myElement.setFileDescription(new MyNonHighlightingDomFileDescription()); assertInstanceOf(myAnnotationsManager.getMockInspection(myElement), MockDomInspection.class); }
testMockDomInspection