Unnamed: 0
int64
0
305k
body
stringlengths
7
52.9k
name
stringlengths
1
185
299,900
XmlAttlistDecl[] (XmlElement xmlElement) { final List<XmlAttlistDecl> result = new ArrayList<>(); XmlUtil.processXmlElements(xmlElement, new FilterElementProcessor(new ClassFilter(XmlAttlistDecl.class), result), false, false, XmlUtil.getContainingFile(xmlElement)); return result.toArray(XmlAttlistDecl.EMPTY_ARRAY); }
doCollectAttlistDeclarations
299,901
XmlElementsGroup () { XmlElementContentGroup topGroup = myElementDecl.getContentSpecElement().getTopGroup(); return topGroup == null ? null : new XmlElementsGroupImpl(topGroup, null); }
getTopGroup
299,902
int () { if (myElementDecl.getContentSpecElement().isAny()) { return CONTENT_TYPE_ANY; } if (myElementDecl.getContentSpecElement().hasChildren()) { return CONTENT_TYPE_CHILDREN; } if (myElementDecl.getContentSpecElement().isEmpty()) { return CONTENT_TYPE_EMPTY; } if (myElementDecl.getContentSpecElement().isMixed()) { return CONTENT_TYPE_MIXED; } return CONTENT_TYPE_ANY; }
getContentType
299,903
String () { return getName(); }
getQualifiedName
299,904
String () { return getName(); }
getDefaultName
299,905
int () { return switch (myParticle.getQuantifier()) { case ONE_OR_MORE, REQUIRED -> 1; case ZERO_OR_MORE, OPTIONAL -> 0; }; }
getMinOccurs
299,906
int () { return switch (myParticle.getQuantifier()) { case ONE_OR_MORE, ZERO_OR_MORE -> Integer.MAX_VALUE; case OPTIONAL, REQUIRED -> 1; }; }
getMaxOccurs
299,907
Type () { return switch (myParticle.getType()) { case SEQUENCE -> Type.SEQUENCE; case CHOICE -> Type.CHOICE; case ELEMENT -> Type.LEAF; }; }
getGroupType
299,908
XmlElementsGroup () { return myParent; }
getParentGroup
299,909
List<XmlElementsGroup> () { return mySubGroups.getValue(); }
getSubGroups
299,910
XmlElementDescriptor () { return myParticle.getElementDescriptor(); }
getLeafDescriptor
299,911
XmlElementsGroup () { return null; }
getTopGroup
299,912
String () { return null; }
getDefaultValue
299,913
XmlElementDescriptor[] (final BaseXmlElementDescriptorImpl xmlElementDescriptor, XmlTag tag) { return xmlElementDescriptor.doCollectXmlDescriptors(tag); }
compute
299,914
XmlElementDescriptor[] (final BaseXmlElementDescriptorImpl xmlElementDescriptor, Object o) { return xmlElementDescriptor.myElementDescriptors; }
getValue
299,915
void (final XmlElementDescriptor[] xmlElementDescriptors, final BaseXmlElementDescriptorImpl xmlElementDescriptor, Object o) { xmlElementDescriptor.myElementDescriptors = xmlElementDescriptors; }
putValue
299,916
XmlElementDescriptor[] (XmlTag context) { return myElementDescriptorsCache.get(null, this, context); }
getElementsDescriptors
299,917
XmlAttributeDescriptor[] (final BaseXmlElementDescriptorImpl xmlElementDescriptor) { return xmlElementDescriptor.collectAttributeDescriptors(null); }
compute
299,918
XmlAttributeDescriptor[] (final BaseXmlElementDescriptorImpl xmlElementDescriptor) { return xmlElementDescriptor.myAttributeDescriptors; }
getValue
299,919
void (final XmlAttributeDescriptor[] xmlAttributeDescriptors, final BaseXmlElementDescriptorImpl xmlElementDescriptor) { xmlElementDescriptor.myAttributeDescriptors = xmlAttributeDescriptors; }
putValue
299,920
XmlAttributeDescriptor[] (final XmlTag context) { return myAttributeDescriptorsCache.get(this); }
getAttributesDescriptors
299,921
void (final HashMap<String, XmlAttributeDescriptor> hashMap, final BaseXmlElementDescriptorImpl baseXmlElementDescriptor) { baseXmlElementDescriptor.attributeDescriptorsMap = hashMap; }
putValue
299,922
XmlAttributeDescriptor (String attributeName, final XmlTag context) { return attributeDescriptorsMapCache.get(this).get(attributeName); }
getAttributeDescriptor
299,923
void (final HashMap<String, XmlElementDescriptor> hashMap, final BaseXmlElementDescriptorImpl baseXmlElementDescriptor, final Object p) { baseXmlElementDescriptor.myElementDescriptorsMap = hashMap; }
putValue
299,924
XmlElementDescriptor (XmlTag element, XmlTag contextTag) { return myElementDescriptorsMapCache.get(null, this, contextTag).get(element.getName()); }
getElementDescriptor
299,925
XmlElementDescriptor (String name, XmlTag context) { return myElementDescriptorsMapCache.get(null, this, context).get(name); }
getElementDescriptor
299,926
XmlAttributeDescriptor (XmlAttribute attr) { return getAttributeDescriptor(attr.getName(), attr.getParent()); }
getAttributeDescriptor
299,927
String () { return getQualifiedName(); }
toString
299,928
boolean () { return myRequired; }
isRequired
299,929
PsiElement () { return myDecl; }
getDeclaration
299,930
String () { if (myName!=null) { return myName; } myName = myDecl.getNameElement().getText(); return myName; }
getName
299,931
void (PsiElement element) { myDecl = (XmlAttributeDecl) element; myRequired = myDecl.isAttributeRequired(); myFixed = myDecl.isAttributeFixed(); myEnumerated = myDecl.isEnumerated(); }
init
299,932
boolean () { return myFixed; }
isFixed
299,933
boolean () { return myDecl.isIdAttribute(); }
hasIdType
299,934
boolean () { return myDecl.isIdRefAttribute(); }
hasIdRefType
299,935
String () { String text = myDecl.getDefaultValueText(); if (text != null) { return text.substring(1, text.length() - 1); } return null; }
getDefaultValue
299,936
boolean () { return myEnumerated; }
isEnumerated
299,937
String[] () { XmlElement[] values = myDecl.getEnumeratedValues(); List<String> result = new ArrayList<>(); for (XmlElement value : values) { result.add(value.getText()); } return ArrayUtilRt.toStringArray(result); }
getEnumeratedValues
299,938
String () { return getName(); }
getQualifiedName
299,939
void (final CachedValue<Map<String, XmlElementDescriptor>> cachedValue, final XmlNSDescriptorImpl xmlNSDescriptor) { xmlNSDescriptor.myCachedDecls = cachedValue; }
putValue
299,940
String (final @NotNull XmlElementDecl psiElement) { return psiElement.getName(); }
getName
299,941
String (final @NotNull XmlElementDecl psiElement, final @NotNull String name) { return name; }
getNameKey
299,942
PsiElement (final @NotNull XmlElementDecl psiElement) { return psiElement.getNameElement(); }
getNodeForMessage
299,943
XmlFile () { return myDescriptorFile; }
getDescriptorFile
299,944
XmlElementDescriptor[] () { final Collection<XmlElementDescriptor> declarations = buildDeclarationMap().values(); return declarations.toArray(XmlElementDescriptor.EMPTY_ARRAY); }
getElements
299,945
XmlElementDescriptor (@NotNull XmlTag tag) { String name = tag.getName(); return getElementDescriptor(name); }
getElementDescriptor
299,946
XmlElementDescriptor (String name) { return buildDeclarationMap().get(name); }
getElementDescriptor
299,947
PsiElement () { return myElement; }
getDeclaration
299,948
String (PsiElement context) { return getName(); }
getName
299,949
String () { return myDescriptorFile.getName(); }
getName
299,950
void (PsiElement element) { myElement = (XmlElement)element; myDescriptorFile = (XmlFile)element.getContainingFile(); if (myElement instanceof XmlFile) { myElement = ((XmlFile)myElement).getDocument(); } }
init
299,951
void (@NotNull XmlDocument document, @NotNull ValidationHost host) { if (document.getLanguage() == DTDLanguage.INSTANCE) { final List<XmlElementDecl> decls = new ArrayList<>(3); XmlUtil.processXmlElements(document, new PsiElementProcessor() { @Override public boolean execute(final @NotNull PsiElement element) { if (element instanceof XmlElementDecl) decls.add((XmlElementDecl)element); return true; } }, false); XmlUtil.doDuplicationCheckForElements( decls.toArray(new XmlElementDecl[0]), new HashMap<>(decls.size()), XML_ELEMENT_DECL_PROVIDER, host ); return; } ExternalDocumentValidator.doValidation(document,host); }
validate
299,952
boolean (final @NotNull PsiElement element) { if (element instanceof XmlElementDecl) decls.add((XmlElementDecl)element); return true; }
execute
299,953
XmlElementDescriptor (String localName, String namespace) { return getElementDescriptor(localName); }
getElementDescriptor
299,954
int (String packed, int offset, int [] result) { int i = 0; /* index in packed string */ int j = offset; /* index in unpacked array */ int l = packed.length(); while (i < l) { int count = packed.charAt(i++); int value = packed.charAt(i++); do result[j++] = value; while (--count > 0); } return j; }
zzUnpackcmap_top
299,955
int (String packed, int offset, int [] result) { int i = 0; /* index in packed string */ int j = offset; /* index in unpacked array */ int l = packed.length(); while (i < l) { int count = packed.charAt(i++); int value = packed.charAt(i++); do result[j++] = value; while (--count > 0); } return j; }
zzUnpackcmap_blocks
299,956
int (String packed, int offset, int [] result) { int i = 0; /* index in packed string */ int j = offset; /* index in unpacked array */ int l = packed.length(); while (i < l) { int count = packed.charAt(i++); int value = packed.charAt(i++); do result[j++] = value; while (--count > 0); } return j; }
zzUnpackAction
299,957
int (String packed, int offset, int [] result) { int i = 0; /* index in packed string */ int j = offset; /* index in unpacked array */ int l = packed.length() - 1; while (i < l) { int high = packed.charAt(i++) << 16; result[j++] = high | packed.charAt(i++); } return j; }
zzUnpackRowMap
299,958
int (String packed, int offset, int [] result) { int i = 0; /* index in packed string */ int j = offset; /* index in unpacked array */ int l = packed.length(); while (i < l) { int count = packed.charAt(i++); int value = packed.charAt(i++); value--; do result[j++] = value; while (--count > 0); } return j; }
zzUnpacktrans
299,959
int (String packed, int offset, int [] result) { int i = 0; /* index in packed string */ int j = offset; /* index in unpacked array */ int l = packed.length(); while (i < l) { int count = packed.charAt(i++); int value = packed.charAt(i++); do result[j++] = value; while (--count > 0); } return j; }
zzUnpackAttribute
299,960
void (final boolean b) { myConditionalCommentsSupport = b; }
setConditionalCommentsSupport
299,961
void (IElementType _elTokenType,IElementType _elTokenType2) { elTokenType = _elTokenType; elTokenType2 = _elTokenType2; }
setElTypes
299,962
void (IElementType _tokenType) { javaEmbeddedTokenType = _tokenType; }
setJavaEmbeddedType
299,963
int () { return myPrevState; }
yyprevstate
299,964
int () { final int prev = myPrevState; myPrevState = YYINITIAL; return prev; }
popState
299,965
void (int state) { myPrevState = state; }
pushState
299,966
int () { return Integer.MAX_VALUE; }
zzMaxBufferLen
299,967
boolean () { return true; }
zzCanGrow
299,968
int (int input) { int offset = input & 255; return offset == input ? ZZ_CMAP_BLOCKS[offset] : ZZ_CMAP_BLOCKS[ZZ_CMAP_TOP[input >> 8] | offset]; }
zzCMap
299,969
int () { return zzStartRead; }
getTokenStart
299,970
int () { return getTokenStart() + yylength(); }
getTokenEnd
299,971
void (CharSequence buffer, int start, int end, int initialState) { zzBuffer = buffer; zzCurrentPos = zzMarkedPos = zzStartRead = start; zzAtEOF = false; zzAtBOL = true; zzEndRead = end; yybegin(initialState); }
reset
299,972
int () { return zzLexicalState; }
yystate
299,973
void (int newState) { zzLexicalState = newState; }
yybegin
299,974
CharSequence () { return zzBuffer.subSequence(zzStartRead, zzMarkedPos); }
yytext
299,975
char (int pos) { return zzBuffer.charAt(zzStartRead+pos); }
yycharat
299,976
int () { return zzMarkedPos-zzStartRead; }
yylength
299,977
void (int errorCode) { String message; try { message = ZZ_ERROR_MSG[errorCode]; } catch (ArrayIndexOutOfBoundsException e) { message = ZZ_ERROR_MSG[ZZ_UNKNOWN_ERROR]; } throw new Error(message); }
zzScanError
299,978
void (int number) { if ( number > yylength() ) zzScanError(ZZ_PUSHBACK_2BIG); zzMarkedPos -= number; }
yypushback
299,979
void () { final __XmlLexer flex = (__XmlLexer)getFlex(); myState = ((flex.yyprevstate() & STATE_MASK) << STATE_SHIFT) | (flex.yystate() & STATE_MASK); }
packState
299,980
void (final int initialState) { final __XmlLexer flex = (__XmlLexer)getFlex(); flex.yybegin(initialState & STATE_MASK); flex.pushState((initialState >> STATE_SHIFT) & STATE_MASK); packState(); }
handleState
299,981
void (@NotNull final CharSequence buffer, final int startOffset, final int endOffset, final int initialState) { super.start(buffer, startOffset, endOffset, initialState); handleState(initialState); }
start
299,982
int () { return myState; }
getState
299,983
void () { super.advance(); packState(); }
advance
299,984
int (String packed, int offset, int [] result) { int i = 0; /* index in packed string */ int j = offset; /* index in unpacked array */ int l = packed.length(); while (i < l) { int count = packed.charAt(i++); int value = packed.charAt(i++); do result[j++] = value; while (--count > 0); } return j; }
zzUnpackcmap_top
299,985
int (String packed, int offset, int [] result) { int i = 0; /* index in packed string */ int j = offset; /* index in unpacked array */ int l = packed.length(); while (i < l) { int count = packed.charAt(i++); int value = packed.charAt(i++); do result[j++] = value; while (--count > 0); } return j; }
zzUnpackcmap_blocks
299,986
int (String packed, int offset, int [] result) { int i = 0; /* index in packed string */ int j = offset; /* index in unpacked array */ int l = packed.length(); while (i < l) { int count = packed.charAt(i++); int value = packed.charAt(i++); do result[j++] = value; while (--count > 0); } return j; }
zzUnpackAction
299,987
int (String packed, int offset, int [] result) { int i = 0; /* index in packed string */ int j = offset; /* index in unpacked array */ int l = packed.length() - 1; while (i < l) { int high = packed.charAt(i++) << 16; result[j++] = high | packed.charAt(i++); } return j; }
zzUnpackRowMap
299,988
int (String packed, int offset, int [] result) { int i = 0; /* index in packed string */ int j = offset; /* index in unpacked array */ int l = packed.length(); while (i < l) { int count = packed.charAt(i++); int value = packed.charAt(i++); value--; do result[j++] = value; while (--count > 0); } return j; }
zzUnpacktrans
299,989
int (String packed, int offset, int [] result) { int i = 0; /* index in packed string */ int j = offset; /* index in unpacked array */ int l = packed.length(); while (i < l) { int count = packed.charAt(i++); int value = packed.charAt(i++); do result[j++] = value; while (--count > 0); } return j; }
zzUnpackAttribute
299,990
int () { return Integer.MAX_VALUE; }
zzMaxBufferLen
299,991
boolean () { return true; }
zzCanGrow
299,992
int (int input) { int offset = input & 255; return offset == input ? ZZ_CMAP_BLOCKS[offset] : ZZ_CMAP_BLOCKS[ZZ_CMAP_TOP[input >> 8] | offset]; }
zzCMap
299,993
int () { return zzStartRead; }
getTokenStart
299,994
int () { return getTokenStart() + yylength(); }
getTokenEnd
299,995
void (CharSequence buffer, int start, int end, int initialState) { zzBuffer = buffer; zzCurrentPos = zzMarkedPos = zzStartRead = start; zzAtEOF = false; zzAtBOL = true; zzEndRead = end; yybegin(initialState); }
reset
299,996
int () { return zzLexicalState; }
yystate
299,997
void (int newState) { zzLexicalState = newState; }
yybegin
299,998
CharSequence () { return zzBuffer.subSequence(zzStartRead, zzMarkedPos); }
yytext
299,999
char (int pos) { return zzBuffer.charAt(zzStartRead+pos); }
yycharat