Unnamed: 0 int64 0 305k | body stringlengths 7 52.9k | name stringlengths 1 185 |
|---|---|---|
50,000 | void (XPathElementVisitor visitor) { visitor.visitXPathStep(this); } | accept |
50,001 | XPathType () { final XPath2TypeElement node = findChildByClass(XPath2TypeElement.class); return node != null ? node.getDeclaredType() : null; } | getTargetType |
50,002 | XPathType () { return XPath2Type.BOOLEAN; } | getType |
50,003 | void (XPath2ElementVisitor visitor) { visitor.visitXPath2InstanceOf(this); } | accept |
50,004 | XPathStep () { final XPathStep step = PsiTreeUtil.getParentOfType(this, XPathStep.class); assert step != null : unexpectedPsiAssertion(); return step; } | getStep |
50,005 | boolean () { return getNode().findChildByType(XPathTokenTypes.NCNAME) != null || getNode().findChildByType(XPathTokenTypes.STAR) != null; } | isNameTest |
50,006 | PrefixedName () { final ASTNode[] nodes = getNode().getChildren(TokenSet.create(XPathTokenTypes.NCNAME)); if (nodes.length == 0) { final ASTNode node = getNode().findChildByType(XPathTokenTypes.STAR); if (node != null) { return new PrefixedNameImpl(null, node); } } else if (nodes.length == 1) { final ASTNode star = get... | getQName |
50,007 | int () { final PrefixedNameImpl qName = ((PrefixedNameImpl)getQName()); if (qName != null) { return qName.getLocalNode().getStartOffset(); } else { return super.getTextOffset(); } } | getTextOffset |
50,008 | PrincipalType () { final XPathStep step = getStep(); final XPathAxisSpecifier axisSpecifier = step.getAxisSpecifier(); if (axisSpecifier == null) return PrincipalType.UNKNOWN; final Axis axis = axisSpecifier.getAxis(); if (axis == Axis.ATTRIBUTE) { return PrincipalType.ATTRIBUTE; } else if (axis == Axis.NAMESPACE) { re... | getPrincipalType |
50,009 | PsiReference () { final ASTNode name = getNode().findChildByType(XPathTokenTypes.NCNAME); if (name != null) { return new Reference(this, name); } return null; } | getReference |
50,010 | void (XPathElementVisitor visitor) { visitor.visitXPathNodeTest(this); } | accept |
50,011 | void (XPath2ElementVisitor visitor) { visitor.visitXPath2Element(this); } | accept |
50,012 | void (XPathElementVisitor visitor) { if (visitor instanceof XPath2ElementVisitor) { accept((XPath2ElementVisitor)visitor); } else { super.accept(visitor); } } | accept |
50,013 | XPathType () { if (getXPathVersion() == XPathVersion.V1) { return XPathType.NUMBER; } else { if (isScientificNotation()) { return XPath2Type.DOUBLE; } else if (textContains('.')) { return XPath2Type.DECIMAL; } return XPath2Type.INTEGER; } } | getType |
50,014 | boolean () { return textContains('e') || textContains('E'); } | isScientificNotation |
50,015 | double () { return Double.parseDouble(getText()); } | getValue |
50,016 | void (XPathElementVisitor visitor) { visitor.visitXPathNumber(this); } | accept |
50,017 | XPathType () { final XPath2TypeElement node = findChildByClass(XPath2TypeElement.class); return node != null ? node.getDeclaredType() : null; } | getTargetType |
50,018 | XPathType () { return XPath2Type.BOOLEAN; } | getType |
50,019 | void (XPath2ElementVisitor visitor) { visitor.visitXPath2Castable(this); } | accept |
50,020 | XmlTag () { final PsiElement parent = getParent(); if(parent instanceof XmlTag) return (XmlTag)parent; return null; } | getParentTag |
50,021 | XmlTagChild () { PsiElement nextSibling = getNextSibling(); if(nextSibling instanceof XmlTagChild) return (XmlTagChild)nextSibling; return null; } | getNextSiblingInTag |
50,022 | XmlTagChild () { final PsiElement prevSibling = getPrevSibling(); if(prevSibling instanceof XmlTagChild) return (XmlTagChild)prevSibling; return null; } | getPrevSiblingInTag |
50,023 | boolean (PsiElementProcessor processor, PsiElement place) { // TODO return true; } | processElements |
50,024 | boolean (@NotNull PsiScopeProcessor processor, @NotNull ResolveState substitutor, PsiElement lastParent, @NotNull PsiElement place) { if (lastParent == null) { PsiElement child = getFirstChild(); while (child != null) { if (!child.processDeclarations(processor, substitutor, null, place)) return false; child = child.get... | processDeclarations |
50,025 | String () { final ASTNode node = getNameNode(); final String name = node != null ? node.getText() : null; assert name != null : unexpectedPsiAssertion(); return name; } | getFunctionName |
50,026 | ASTNode () { return getNode().findChildByType(XPathTokenTypes.FUNCTION_NAME); } | getNameNode |
50,027 | ASTNode () { return getNode().findChildByType(XPathTokenTypes.EXT_PREFIX); } | getPrefixNode |
50,028 | PrefixedName () { final ASTNode node = getNameNode(); assert node != null : unexpectedPsiAssertion(); return new PrefixedNameImpl(getPrefixNode(), node); } | getQName |
50,029 | XPathFunction () { final Reference reference = getReference(); return reference != null ? reference.resolve() : null; } | resolve |
50,030 | Reference () { final ASTNode nameNode = getNameNode(); if (nameNode != null) { return new Reference(nameNode); } return null; } | getReference |
50,031 | XPathType () { final XPathFunction f = resolve(); if (f == null) return XPathType.UNKNOWN; final Function function = f.getDeclaration(); return function != null ? function.getReturnType() : XPathType.UNKNOWN; } | getType |
50,032 | XPathFunction () { if (myFunction != null && myFunction.first.equals(getQName().toString())) { return myFunction.second; } else { final XPathFunctionCallImpl call = XPathFunctionCallImpl.this; final ContextProvider contextProvider = call.getXPathContext(); final QName name = contextProvider.getQName(call); if (name == ... | resolve |
50,033 | PsiElement () { return XPathFunctionCallImpl.this; } | getContext |
50,034 | String () { return myFunctionDecl != null ? myFunctionDecl.getName() : getFunctionName(); } | getName |
50,035 | String () { return "Function: " + getName(); } | toString |
50,036 | String () { return getName(); } | getText |
50,037 | ItemPresentation () { return this; } | getPresentation |
50,038 | Icon (boolean open) { return getIcon(0); } | getIcon |
50,039 | Icon (int i) { return XpathIcons.Function; } | getIcon |
50,040 | PsiElement () { return this; } | copy |
50,041 | boolean () { return true; } | isValid |
50,042 | int () { final String name = getName(); return name != null ? name.hashCode() : 0; } | hashCode |
50,043 | boolean (Object obj) { if (obj == null || obj.getClass() != getClass()) return false; final String name = ((FunctionImpl)obj).getName(); return name != null && name.equals(getName()) || getName() == null; } | equals |
50,044 | Function () { return myFunctionDecl; } | getDeclaration |
50,045 | boolean () { // hack // required to prevent renaming of functions. Shouldn't IDEA check for isWritable()? // com.intellij.refactoring.rename.PsiElementRenameHandler: // if (!PsiManager.getInstance(project).isInProject(element) && element.isPhysical()) { ... } return true; } | isPhysical |
50,046 | ContextProvider () { return ContextProvider.getContextProvider(getElement()); } | getXPathContext |
50,047 | XPathVersion () { return getElement().getXPathVersion(); } | getXPathVersion |
50,048 | void (XPathElementVisitor visitor) { visitor.visitXPathFunction(this); } | accept |
50,049 | void (XPathElementVisitor visitor) { visitor.visitXPathFunctionCall(this); } | accept |
50,050 | XPathType () { final XPathExpression expression = getExpression(); return expression != null ? expression.getType() : XPathType.UNKNOWN; } | getType |
50,051 | XPathExpression () { final XPathExpression expression = findChildByClass(XPathExpression.class); if (expression != null) { return expression; } else { final XPathNodeTest nt = findChildByClass(XPathNodeTest.class); if (nt == null) return null; final ASTNode node = nt.getNode().findChildByType(XPath2ElementTypes.EXPRESS... | getExpression |
50,052 | XPathPredicate () { final ASTNode[] nodes = getNode().getChildren(TokenSet.create(XPathElementTypes.PREDICATE)); assert nodes.length == 1 : unexpectedPsiAssertion(); return (XPathPredicate)nodes[0].getPsi(); } | getPredicate |
50,053 | void (XPathElementVisitor visitor) { visitor.visitXPathFilterExpression(this); } | accept |
50,054 | XPathType () { return XPathType.STRING; } | getType |
50,055 | boolean () { final String text = getUnescapedText(); final char quoteChar = getQuoteChar(); if (!text.endsWith(String.valueOf(quoteChar)) || text.indexOf(quoteChar) == text.lastIndexOf(quoteChar)) { return false; } if (getXPathVersion() == XPathVersion.V2) { final String value = getStringBetweenQuotes(); final String u... | isWellFormed |
50,056 | String () { final String value = getStringBetweenQuotes(); if (getXPathVersion() == XPathVersion.V2) { return unescape(getQuoteChar(), value); } return value; } | getValue |
50,057 | String () { final String text = getUnescapedText(); if (text.endsWith(String.valueOf(getQuoteChar())) && text.length() > 1) { return text.substring(1, text.length() - 1); } else { return text.substring(1); } } | getStringBetweenQuotes |
50,058 | char () { return getUnescapedText().charAt(0); } | getQuoteChar |
50,059 | String (char quote, String value) { final String singleQuote = String.valueOf(quote); final String escapedQuote = singleQuote + quote; return value.replaceAll(escapedQuote, singleQuote); } | unescape |
50,060 | String (char quote, String value) { final String singleQuote = String.valueOf(quote); final String escapedQuote = singleQuote + quote; return value.replaceAll(singleQuote, escapedQuote); } | escape |
50,061 | void (XPathElementVisitor visitor) { visitor.visitXPathString(this); } | accept |
50,062 | Axis () { final ASTNode[] nodes = getNode().getChildren(XPathTokenTypes.AXIS); if (nodes.length > 0) { return Axis.fromName(nodes[0].getText()); } else if (getNode().findChildByType(XPathTokenTypes.AT) != null) { return Axis.ATTRIBUTE; } else { return Axis.CHILD; } } | getAxis |
50,063 | boolean () { final ASTNode node = getNode(); final boolean b = node.getChildren(XPathTokenTypes.AXIS).length == 0; return b && node.findChildByType(XPathTokenTypes.AT) == null; } | isDefaultAxis |
50,064 | void (XPathElementVisitor visitor) { visitor.visitXPathAxisSpecifier(this); } | accept |
50,065 | String () { return prefixNode != null ? prefixNode.getText() : null; } | getPrefix |
50,066 | String () { return localNode.getText(); } | getLocalName |
50,067 | ASTNode () { return prefixNode; } | getPrefixNode |
50,068 | ASTNode () { return localNode; } | getLocalNode |
50,069 | String () { return prefixText() + localNode.getText(); } | toString |
50,070 | String () { return prefixNode != null ? prefixNode.getText() + ":" : ""; } | prefixText |
50,071 | boolean (Object object) { return object.getClass() == getClass() && ((PrefixedName)object).getLocalName().equals(getLocalName()); } | equals |
50,072 | int () { return getLocalName().hashCode(); } | hashCode |
50,073 | XPathType () { final XPath2TypeElement node = findChildByClass(XPath2TypeElement.class); return node != null ? node.getDeclaredType() : null; } | getTargetType |
50,074 | XPathType () { final XPathType type = getTargetType(); return type != null ? type : XPathType.UNKNOWN; } | getType |
50,075 | void (XPath2ElementVisitor visitor) { visitor.visitXPath2Cast(this); } | accept |
50,076 | XPathType () { // +/-: isn't this always a number? final XPathExpression expression = getExpression(); return expression != null ? expression.getType() : XPathType.UNKNOWN; } | getType |
50,077 | XPathExpression () { final ASTNode[] nodes = getNode().getChildren(XPath2ElementTypes.EXPRESSIONS); return (XPathExpression)(nodes.length > 0 ? nodes[0].getPsi() : null); } | getExpression |
50,078 | XPathElementType () { final ASTNode node = getNode().findChildByType(XPathTokenTypes.ADD_OPS); final XPathElementType elementType = (XPathElementType)(node != null ? node.getElementType() : null); assert elementType != null : unexpectedPsiAssertion(); return elementType; } | getOperator |
50,079 | void (XPathElementVisitor visitor) { visitor.visitXPathPrefixExpression(this); } | accept |
50,080 | XPathExpression (PsiElement context, String text) { final XPathFile file = createXPathFile(context, text); final XPathExpression child = PsiTreeUtil.getChildOfType(file, XPathExpression.class); assert child != null; return child; } | createExpression |
50,081 | XPathVariableReference (PsiElement context, String name) { return (XPathVariableReference)createExpression(context, "$" + name); } | createVariableReference |
50,082 | XPathFile (PsiElement context, String text) { final XPathFile file = createXPathFile(context.getProject(), text, context.getContainingFile().getFileType()); ContextProvider.copy(context.getContainingFile(), file); return file; } | createXPathFile |
50,083 | XPathFile (Project project, String text, FileType fileType) { return (XPathFile)PsiFileFactory.getInstance(project).createFileFromText("dummy." + fileType.getDefaultExtension(), fileType, text, LocalTimeCounter.currentTime(), true); } | createXPathFile |
50,084 | XPathType () { final XPathExpression value = getReturn(); return value != null ? value.getType() : XPathType.UNKNOWN; } | getType |
50,085 | XPathExpression () { final ASTNode node = getNode().findChildByType(XPath2ElementTypes.BODY); return node != null ? PsiTreeUtil.findChildOfType(node.getPsi(), XPathExpression.class) : null; } | getReturn |
50,086 | void (XPath2ElementVisitor visitor) { visitor.visitXPath2For(this); } | accept |
50,087 | XPathType () { final XPathExpression expression = getExpression(); return expression != null ? expression.getType() : XPathType.UNKNOWN; } | getType |
50,088 | XPathExpression () { final ASTNode[] nodes = getNode().getChildren(XPath2ElementTypes.EXPRESSIONS); return (XPathExpression)(nodes.length > 0 ? nodes[0].getPsi() : null); } | getExpression |
50,089 | void (XPathElementVisitor visitor) { visitor.visitXPathParenthesizedExpression(this); } | accept |
50,090 | XPathType () { return XPathType.NODESET; } | getType |
50,091 | NodeType () { return NodeType.valueOf(StringUtil.toUpperCase(getFunctionName().replace('-', '_'))); } | getNodeType |
50,092 | ASTNode () { return null; } | getPrefixNode |
50,093 | ASTNode () { return getNode().findChildByType(XPathTokenTypes.NODE_TYPE); } | getNameNode |
50,094 | void (final XPathElementVisitor visitor) { visitor.visitXPathNodeTypeTest(this); } | accept |
50,095 | IElementType () { return getNode().getElementType(); } | getTokenType |
50,096 | void (XPathElementVisitor visitor) { visitor.visitXPathToken(this); } | accept |
50,097 | XPathType () { return XPath2Type.BOOLEAN; } | getType |
50,098 | XPathExpression () { final ASTNode node = getNode().findChildByType(XPath2ElementTypes.BODY); return node != null ? PsiTreeUtil.findChildOfType(node.getPsi(), XPathExpression.class) : null; } | getTest |
50,099 | void (XPath2ElementVisitor visitor) { visitor.visitXPath2QuantifiedExpr(this); } | accept |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.