code
stringlengths
63
466k
code_sememe
stringlengths
141
3.79M
token_type
stringlengths
274
1.23M
@Nullable public Card getCard() { if (validateAllFields()) { String cardNumber = mCardNumberEditText.getCardNumber(); int[] cardDate = mExpiryDateEditText.getValidDateFields(); String cvcValue = mCvcEditText.getText().toString(); Card card = new Card(cardNumber, cardDate[0], cardDate[1], cvcValue); if (mShouldShowPostalCode) { card.setAddressZip(mPostalCodeEditText.getText().toString()); } return card.addLoggingToken(CARD_MULTILINE_TOKEN); } return null; }
class class_name[name] begin[{] method[getCard, return_type[type[Card]], modifier[public], parameter[]] begin[{] if[call[.validateAllFields, parameter[]]] begin[{] local_variable[type[String], cardNumber] local_variable[type[int], cardDate] local_variable[type[String], cvcValue] local_variable[type[Card], card] if[member[.mShouldShowPostalCode]] begin[{] call[card.setAddressZip, parameter[call[mPostalCodeEditText.getText, parameter[]]]] else begin[{] None end[}] return[call[card.addLoggingToken, parameter[member[.CARD_MULTILINE_TOKEN]]]] else begin[{] None end[}] return[literal[null]] end[}] END[}]
annotation[@] identifier[Nullable] Keyword[public] identifier[Card] identifier[getCard] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[validateAllFields] operator[SEP] operator[SEP] operator[SEP] { identifier[String] identifier[cardNumber] operator[=] identifier[mCardNumberEditText] operator[SEP] identifier[getCardNumber] operator[SEP] operator[SEP] operator[SEP] Keyword[int] operator[SEP] operator[SEP] identifier[cardDate] operator[=] identifier[mExpiryDateEditText] operator[SEP] identifier[getValidDateFields] operator[SEP] operator[SEP] operator[SEP] identifier[String] identifier[cvcValue] operator[=] identifier[mCvcEditText] operator[SEP] identifier[getText] operator[SEP] operator[SEP] operator[SEP] identifier[toString] operator[SEP] operator[SEP] operator[SEP] identifier[Card] identifier[card] operator[=] Keyword[new] identifier[Card] operator[SEP] identifier[cardNumber] , identifier[cardDate] operator[SEP] Other[0] operator[SEP] , identifier[cardDate] operator[SEP] Other[1] operator[SEP] , identifier[cvcValue] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[mShouldShowPostalCode] operator[SEP] { identifier[card] operator[SEP] identifier[setAddressZip] operator[SEP] identifier[mPostalCodeEditText] operator[SEP] identifier[getText] operator[SEP] operator[SEP] operator[SEP] identifier[toString] operator[SEP] operator[SEP] operator[SEP] operator[SEP] } Keyword[return] identifier[card] operator[SEP] identifier[addLoggingToken] operator[SEP] identifier[CARD_MULTILINE_TOKEN] operator[SEP] operator[SEP] } Keyword[return] Other[null] operator[SEP] }
@XmlElementDecl(namespace = "http://docs.oasis-open.org/ns/cmis/messaging/200908/", name = "maxItems", scope = GetRenditions.class) public JAXBElement<BigInteger> createGetRenditionsMaxItems(BigInteger value) { return new JAXBElement<BigInteger>(_GetTypeChildrenMaxItems_QNAME, BigInteger.class, GetRenditions.class, value); }
class class_name[name] begin[{] method[createGetRenditionsMaxItems, return_type[type[JAXBElement]], modifier[public], parameter[value]] begin[{] return[ClassCreator(arguments=[MemberReference(member=_GetTypeChildrenMaxItems_QNAME, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), ClassReference(postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=BigInteger, sub_type=None)), ClassReference(postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=GetRenditions, sub_type=None)), MemberReference(member=value, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=BigInteger, sub_type=None))], dimensions=None, name=JAXBElement, sub_type=None))] end[}] END[}]
annotation[@] identifier[XmlElementDecl] operator[SEP] identifier[namespace] operator[=] literal[String] , identifier[name] operator[=] literal[String] , identifier[scope] operator[=] identifier[GetRenditions] operator[SEP] Keyword[class] operator[SEP] Keyword[public] identifier[JAXBElement] operator[<] identifier[BigInteger] operator[>] identifier[createGetRenditionsMaxItems] operator[SEP] identifier[BigInteger] identifier[value] operator[SEP] { Keyword[return] Keyword[new] identifier[JAXBElement] operator[<] identifier[BigInteger] operator[>] operator[SEP] identifier[_GetTypeChildrenMaxItems_QNAME] , identifier[BigInteger] operator[SEP] Keyword[class] , identifier[GetRenditions] operator[SEP] Keyword[class] , identifier[value] operator[SEP] operator[SEP] }
public final void fillEntryCollections(final Collection<? extends IdAndNameBean<T>> pentries) { this.entries.clear(); this.entries.addAll(pentries); clear(); for (final IdAndNameBean<T> entry : this.entries) { this.addItem(entry.getName(), Objects.toString(entry.getId())); } }
class class_name[name] begin[{] method[fillEntryCollections, return_type[void], modifier[final public], parameter[pentries]] begin[{] THIS[member[None.entries]call[None.clear, parameter[]]] THIS[member[None.entries]call[None.addAll, parameter[member[.pentries]]]] call[.clear, parameter[]] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=This(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[MethodInvocation(arguments=[MethodInvocation(arguments=[], member=getName, postfix_operators=[], prefix_operators=[], qualifier=entry, selectors=[], type_arguments=None), MethodInvocation(arguments=[MethodInvocation(arguments=[], member=getId, postfix_operators=[], prefix_operators=[], qualifier=entry, selectors=[], type_arguments=None)], member=toString, postfix_operators=[], prefix_operators=[], qualifier=Objects, selectors=[], type_arguments=None)], member=addItem, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)]), label=None)]), control=EnhancedForControl(iterable=This(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[MemberReference(member=entries, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None)]), var=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=None, name=entry)], modifiers={'final'}, type=ReferenceType(arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=T, sub_type=None))], dimensions=[], name=IdAndNameBean, sub_type=None))), label=None) end[}] END[}]
Keyword[public] Keyword[final] Keyword[void] identifier[fillEntryCollections] operator[SEP] Keyword[final] identifier[Collection] operator[<] operator[?] Keyword[extends] identifier[IdAndNameBean] operator[<] identifier[T] operator[>] operator[>] identifier[pentries] operator[SEP] { Keyword[this] operator[SEP] identifier[entries] operator[SEP] identifier[clear] operator[SEP] operator[SEP] operator[SEP] Keyword[this] operator[SEP] identifier[entries] operator[SEP] identifier[addAll] operator[SEP] identifier[pentries] operator[SEP] operator[SEP] identifier[clear] operator[SEP] operator[SEP] operator[SEP] Keyword[for] operator[SEP] Keyword[final] identifier[IdAndNameBean] operator[<] identifier[T] operator[>] identifier[entry] operator[:] Keyword[this] operator[SEP] identifier[entries] operator[SEP] { Keyword[this] operator[SEP] identifier[addItem] operator[SEP] identifier[entry] operator[SEP] identifier[getName] operator[SEP] operator[SEP] , identifier[Objects] operator[SEP] identifier[toString] operator[SEP] identifier[entry] operator[SEP] identifier[getId] operator[SEP] operator[SEP] operator[SEP] operator[SEP] operator[SEP] } }
public void stop() { try { safeClose(myServerSocket); closeAllConnections(); myThread.join(); } catch (Exception e) { e.printStackTrace(); } }
class class_name[name] begin[{] method[stop, return_type[void], modifier[public], parameter[]] begin[{] TryStatement(block=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=myServerSocket, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=safeClose, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[], member=closeAllConnections, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[], member=join, postfix_operators=[], prefix_operators=[], qualifier=myThread, selectors=[], type_arguments=None), label=None)], catches=[CatchClause(block=[StatementExpression(expression=MethodInvocation(arguments=[], member=printStackTrace, postfix_operators=[], prefix_operators=[], qualifier=e, selectors=[], type_arguments=None), label=None)], label=None, parameter=CatchClauseParameter(annotations=None, modifiers=None, name=e, types=['Exception']))], finally_block=None, label=None, resources=None) end[}] END[}]
Keyword[public] Keyword[void] identifier[stop] operator[SEP] operator[SEP] { Keyword[try] { identifier[safeClose] operator[SEP] identifier[myServerSocket] operator[SEP] operator[SEP] identifier[closeAllConnections] operator[SEP] operator[SEP] operator[SEP] identifier[myThread] operator[SEP] identifier[join] operator[SEP] operator[SEP] operator[SEP] } Keyword[catch] operator[SEP] identifier[Exception] identifier[e] operator[SEP] { identifier[e] operator[SEP] identifier[printStackTrace] operator[SEP] operator[SEP] operator[SEP] } }
public static GethbinfoResult mmpaymkttransfersGethbinfo(Gethbinfo gethbinfo,String key){ Map<String,String> map = MapUtil.objectToMap( gethbinfo); String sign = SignatureUtil.generateSign(map,gethbinfo.getSign_type(),key); gethbinfo.setSign(sign); String secapiPayRefundXML = XMLConverUtil.convertToXML( gethbinfo); HttpUriRequest httpUriRequest = RequestBuilder.post() .setHeader(xmlHeader) .setUri(baseURI()+ "/mmpaymkttransfers/gethbinfo") .setEntity(new StringEntity(secapiPayRefundXML,Charset.forName("utf-8"))) .build(); return LocalHttpClient.keyStoreExecuteXmlResult(gethbinfo.getMch_id(),httpUriRequest,GethbinfoResult.class,gethbinfo.getSign_type(),key); }
class class_name[name] begin[{] method[mmpaymkttransfersGethbinfo, return_type[type[GethbinfoResult]], modifier[public static], parameter[gethbinfo, key]] begin[{] local_variable[type[Map], map] local_variable[type[String], sign] call[gethbinfo.setSign, parameter[member[.sign]]] local_variable[type[String], secapiPayRefundXML] local_variable[type[HttpUriRequest], httpUriRequest] return[call[LocalHttpClient.keyStoreExecuteXmlResult, parameter[call[gethbinfo.getMch_id, parameter[]], member[.httpUriRequest], ClassReference(postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=GethbinfoResult, sub_type=None)), call[gethbinfo.getSign_type, parameter[]], member[.key]]]] end[}] END[}]
Keyword[public] Keyword[static] identifier[GethbinfoResult] identifier[mmpaymkttransfersGethbinfo] operator[SEP] identifier[Gethbinfo] identifier[gethbinfo] , identifier[String] identifier[key] operator[SEP] { identifier[Map] operator[<] identifier[String] , identifier[String] operator[>] identifier[map] operator[=] identifier[MapUtil] operator[SEP] identifier[objectToMap] operator[SEP] identifier[gethbinfo] operator[SEP] operator[SEP] identifier[String] identifier[sign] operator[=] identifier[SignatureUtil] operator[SEP] identifier[generateSign] operator[SEP] identifier[map] , identifier[gethbinfo] operator[SEP] identifier[getSign_type] operator[SEP] operator[SEP] , identifier[key] operator[SEP] operator[SEP] identifier[gethbinfo] operator[SEP] identifier[setSign] operator[SEP] identifier[sign] operator[SEP] operator[SEP] identifier[String] identifier[secapiPayRefundXML] operator[=] identifier[XMLConverUtil] operator[SEP] identifier[convertToXML] operator[SEP] identifier[gethbinfo] operator[SEP] operator[SEP] identifier[HttpUriRequest] identifier[httpUriRequest] operator[=] identifier[RequestBuilder] operator[SEP] identifier[post] operator[SEP] operator[SEP] operator[SEP] identifier[setHeader] operator[SEP] identifier[xmlHeader] operator[SEP] operator[SEP] identifier[setUri] operator[SEP] identifier[baseURI] operator[SEP] operator[SEP] operator[+] literal[String] operator[SEP] operator[SEP] identifier[setEntity] operator[SEP] Keyword[new] identifier[StringEntity] operator[SEP] identifier[secapiPayRefundXML] , identifier[Charset] operator[SEP] identifier[forName] operator[SEP] literal[String] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[build] operator[SEP] operator[SEP] operator[SEP] Keyword[return] identifier[LocalHttpClient] operator[SEP] identifier[keyStoreExecuteXmlResult] operator[SEP] identifier[gethbinfo] operator[SEP] identifier[getMch_id] operator[SEP] operator[SEP] , identifier[httpUriRequest] , identifier[GethbinfoResult] operator[SEP] Keyword[class] , identifier[gethbinfo] operator[SEP] identifier[getSign_type] operator[SEP] operator[SEP] , identifier[key] operator[SEP] operator[SEP] }
private int deshapeNormalize(char[] dest, int start, int length) { int lacount = 0; int yehHamzaComposeEnabled = 0; int seenComposeEnabled = 0; yehHamzaComposeEnabled = ((options&YEHHAMZA_MASK) == YEHHAMZA_TWOCELL_NEAR) ? 1 : 0; seenComposeEnabled = ((options&SEEN_MASK) == SEEN_TWOCELL_NEAR)? 1 : 0; for (int i = start, e = i + length; i < e; ++i) { char ch = dest[i]; if( (yehHamzaComposeEnabled == 1) && ((ch == HAMZA06_CHAR) || (ch == HAMZAFE_CHAR)) && (i < (length - 1)) && isAlefMaksouraChar(dest[i+1] )) { dest[i] = SPACE_CHAR; dest[i+1] = YEH_HAMZA_CHAR; } else if ( (seenComposeEnabled == 1) && (isTailChar(ch)) && (i< (length - 1)) && (isSeenTailFamilyChar(dest[i+1])==1) ) { dest[i] = SPACE_CHAR; } else if (ch >= '\uFE70' && ch <= '\uFEFC') { if (isLamAlefChar(ch)) { ++lacount; } dest[i] = (char)convertFEto06[ch - '\uFE70']; } } return lacount; }
class class_name[name] begin[{] method[deshapeNormalize, return_type[type[int]], modifier[private], parameter[dest, start, length]] begin[{] local_variable[type[int], lacount] local_variable[type[int], yehHamzaComposeEnabled] local_variable[type[int], seenComposeEnabled] assign[member[.yehHamzaComposeEnabled], TernaryExpression(condition=BinaryOperation(operandl=BinaryOperation(operandl=MemberReference(member=options, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=YEHHAMZA_MASK, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=&), operandr=MemberReference(member=YEHHAMZA_TWOCELL_NEAR, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator===), if_false=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), if_true=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1))] assign[member[.seenComposeEnabled], TernaryExpression(condition=BinaryOperation(operandl=BinaryOperation(operandl=MemberReference(member=options, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=SEEN_MASK, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=&), operandr=MemberReference(member=SEEN_TWOCELL_NEAR, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator===), if_false=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), if_true=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1))] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MemberReference(member=dest, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]))]), name=ch)], modifiers=set(), type=BasicType(dimensions=[], name=char)), IfStatement(condition=BinaryOperation(operandl=BinaryOperation(operandl=BinaryOperation(operandl=BinaryOperation(operandl=MemberReference(member=yehHamzaComposeEnabled, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), operator===), operandr=BinaryOperation(operandl=BinaryOperation(operandl=MemberReference(member=ch, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=HAMZA06_CHAR, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator===), operandr=BinaryOperation(operandl=MemberReference(member=ch, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=HAMZAFE_CHAR, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator===), operator=||), operator=&&), operandr=BinaryOperation(operandl=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=BinaryOperation(operandl=MemberReference(member=length, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), operator=-), operator=<), operator=&&), operandr=MethodInvocation(arguments=[MemberReference(member=dest, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=BinaryOperation(operandl=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), operator=+))])], member=isAlefMaksouraChar, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), operator=&&), else_statement=IfStatement(condition=BinaryOperation(operandl=BinaryOperation(operandl=BinaryOperation(operandl=BinaryOperation(operandl=MemberReference(member=seenComposeEnabled, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), operator===), operandr=MethodInvocation(arguments=[MemberReference(member=ch, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=isTailChar, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), operator=&&), operandr=BinaryOperation(operandl=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=BinaryOperation(operandl=MemberReference(member=length, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), operator=-), operator=<), operator=&&), operandr=BinaryOperation(operandl=MethodInvocation(arguments=[MemberReference(member=dest, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=BinaryOperation(operandl=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), operator=+))])], member=isSeenTailFamilyChar, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), operator===), operator=&&), else_statement=IfStatement(condition=BinaryOperation(operandl=BinaryOperation(operandl=MemberReference(member=ch, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value='ﹰ'), operator=>=), operandr=BinaryOperation(operandl=MemberReference(member=ch, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value='ﻼ'), operator=<=), operator=&&), else_statement=None, label=None, then_statement=BlockStatement(label=None, statements=[IfStatement(condition=MethodInvocation(arguments=[MemberReference(member=ch, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=isLamAlefChar, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), else_statement=None, label=None, then_statement=BlockStatement(label=None, statements=[StatementExpression(expression=MemberReference(member=lacount, postfix_operators=[], prefix_operators=['++'], qualifier=, selectors=[]), label=None)])), StatementExpression(expression=Assignment(expressionl=MemberReference(member=dest, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]))]), type==, value=Cast(expression=MemberReference(member=convertFEto06, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=BinaryOperation(operandl=MemberReference(member=ch, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value='ﹰ'), operator=-))]), type=BasicType(dimensions=[], name=char))), label=None)])), label=None, then_statement=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=dest, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]))]), type==, value=MemberReference(member=SPACE_CHAR, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])), label=None)])), label=None, then_statement=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=dest, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]))]), type==, value=MemberReference(member=SPACE_CHAR, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=dest, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=BinaryOperation(operandl=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), operator=+))]), type==, value=MemberReference(member=YEH_HAMZA_CHAR, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])), label=None)]))]), control=ForControl(condition=BinaryOperation(operandl=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=e, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=<), init=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=MemberReference(member=start, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), name=i), VariableDeclarator(dimensions=[], initializer=BinaryOperation(operandl=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=length, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=+), name=e)], modifiers=set(), type=BasicType(dimensions=[], name=int)), update=[MemberReference(member=i, postfix_operators=[], prefix_operators=['++'], qualifier=, selectors=[])]), label=None) return[member[.lacount]] end[}] END[}]
Keyword[private] Keyword[int] identifier[deshapeNormalize] operator[SEP] Keyword[char] operator[SEP] operator[SEP] identifier[dest] , Keyword[int] identifier[start] , Keyword[int] identifier[length] operator[SEP] { Keyword[int] identifier[lacount] operator[=] Other[0] operator[SEP] Keyword[int] identifier[yehHamzaComposeEnabled] operator[=] Other[0] operator[SEP] Keyword[int] identifier[seenComposeEnabled] operator[=] Other[0] operator[SEP] identifier[yehHamzaComposeEnabled] operator[=] operator[SEP] operator[SEP] identifier[options] operator[&] identifier[YEHHAMZA_MASK] operator[SEP] operator[==] identifier[YEHHAMZA_TWOCELL_NEAR] operator[SEP] operator[?] Other[1] operator[:] Other[0] operator[SEP] identifier[seenComposeEnabled] operator[=] operator[SEP] operator[SEP] identifier[options] operator[&] identifier[SEEN_MASK] operator[SEP] operator[==] identifier[SEEN_TWOCELL_NEAR] operator[SEP] operator[?] Other[1] operator[:] Other[0] operator[SEP] Keyword[for] operator[SEP] Keyword[int] identifier[i] operator[=] identifier[start] , identifier[e] operator[=] identifier[i] operator[+] identifier[length] operator[SEP] identifier[i] operator[<] identifier[e] operator[SEP] operator[++] identifier[i] operator[SEP] { Keyword[char] identifier[ch] operator[=] identifier[dest] operator[SEP] identifier[i] operator[SEP] operator[SEP] Keyword[if] operator[SEP] operator[SEP] identifier[yehHamzaComposeEnabled] operator[==] Other[1] operator[SEP] operator[&&] operator[SEP] operator[SEP] identifier[ch] operator[==] identifier[HAMZA06_CHAR] operator[SEP] operator[||] operator[SEP] identifier[ch] operator[==] identifier[HAMZAFE_CHAR] operator[SEP] operator[SEP] operator[&&] operator[SEP] identifier[i] operator[<] operator[SEP] identifier[length] operator[-] Other[1] operator[SEP] operator[SEP] operator[&&] identifier[isAlefMaksouraChar] operator[SEP] identifier[dest] operator[SEP] identifier[i] operator[+] Other[1] operator[SEP] operator[SEP] operator[SEP] { identifier[dest] operator[SEP] identifier[i] operator[SEP] operator[=] identifier[SPACE_CHAR] operator[SEP] identifier[dest] operator[SEP] identifier[i] operator[+] Other[1] operator[SEP] operator[=] identifier[YEH_HAMZA_CHAR] operator[SEP] } Keyword[else] Keyword[if] operator[SEP] operator[SEP] identifier[seenComposeEnabled] operator[==] Other[1] operator[SEP] operator[&&] operator[SEP] identifier[isTailChar] operator[SEP] identifier[ch] operator[SEP] operator[SEP] operator[&&] operator[SEP] identifier[i] operator[<] operator[SEP] identifier[length] operator[-] Other[1] operator[SEP] operator[SEP] operator[&&] operator[SEP] identifier[isSeenTailFamilyChar] operator[SEP] identifier[dest] operator[SEP] identifier[i] operator[+] Other[1] operator[SEP] operator[SEP] operator[==] Other[1] operator[SEP] operator[SEP] { identifier[dest] operator[SEP] identifier[i] operator[SEP] operator[=] identifier[SPACE_CHAR] operator[SEP] } Keyword[else] Keyword[if] operator[SEP] identifier[ch] operator[>=] literal[String] operator[&&] identifier[ch] operator[<=] literal[String] operator[SEP] { Keyword[if] operator[SEP] identifier[isLamAlefChar] operator[SEP] identifier[ch] operator[SEP] operator[SEP] { operator[++] identifier[lacount] operator[SEP] } identifier[dest] operator[SEP] identifier[i] operator[SEP] operator[=] operator[SEP] Keyword[char] operator[SEP] identifier[convertFEto06] operator[SEP] identifier[ch] operator[-] literal[String] operator[SEP] operator[SEP] } } Keyword[return] identifier[lacount] operator[SEP] }
public static byte[] decode(String source, String charset) { return decode(StrUtil.bytes(source, charset)); }
class class_name[name] begin[{] method[decode, return_type[type[byte]], modifier[public static], parameter[source, charset]] begin[{] return[call[.decode, parameter[call[StrUtil.bytes, parameter[member[.source], member[.charset]]]]]] end[}] END[}]
Keyword[public] Keyword[static] Keyword[byte] operator[SEP] operator[SEP] identifier[decode] operator[SEP] identifier[String] identifier[source] , identifier[String] identifier[charset] operator[SEP] { Keyword[return] identifier[decode] operator[SEP] identifier[StrUtil] operator[SEP] identifier[bytes] operator[SEP] identifier[source] , identifier[charset] operator[SEP] operator[SEP] operator[SEP] }
@Override public void setDeliveryDelay(long deliveryDelayTime) throws JMSException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "setDeliveryDelay", deliveryDelayTime); checkClosed(); // Throws an exception if this is not a valid time to live. validateDeliveryDelayTime(deliveryDelayTime); // We know by this point that it must be valid. this.defaultDeliveryDelay = deliveryDelayTime; if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(this, tc, "setDeliveryDelay"); }
class class_name[name] begin[{] method[setDeliveryDelay, return_type[void], modifier[public], parameter[deliveryDelayTime]] begin[{] if[binary_operation[call[TraceComponent.isAnyTracingEnabled, parameter[]], &&, call[tc.isEntryEnabled, parameter[]]]] begin[{] call[SibTr.entry, parameter[THIS[], member[.tc], literal["setDeliveryDelay"], member[.deliveryDelayTime]]] else begin[{] None end[}] call[.checkClosed, parameter[]] call[.validateDeliveryDelayTime, parameter[member[.deliveryDelayTime]]] assign[THIS[member[None.defaultDeliveryDelay]], member[.deliveryDelayTime]] if[binary_operation[call[TraceComponent.isAnyTracingEnabled, parameter[]], &&, call[tc.isEntryEnabled, parameter[]]]] begin[{] call[SibTr.exit, parameter[THIS[], member[.tc], literal["setDeliveryDelay"]]] else begin[{] None end[}] end[}] END[}]
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[setDeliveryDelay] operator[SEP] Keyword[long] identifier[deliveryDelayTime] operator[SEP] Keyword[throws] identifier[JMSException] { Keyword[if] operator[SEP] identifier[TraceComponent] operator[SEP] identifier[isAnyTracingEnabled] operator[SEP] operator[SEP] operator[&&] identifier[tc] operator[SEP] identifier[isEntryEnabled] operator[SEP] operator[SEP] operator[SEP] identifier[SibTr] operator[SEP] identifier[entry] operator[SEP] Keyword[this] , identifier[tc] , literal[String] , identifier[deliveryDelayTime] operator[SEP] operator[SEP] identifier[checkClosed] operator[SEP] operator[SEP] operator[SEP] identifier[validateDeliveryDelayTime] operator[SEP] identifier[deliveryDelayTime] operator[SEP] operator[SEP] Keyword[this] operator[SEP] identifier[defaultDeliveryDelay] operator[=] identifier[deliveryDelayTime] operator[SEP] Keyword[if] operator[SEP] identifier[TraceComponent] operator[SEP] identifier[isAnyTracingEnabled] operator[SEP] operator[SEP] operator[&&] identifier[tc] operator[SEP] identifier[isEntryEnabled] operator[SEP] operator[SEP] operator[SEP] identifier[SibTr] operator[SEP] identifier[exit] operator[SEP] Keyword[this] , identifier[tc] , literal[String] operator[SEP] operator[SEP] }
public FileFilter build() { if (filenames.isEmpty() && extensions.isEmpty() && fileFilters.isEmpty()) { throw new IllegalStateException("May only be invoked after at least one add... method has been invoked."); } final OrFileFilter filter = new OrFileFilter(); if (!filenames.isEmpty()) { filter.addFileFilter(new NameFileFilter(new ArrayList<>(filenames))); } if (!extensions.isEmpty()) { filter.addFileFilter(new SuffixFileFilter(new ArrayList<>(extensions), IOCase.INSENSITIVE)); } for (IOFileFilter iof : fileFilters) { filter.addFileFilter(iof); } return filter; }
class class_name[name] begin[{] method[build, return_type[type[FileFilter]], modifier[public], parameter[]] begin[{] if[binary_operation[binary_operation[call[filenames.isEmpty, parameter[]], &&, call[extensions.isEmpty, parameter[]]], &&, call[fileFilters.isEmpty, parameter[]]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="May only be invoked after at least one add... method has been invoked.")], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=IllegalStateException, sub_type=None)), label=None) else begin[{] None end[}] local_variable[type[OrFileFilter], filter] if[call[filenames.isEmpty, parameter[]]] begin[{] call[filter.addFileFilter, parameter[ClassCreator(arguments=[ClassCreator(arguments=[MemberReference(member=filenames, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=[], dimensions=None, name=ArrayList, sub_type=None))], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=NameFileFilter, sub_type=None))]] else begin[{] None end[}] if[call[extensions.isEmpty, parameter[]]] begin[{] call[filter.addFileFilter, parameter[ClassCreator(arguments=[ClassCreator(arguments=[MemberReference(member=extensions, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=[], dimensions=None, name=ArrayList, sub_type=None)), MemberReference(member=INSENSITIVE, postfix_operators=[], prefix_operators=[], qualifier=IOCase, selectors=[])], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=SuffixFileFilter, sub_type=None))]] else begin[{] None end[}] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=iof, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=addFileFilter, postfix_operators=[], prefix_operators=[], qualifier=filter, selectors=[], type_arguments=None), label=None)]), control=EnhancedForControl(iterable=MemberReference(member=fileFilters, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), var=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=None, name=iof)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=IOFileFilter, sub_type=None))), label=None) return[member[.filter]] end[}] END[}]
Keyword[public] identifier[FileFilter] identifier[build] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[filenames] operator[SEP] identifier[isEmpty] operator[SEP] operator[SEP] operator[&&] identifier[extensions] operator[SEP] identifier[isEmpty] operator[SEP] operator[SEP] operator[&&] identifier[fileFilters] operator[SEP] identifier[isEmpty] operator[SEP] operator[SEP] operator[SEP] { Keyword[throw] Keyword[new] identifier[IllegalStateException] operator[SEP] literal[String] operator[SEP] operator[SEP] } Keyword[final] identifier[OrFileFilter] identifier[filter] operator[=] Keyword[new] identifier[OrFileFilter] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] operator[!] identifier[filenames] operator[SEP] identifier[isEmpty] operator[SEP] operator[SEP] operator[SEP] { identifier[filter] operator[SEP] identifier[addFileFilter] operator[SEP] Keyword[new] identifier[NameFileFilter] operator[SEP] Keyword[new] identifier[ArrayList] operator[<] operator[>] operator[SEP] identifier[filenames] operator[SEP] operator[SEP] operator[SEP] operator[SEP] } Keyword[if] operator[SEP] operator[!] identifier[extensions] operator[SEP] identifier[isEmpty] operator[SEP] operator[SEP] operator[SEP] { identifier[filter] operator[SEP] identifier[addFileFilter] operator[SEP] Keyword[new] identifier[SuffixFileFilter] operator[SEP] Keyword[new] identifier[ArrayList] operator[<] operator[>] operator[SEP] identifier[extensions] operator[SEP] , identifier[IOCase] operator[SEP] identifier[INSENSITIVE] operator[SEP] operator[SEP] operator[SEP] } Keyword[for] operator[SEP] identifier[IOFileFilter] identifier[iof] operator[:] identifier[fileFilters] operator[SEP] { identifier[filter] operator[SEP] identifier[addFileFilter] operator[SEP] identifier[iof] operator[SEP] operator[SEP] } Keyword[return] identifier[filter] operator[SEP] }
public String matchOrDefault(String defaultString) { check(); String match = context.getMatch(); return match.length() == 0 ? defaultString : match; }
class class_name[name] begin[{] method[matchOrDefault, return_type[type[String]], modifier[public], parameter[defaultString]] begin[{] call[.check, parameter[]] local_variable[type[String], match] return[TernaryExpression(condition=BinaryOperation(operandl=MethodInvocation(arguments=[], member=length, postfix_operators=[], prefix_operators=[], qualifier=match, selectors=[], type_arguments=None), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), operator===), if_false=MemberReference(member=match, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), if_true=MemberReference(member=defaultString, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]))] end[}] END[}]
Keyword[public] identifier[String] identifier[matchOrDefault] operator[SEP] identifier[String] identifier[defaultString] operator[SEP] { identifier[check] operator[SEP] operator[SEP] operator[SEP] identifier[String] identifier[match] operator[=] identifier[context] operator[SEP] identifier[getMatch] operator[SEP] operator[SEP] operator[SEP] Keyword[return] identifier[match] operator[SEP] identifier[length] operator[SEP] operator[SEP] operator[==] Other[0] operator[?] identifier[defaultString] operator[:] identifier[match] operator[SEP] }
public final EObject ruleAssignableAlternatives() throws RecognitionException { EObject current = null; Token otherlv_2=null; EObject this_AssignableTerminal_0 = null; EObject lv_elements_3_0 = null; enterRule(); try { // InternalXtext.g:2579:2: ( (this_AssignableTerminal_0= ruleAssignableTerminal ( () (otherlv_2= '|' ( (lv_elements_3_0= ruleAssignableTerminal ) ) )+ )? ) ) // InternalXtext.g:2580:2: (this_AssignableTerminal_0= ruleAssignableTerminal ( () (otherlv_2= '|' ( (lv_elements_3_0= ruleAssignableTerminal ) ) )+ )? ) { // InternalXtext.g:2580:2: (this_AssignableTerminal_0= ruleAssignableTerminal ( () (otherlv_2= '|' ( (lv_elements_3_0= ruleAssignableTerminal ) ) )+ )? ) // InternalXtext.g:2581:3: this_AssignableTerminal_0= ruleAssignableTerminal ( () (otherlv_2= '|' ( (lv_elements_3_0= ruleAssignableTerminal ) ) )+ )? { newCompositeNode(grammarAccess.getAssignableAlternativesAccess().getAssignableTerminalParserRuleCall_0()); pushFollow(FollowSets000.FOLLOW_25); this_AssignableTerminal_0=ruleAssignableTerminal(); state._fsp--; current = this_AssignableTerminal_0; afterParserOrEnumRuleCall(); // InternalXtext.g:2589:3: ( () (otherlv_2= '|' ( (lv_elements_3_0= ruleAssignableTerminal ) ) )+ )? int alt58=2; int LA58_0 = input.LA(1); if ( (LA58_0==30) ) { alt58=1; } switch (alt58) { case 1 : // InternalXtext.g:2590:4: () (otherlv_2= '|' ( (lv_elements_3_0= ruleAssignableTerminal ) ) )+ { // InternalXtext.g:2590:4: () // InternalXtext.g:2591:5: { current = forceCreateModelElementAndAdd( grammarAccess.getAssignableAlternativesAccess().getAlternativesElementsAction_1_0(), current); } // InternalXtext.g:2597:4: (otherlv_2= '|' ( (lv_elements_3_0= ruleAssignableTerminal ) ) )+ int cnt57=0; loop57: do { int alt57=2; int LA57_0 = input.LA(1); if ( (LA57_0==30) ) { alt57=1; } switch (alt57) { case 1 : // InternalXtext.g:2598:5: otherlv_2= '|' ( (lv_elements_3_0= ruleAssignableTerminal ) ) { otherlv_2=(Token)match(input,30,FollowSets000.FOLLOW_40); newLeafNode(otherlv_2, grammarAccess.getAssignableAlternativesAccess().getVerticalLineKeyword_1_1_0()); // InternalXtext.g:2602:5: ( (lv_elements_3_0= ruleAssignableTerminal ) ) // InternalXtext.g:2603:6: (lv_elements_3_0= ruleAssignableTerminal ) { // InternalXtext.g:2603:6: (lv_elements_3_0= ruleAssignableTerminal ) // InternalXtext.g:2604:7: lv_elements_3_0= ruleAssignableTerminal { newCompositeNode(grammarAccess.getAssignableAlternativesAccess().getElementsAssignableTerminalParserRuleCall_1_1_1_0()); pushFollow(FollowSets000.FOLLOW_25); lv_elements_3_0=ruleAssignableTerminal(); state._fsp--; if (current==null) { current = createModelElementForParent(grammarAccess.getAssignableAlternativesRule()); } add( current, "elements", lv_elements_3_0, "org.eclipse.xtext.Xtext.AssignableTerminal"); afterParserOrEnumRuleCall(); } } } break; default : if ( cnt57 >= 1 ) break loop57; EarlyExitException eee = new EarlyExitException(57, input); throw eee; } cnt57++; } while (true); } break; } } } leaveRule(); } catch (RecognitionException re) { recover(input,re); appendSkippedTokens(); } finally { } return current; }
class class_name[name] begin[{] method[ruleAssignableAlternatives, return_type[type[EObject]], modifier[final public], parameter[]] begin[{] local_variable[type[EObject], current] local_variable[type[Token], otherlv_2] local_variable[type[EObject], this_AssignableTerminal_0] local_variable[type[EObject], lv_elements_3_0] call[.enterRule, parameter[]] TryStatement(block=[BlockStatement(label=None, statements=[BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[], member=getAssignableAlternativesAccess, postfix_operators=[], prefix_operators=[], qualifier=grammarAccess, selectors=[MethodInvocation(arguments=[], member=getAssignableTerminalParserRuleCall_0, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)], type_arguments=None)], member=newCompositeNode, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=FOLLOW_25, postfix_operators=[], prefix_operators=[], qualifier=FollowSets000, selectors=[])], member=pushFollow, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=this_AssignableTerminal_0, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MethodInvocation(arguments=[], member=ruleAssignableTerminal, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None)), label=None), StatementExpression(expression=MemberReference(member=_fsp, postfix_operators=['--'], prefix_operators=[], qualifier=state, selectors=[]), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=current, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MemberReference(member=this_AssignableTerminal_0, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])), label=None), StatementExpression(expression=MethodInvocation(arguments=[], member=afterParserOrEnumRuleCall, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), label=None), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=2), name=alt58)], modifiers=set(), type=BasicType(dimensions=[], name=int)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1)], member=LA, postfix_operators=[], prefix_operators=[], qualifier=input, selectors=[], type_arguments=None), name=LA58_0)], modifiers=set(), type=BasicType(dimensions=[], name=int)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=LA58_0, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=30), operator===), else_statement=None, label=None, then_statement=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=alt58, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1)), label=None)])), SwitchStatement(cases=[SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1)], statements=[BlockStatement(label=None, statements=[BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=current, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MethodInvocation(arguments=[MethodInvocation(arguments=[], member=getAssignableAlternativesAccess, postfix_operators=[], prefix_operators=[], qualifier=grammarAccess, selectors=[MethodInvocation(arguments=[], member=getAlternativesElementsAction_1_0, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)], type_arguments=None), MemberReference(member=current, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=forceCreateModelElementAndAdd, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None)), label=None)]), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), name=cnt57)], modifiers=set(), type=BasicType(dimensions=[], name=int)), DoStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=2), name=alt57)], modifiers=set(), type=BasicType(dimensions=[], name=int)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1)], member=LA, postfix_operators=[], prefix_operators=[], qualifier=input, selectors=[], type_arguments=None), name=LA57_0)], modifiers=set(), type=BasicType(dimensions=[], name=int)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=LA57_0, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=30), operator===), else_statement=None, label=None, then_statement=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=alt57, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1)), label=None)])), SwitchStatement(cases=[SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1)], statements=[BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=otherlv_2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=Cast(expression=MethodInvocation(arguments=[MemberReference(member=input, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=30), MemberReference(member=FOLLOW_40, postfix_operators=[], prefix_operators=[], qualifier=FollowSets000, selectors=[])], member=match, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), type=ReferenceType(arguments=None, dimensions=[], name=Token, sub_type=None))), label=None), StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=otherlv_2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MethodInvocation(arguments=[], member=getAssignableAlternativesAccess, postfix_operators=[], prefix_operators=[], qualifier=grammarAccess, selectors=[MethodInvocation(arguments=[], member=getVerticalLineKeyword_1_1_0, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)], type_arguments=None)], member=newLeafNode, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), label=None), BlockStatement(label=None, statements=[BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[], member=getAssignableAlternativesAccess, postfix_operators=[], prefix_operators=[], qualifier=grammarAccess, selectors=[MethodInvocation(arguments=[], member=getElementsAssignableTerminalParserRuleCall_1_1_1_0, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)], type_arguments=None)], member=newCompositeNode, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=FOLLOW_25, postfix_operators=[], prefix_operators=[], qualifier=FollowSets000, selectors=[])], member=pushFollow, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=lv_elements_3_0, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MethodInvocation(arguments=[], member=ruleAssignableTerminal, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None)), label=None), StatementExpression(expression=MemberReference(member=_fsp, postfix_operators=['--'], prefix_operators=[], qualifier=state, selectors=[]), label=None), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=current, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=null), operator===), else_statement=None, label=None, then_statement=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=current, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MethodInvocation(arguments=[MethodInvocation(arguments=[], member=getAssignableAlternativesRule, postfix_operators=[], prefix_operators=[], qualifier=grammarAccess, selectors=[], type_arguments=None)], member=createModelElementForParent, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None)), label=None)])), StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=current, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="elements"), MemberReference(member=lv_elements_3_0, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="org.eclipse.xtext.Xtext.AssignableTerminal")], member=add, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[], member=afterParserOrEnumRuleCall, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), label=None)])])]), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[], statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=cnt57, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), operator=>=), else_statement=None, label=None, then_statement=BreakStatement(goto=loop57, label=None)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=57), MemberReference(member=input, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=EarlyExitException, sub_type=None)), name=eee)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=EarlyExitException, sub_type=None)), ThrowStatement(expression=MemberReference(member=eee, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), label=None)])], expression=MemberReference(member=alt57, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), label=None), StatementExpression(expression=MemberReference(member=cnt57, postfix_operators=['++'], prefix_operators=[], qualifier=, selectors=[]), label=None)]), condition=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=true), label=loop57)]), BreakStatement(goto=None, label=None)])], expression=MemberReference(member=alt58, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), label=None)])]), StatementExpression(expression=MethodInvocation(arguments=[], member=leaveRule, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), label=None)], catches=[CatchClause(block=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=input, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=re, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=recover, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[], member=appendSkippedTokens, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), label=None)], label=None, parameter=CatchClauseParameter(annotations=None, modifiers=None, name=re, types=['RecognitionException']))], finally_block=[], label=None, resources=None) return[member[.current]] end[}] END[}]
Keyword[public] Keyword[final] identifier[EObject] identifier[ruleAssignableAlternatives] operator[SEP] operator[SEP] Keyword[throws] identifier[RecognitionException] { identifier[EObject] identifier[current] operator[=] Other[null] operator[SEP] identifier[Token] identifier[otherlv_2] operator[=] Other[null] operator[SEP] identifier[EObject] identifier[this_AssignableTerminal_0] operator[=] Other[null] operator[SEP] identifier[EObject] identifier[lv_elements_3_0] operator[=] Other[null] operator[SEP] identifier[enterRule] operator[SEP] operator[SEP] operator[SEP] Keyword[try] { { { identifier[newCompositeNode] operator[SEP] identifier[grammarAccess] operator[SEP] identifier[getAssignableAlternativesAccess] operator[SEP] operator[SEP] operator[SEP] identifier[getAssignableTerminalParserRuleCall_0] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[pushFollow] operator[SEP] identifier[FollowSets000] operator[SEP] identifier[FOLLOW_25] operator[SEP] operator[SEP] identifier[this_AssignableTerminal_0] operator[=] identifier[ruleAssignableTerminal] operator[SEP] operator[SEP] operator[SEP] identifier[state] operator[SEP] identifier[_fsp] operator[--] operator[SEP] identifier[current] operator[=] identifier[this_AssignableTerminal_0] operator[SEP] identifier[afterParserOrEnumRuleCall] operator[SEP] operator[SEP] operator[SEP] Keyword[int] identifier[alt58] operator[=] Other[2] operator[SEP] Keyword[int] identifier[LA58_0] operator[=] identifier[input] operator[SEP] identifier[LA] operator[SEP] Other[1] operator[SEP] operator[SEP] Keyword[if] operator[SEP] operator[SEP] identifier[LA58_0] operator[==] Other[30] operator[SEP] operator[SEP] { identifier[alt58] operator[=] Other[1] operator[SEP] } Keyword[switch] operator[SEP] identifier[alt58] operator[SEP] { Keyword[case] Other[1] operator[:] { { identifier[current] operator[=] identifier[forceCreateModelElementAndAdd] operator[SEP] identifier[grammarAccess] operator[SEP] identifier[getAssignableAlternativesAccess] operator[SEP] operator[SEP] operator[SEP] identifier[getAlternativesElementsAction_1_0] operator[SEP] operator[SEP] , identifier[current] operator[SEP] operator[SEP] } Keyword[int] identifier[cnt57] operator[=] Other[0] operator[SEP] identifier[loop57] operator[:] Keyword[do] { Keyword[int] identifier[alt57] operator[=] Other[2] operator[SEP] Keyword[int] identifier[LA57_0] operator[=] identifier[input] operator[SEP] identifier[LA] operator[SEP] Other[1] operator[SEP] operator[SEP] Keyword[if] operator[SEP] operator[SEP] identifier[LA57_0] operator[==] Other[30] operator[SEP] operator[SEP] { identifier[alt57] operator[=] Other[1] operator[SEP] } Keyword[switch] operator[SEP] identifier[alt57] operator[SEP] { Keyword[case] Other[1] operator[:] { identifier[otherlv_2] operator[=] operator[SEP] identifier[Token] operator[SEP] identifier[match] operator[SEP] identifier[input] , Other[30] , identifier[FollowSets000] operator[SEP] identifier[FOLLOW_40] operator[SEP] operator[SEP] identifier[newLeafNode] operator[SEP] identifier[otherlv_2] , identifier[grammarAccess] operator[SEP] identifier[getAssignableAlternativesAccess] operator[SEP] operator[SEP] operator[SEP] identifier[getVerticalLineKeyword_1_1_0] operator[SEP] operator[SEP] operator[SEP] operator[SEP] { { identifier[newCompositeNode] operator[SEP] identifier[grammarAccess] operator[SEP] identifier[getAssignableAlternativesAccess] operator[SEP] operator[SEP] operator[SEP] identifier[getElementsAssignableTerminalParserRuleCall_1_1_1_0] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[pushFollow] operator[SEP] identifier[FollowSets000] operator[SEP] identifier[FOLLOW_25] operator[SEP] operator[SEP] identifier[lv_elements_3_0] operator[=] identifier[ruleAssignableTerminal] operator[SEP] operator[SEP] operator[SEP] identifier[state] operator[SEP] identifier[_fsp] operator[--] operator[SEP] Keyword[if] operator[SEP] identifier[current] operator[==] Other[null] operator[SEP] { identifier[current] operator[=] identifier[createModelElementForParent] operator[SEP] identifier[grammarAccess] operator[SEP] identifier[getAssignableAlternativesRule] operator[SEP] operator[SEP] operator[SEP] operator[SEP] } identifier[add] operator[SEP] identifier[current] , literal[String] , identifier[lv_elements_3_0] , literal[String] operator[SEP] operator[SEP] identifier[afterParserOrEnumRuleCall] operator[SEP] operator[SEP] operator[SEP] } } } Keyword[break] operator[SEP] Keyword[default] operator[:] Keyword[if] operator[SEP] identifier[cnt57] operator[>=] Other[1] operator[SEP] Keyword[break] identifier[loop57] operator[SEP] identifier[EarlyExitException] identifier[eee] operator[=] Keyword[new] identifier[EarlyExitException] operator[SEP] Other[57] , identifier[input] operator[SEP] operator[SEP] Keyword[throw] identifier[eee] operator[SEP] } identifier[cnt57] operator[++] operator[SEP] } Keyword[while] operator[SEP] literal[boolean] operator[SEP] operator[SEP] } Keyword[break] operator[SEP] } } } identifier[leaveRule] operator[SEP] operator[SEP] operator[SEP] } Keyword[catch] operator[SEP] identifier[RecognitionException] identifier[re] operator[SEP] { identifier[recover] operator[SEP] identifier[input] , identifier[re] operator[SEP] operator[SEP] identifier[appendSkippedTokens] operator[SEP] operator[SEP] operator[SEP] } Keyword[finally] { } Keyword[return] identifier[current] operator[SEP] }
public <T> T transaction(final SQLTransaction<T> operations) throws SQLException { Connection conn = null; try { conn = this.queryRunner.getDataSource().getConnection(); conn.setAutoCommit(false); final DatabaseTransOperator transOperator = new DatabaseTransOperator(this.queryRunner, conn); final T res = operations.execute(transOperator); conn.commit(); return res; } catch (final SQLException ex) { // todo kunkun-tang: Retry logics should be implemented here. logger.error("transaction failed", ex); if (this.dbMetrics != null) { this.dbMetrics.markDBFailTransaction(); } throw ex; } finally { DbUtils.closeQuietly(conn); } }
class class_name[name] begin[{] method[transaction, return_type[type[T]], modifier[public], parameter[operations]] begin[{] local_variable[type[Connection], conn] TryStatement(block=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=conn, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=This(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[MemberReference(member=queryRunner, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None), MethodInvocation(arguments=[], member=getDataSource, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None), MethodInvocation(arguments=[], member=getConnection, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)])), label=None), StatementExpression(expression=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=false)], member=setAutoCommit, postfix_operators=[], prefix_operators=[], qualifier=conn, selectors=[], type_arguments=None), label=None), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=ClassCreator(arguments=[This(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[MemberReference(member=queryRunner, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None)]), MemberReference(member=conn, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=DatabaseTransOperator, sub_type=None)), name=transOperator)], modifiers={'final'}, type=ReferenceType(arguments=None, dimensions=[], name=DatabaseTransOperator, sub_type=None)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberReference(member=transOperator, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=execute, postfix_operators=[], prefix_operators=[], qualifier=operations, selectors=[], type_arguments=None), name=res)], modifiers={'final'}, type=ReferenceType(arguments=None, dimensions=[], name=T, sub_type=None)), StatementExpression(expression=MethodInvocation(arguments=[], member=commit, postfix_operators=[], prefix_operators=[], qualifier=conn, selectors=[], type_arguments=None), label=None), ReturnStatement(expression=MemberReference(member=res, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), label=None)], catches=[CatchClause(block=[StatementExpression(expression=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="transaction failed"), MemberReference(member=ex, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=error, postfix_operators=[], prefix_operators=[], qualifier=logger, selectors=[], type_arguments=None), label=None), IfStatement(condition=BinaryOperation(operandl=This(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[MemberReference(member=dbMetrics, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None)]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=null), operator=!=), else_statement=None, label=None, then_statement=BlockStatement(label=None, statements=[StatementExpression(expression=This(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[MemberReference(member=dbMetrics, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None), MethodInvocation(arguments=[], member=markDBFailTransaction, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)]), label=None)])), ThrowStatement(expression=MemberReference(member=ex, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), label=None)], label=None, parameter=CatchClauseParameter(annotations=None, modifiers=None, name=ex, types=['SQLException']))], finally_block=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=conn, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=closeQuietly, postfix_operators=[], prefix_operators=[], qualifier=DbUtils, selectors=[], type_arguments=None), label=None)], label=None, resources=None) end[}] END[}]
Keyword[public] operator[<] identifier[T] operator[>] identifier[T] identifier[transaction] operator[SEP] Keyword[final] identifier[SQLTransaction] operator[<] identifier[T] operator[>] identifier[operations] operator[SEP] Keyword[throws] identifier[SQLException] { identifier[Connection] identifier[conn] operator[=] Other[null] operator[SEP] Keyword[try] { identifier[conn] operator[=] Keyword[this] operator[SEP] identifier[queryRunner] operator[SEP] identifier[getDataSource] operator[SEP] operator[SEP] operator[SEP] identifier[getConnection] operator[SEP] operator[SEP] operator[SEP] identifier[conn] operator[SEP] identifier[setAutoCommit] operator[SEP] literal[boolean] operator[SEP] operator[SEP] Keyword[final] identifier[DatabaseTransOperator] identifier[transOperator] operator[=] Keyword[new] identifier[DatabaseTransOperator] operator[SEP] Keyword[this] operator[SEP] identifier[queryRunner] , identifier[conn] operator[SEP] operator[SEP] Keyword[final] identifier[T] identifier[res] operator[=] identifier[operations] operator[SEP] identifier[execute] operator[SEP] identifier[transOperator] operator[SEP] operator[SEP] identifier[conn] operator[SEP] identifier[commit] operator[SEP] operator[SEP] operator[SEP] Keyword[return] identifier[res] operator[SEP] } Keyword[catch] operator[SEP] Keyword[final] identifier[SQLException] identifier[ex] operator[SEP] { identifier[logger] operator[SEP] identifier[error] operator[SEP] literal[String] , identifier[ex] operator[SEP] operator[SEP] Keyword[if] operator[SEP] Keyword[this] operator[SEP] identifier[dbMetrics] operator[!=] Other[null] operator[SEP] { Keyword[this] operator[SEP] identifier[dbMetrics] operator[SEP] identifier[markDBFailTransaction] operator[SEP] operator[SEP] operator[SEP] } Keyword[throw] identifier[ex] operator[SEP] } Keyword[finally] { identifier[DbUtils] operator[SEP] identifier[closeQuietly] operator[SEP] identifier[conn] operator[SEP] operator[SEP] } }
public static java.util.Date parseDate(String dateString, String dateFormat) { java.util.Date newDate = null; try { newDate = new SimpleDateFormat(dateFormat, Locale.ENGLISH) .parse(dateString); } catch (ParseException e) { QuickUtils.log.d("parse error", e); } return newDate; }
class class_name[name] begin[{] method[parseDate, return_type[type[java]], modifier[public static], parameter[dateString, dateFormat]] begin[{] local_variable[type[java], newDate] TryStatement(block=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=newDate, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=ClassCreator(arguments=[MemberReference(member=dateFormat, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=ENGLISH, postfix_operators=[], prefix_operators=[], qualifier=Locale, selectors=[])], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[MethodInvocation(arguments=[MemberReference(member=dateString, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=parse, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)], type=ReferenceType(arguments=None, dimensions=None, name=SimpleDateFormat, sub_type=None))), label=None)], catches=[CatchClause(block=[StatementExpression(expression=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="parse error"), MemberReference(member=e, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=d, postfix_operators=[], prefix_operators=[], qualifier=QuickUtils.log, selectors=[], type_arguments=None), label=None)], label=None, parameter=CatchClauseParameter(annotations=None, modifiers=None, name=e, types=['ParseException']))], finally_block=None, label=None, resources=None) return[member[.newDate]] end[}] END[}]
Keyword[public] Keyword[static] identifier[java] operator[SEP] identifier[util] operator[SEP] identifier[Date] identifier[parseDate] operator[SEP] identifier[String] identifier[dateString] , identifier[String] identifier[dateFormat] operator[SEP] { identifier[java] operator[SEP] identifier[util] operator[SEP] identifier[Date] identifier[newDate] operator[=] Other[null] operator[SEP] Keyword[try] { identifier[newDate] operator[=] Keyword[new] identifier[SimpleDateFormat] operator[SEP] identifier[dateFormat] , identifier[Locale] operator[SEP] identifier[ENGLISH] operator[SEP] operator[SEP] identifier[parse] operator[SEP] identifier[dateString] operator[SEP] operator[SEP] } Keyword[catch] operator[SEP] identifier[ParseException] identifier[e] operator[SEP] { identifier[QuickUtils] operator[SEP] identifier[log] operator[SEP] identifier[d] operator[SEP] literal[String] , identifier[e] operator[SEP] operator[SEP] } Keyword[return] identifier[newDate] operator[SEP] }
public static BoundingBox getProjectedBoundingBox(Projection projection, long x, long y, int zoom) { BoundingBox boundingBox = getWebMercatorBoundingBox(x, y, zoom); if (projection != null) { ProjectionTransform transform = webMercator .getTransformation(projection); boundingBox = boundingBox.transform(transform); } return boundingBox; }
class class_name[name] begin[{] method[getProjectedBoundingBox, return_type[type[BoundingBox]], modifier[public static], parameter[projection, x, y, zoom]] begin[{] local_variable[type[BoundingBox], boundingBox] if[binary_operation[member[.projection], !=, literal[null]]] begin[{] local_variable[type[ProjectionTransform], transform] assign[member[.boundingBox], call[boundingBox.transform, parameter[member[.transform]]]] else begin[{] None end[}] return[member[.boundingBox]] end[}] END[}]
Keyword[public] Keyword[static] identifier[BoundingBox] identifier[getProjectedBoundingBox] operator[SEP] identifier[Projection] identifier[projection] , Keyword[long] identifier[x] , Keyword[long] identifier[y] , Keyword[int] identifier[zoom] operator[SEP] { identifier[BoundingBox] identifier[boundingBox] operator[=] identifier[getWebMercatorBoundingBox] operator[SEP] identifier[x] , identifier[y] , identifier[zoom] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[projection] operator[!=] Other[null] operator[SEP] { identifier[ProjectionTransform] identifier[transform] operator[=] identifier[webMercator] operator[SEP] identifier[getTransformation] operator[SEP] identifier[projection] operator[SEP] operator[SEP] identifier[boundingBox] operator[=] identifier[boundingBox] operator[SEP] identifier[transform] operator[SEP] identifier[transform] operator[SEP] operator[SEP] } Keyword[return] identifier[boundingBox] operator[SEP] }
public static File resolve(Class<?> clazz, String path) { URL url = clazz.getResource(path); if (url == null) { return null; } File result; try { result = Paths.get(url.toURI()).toFile(); } catch (URISyntaxException ex) { return null; } return result; }
class class_name[name] begin[{] method[resolve, return_type[type[File]], modifier[public static], parameter[clazz, path]] begin[{] local_variable[type[URL], url] if[binary_operation[member[.url], ==, literal[null]]] begin[{] return[literal[null]] else begin[{] None end[}] local_variable[type[File], result] TryStatement(block=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=result, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MethodInvocation(arguments=[MethodInvocation(arguments=[], member=toURI, postfix_operators=[], prefix_operators=[], qualifier=url, selectors=[], type_arguments=None)], member=get, postfix_operators=[], prefix_operators=[], qualifier=Paths, selectors=[MethodInvocation(arguments=[], member=toFile, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)], type_arguments=None)), label=None)], catches=[CatchClause(block=[ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=null), label=None)], label=None, parameter=CatchClauseParameter(annotations=None, modifiers=None, name=ex, types=['URISyntaxException']))], finally_block=None, label=None, resources=None) return[member[.result]] end[}] END[}]
Keyword[public] Keyword[static] identifier[File] identifier[resolve] operator[SEP] identifier[Class] operator[<] operator[?] operator[>] identifier[clazz] , identifier[String] identifier[path] operator[SEP] { identifier[URL] identifier[url] operator[=] identifier[clazz] operator[SEP] identifier[getResource] operator[SEP] identifier[path] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[url] operator[==] Other[null] operator[SEP] { Keyword[return] Other[null] operator[SEP] } identifier[File] identifier[result] operator[SEP] Keyword[try] { identifier[result] operator[=] identifier[Paths] operator[SEP] identifier[get] operator[SEP] identifier[url] operator[SEP] identifier[toURI] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[toFile] operator[SEP] operator[SEP] operator[SEP] } Keyword[catch] operator[SEP] identifier[URISyntaxException] identifier[ex] operator[SEP] { Keyword[return] Other[null] operator[SEP] } Keyword[return] identifier[result] operator[SEP] }
public void setIsRestrictedProfile(boolean isRestrictedProfile) { UserInfo userInfo = getUserInfo(UserHandle.myUserId()); if (isRestrictedProfile) { userInfo.flags |= UserInfo.FLAG_RESTRICTED; } else { userInfo.flags &= ~UserInfo.FLAG_RESTRICTED; } }
class class_name[name] begin[{] method[setIsRestrictedProfile, return_type[void], modifier[public], parameter[isRestrictedProfile]] begin[{] local_variable[type[UserInfo], userInfo] if[member[.isRestrictedProfile]] begin[{] assign[member[userInfo.flags], member[UserInfo.FLAG_RESTRICTED]] else begin[{] assign[member[userInfo.flags], member[UserInfo.FLAG_RESTRICTED]] end[}] end[}] END[}]
Keyword[public] Keyword[void] identifier[setIsRestrictedProfile] operator[SEP] Keyword[boolean] identifier[isRestrictedProfile] operator[SEP] { identifier[UserInfo] identifier[userInfo] operator[=] identifier[getUserInfo] operator[SEP] identifier[UserHandle] operator[SEP] identifier[myUserId] operator[SEP] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[isRestrictedProfile] operator[SEP] { identifier[userInfo] operator[SEP] identifier[flags] operator[|=] identifier[UserInfo] operator[SEP] identifier[FLAG_RESTRICTED] operator[SEP] } Keyword[else] { identifier[userInfo] operator[SEP] identifier[flags] operator[&=] operator[~] identifier[UserInfo] operator[SEP] identifier[FLAG_RESTRICTED] operator[SEP] } }
public static byte[] decode(byte[] in) { return org.apache.commons.codec.binary.Base64.decodeBase64(in); }
class class_name[name] begin[{] method[decode, return_type[type[byte]], modifier[public static], parameter[in]] begin[{] return[call[org.apache.commons.codec.binary.Base64.decodeBase64, parameter[member[.in]]]] end[}] END[}]
Keyword[public] Keyword[static] Keyword[byte] operator[SEP] operator[SEP] identifier[decode] operator[SEP] Keyword[byte] operator[SEP] operator[SEP] identifier[in] operator[SEP] { Keyword[return] identifier[org] operator[SEP] identifier[apache] operator[SEP] identifier[commons] operator[SEP] identifier[codec] operator[SEP] identifier[binary] operator[SEP] identifier[Base64] operator[SEP] identifier[decodeBase64] operator[SEP] identifier[in] operator[SEP] operator[SEP] }
static void checkForDownloads(List<String> artifactNames, boolean checkTimeStamp, boolean cleanup) { LOGGER.entering(); if (checkTimeStamp && (lastModifiedTime == DOWNLOAD_FILE.lastModified())) { return; } lastModifiedTime = DOWNLOAD_FILE.lastModified(); if (cleanup) { cleanup(); } List<URLChecksumEntity> artifactDetails = new ArrayList<ArtifactDetails.URLChecksumEntity>(); try { artifactDetails = ArtifactDetails.getArtifactDetailsForCurrentPlatformByNames(DOWNLOAD_FILE, artifactNames); } catch (IOException e) { LOGGER.log(Level.SEVERE, "Unable to open download.json file", e); throw new RuntimeException(e); } downloadAndExtractArtifacts(artifactDetails); LOGGER.exiting(); }
class class_name[name] begin[{] method[checkForDownloads, return_type[void], modifier[static], parameter[artifactNames, checkTimeStamp, cleanup]] begin[{] call[LOGGER.entering, parameter[]] if[binary_operation[member[.checkTimeStamp], &&, binary_operation[member[.lastModifiedTime], ==, call[DOWNLOAD_FILE.lastModified, parameter[]]]]] begin[{] return[None] else begin[{] None end[}] assign[member[.lastModifiedTime], call[DOWNLOAD_FILE.lastModified, parameter[]]] if[member[.cleanup]] begin[{] call[.cleanup, parameter[]] else begin[{] None end[}] local_variable[type[List], artifactDetails] TryStatement(block=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=artifactDetails, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MethodInvocation(arguments=[MemberReference(member=DOWNLOAD_FILE, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=artifactNames, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=getArtifactDetailsForCurrentPlatformByNames, postfix_operators=[], prefix_operators=[], qualifier=ArtifactDetails, selectors=[], type_arguments=None)), label=None)], catches=[CatchClause(block=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=SEVERE, postfix_operators=[], prefix_operators=[], qualifier=Level, selectors=[]), Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="Unable to open download.json file"), MemberReference(member=e, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=log, postfix_operators=[], prefix_operators=[], qualifier=LOGGER, selectors=[], type_arguments=None), label=None), ThrowStatement(expression=ClassCreator(arguments=[MemberReference(member=e, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=RuntimeException, sub_type=None)), label=None)], label=None, parameter=CatchClauseParameter(annotations=None, modifiers=None, name=e, types=['IOException']))], finally_block=None, label=None, resources=None) call[.downloadAndExtractArtifacts, parameter[member[.artifactDetails]]] call[LOGGER.exiting, parameter[]] end[}] END[}]
Keyword[static] Keyword[void] identifier[checkForDownloads] operator[SEP] identifier[List] operator[<] identifier[String] operator[>] identifier[artifactNames] , Keyword[boolean] identifier[checkTimeStamp] , Keyword[boolean] identifier[cleanup] operator[SEP] { identifier[LOGGER] operator[SEP] identifier[entering] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[checkTimeStamp] operator[&&] operator[SEP] identifier[lastModifiedTime] operator[==] identifier[DOWNLOAD_FILE] operator[SEP] identifier[lastModified] operator[SEP] operator[SEP] operator[SEP] operator[SEP] { Keyword[return] operator[SEP] } identifier[lastModifiedTime] operator[=] identifier[DOWNLOAD_FILE] operator[SEP] identifier[lastModified] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[cleanup] operator[SEP] { identifier[cleanup] operator[SEP] operator[SEP] operator[SEP] } identifier[List] operator[<] identifier[URLChecksumEntity] operator[>] identifier[artifactDetails] operator[=] Keyword[new] identifier[ArrayList] operator[<] identifier[ArtifactDetails] operator[SEP] identifier[URLChecksumEntity] operator[>] operator[SEP] operator[SEP] operator[SEP] Keyword[try] { identifier[artifactDetails] operator[=] identifier[ArtifactDetails] operator[SEP] identifier[getArtifactDetailsForCurrentPlatformByNames] operator[SEP] identifier[DOWNLOAD_FILE] , identifier[artifactNames] operator[SEP] operator[SEP] } Keyword[catch] operator[SEP] identifier[IOException] identifier[e] operator[SEP] { identifier[LOGGER] operator[SEP] identifier[log] operator[SEP] identifier[Level] operator[SEP] identifier[SEVERE] , literal[String] , identifier[e] operator[SEP] operator[SEP] Keyword[throw] Keyword[new] identifier[RuntimeException] operator[SEP] identifier[e] operator[SEP] operator[SEP] } identifier[downloadAndExtractArtifacts] operator[SEP] identifier[artifactDetails] operator[SEP] operator[SEP] identifier[LOGGER] operator[SEP] identifier[exiting] operator[SEP] operator[SEP] operator[SEP] }
@Override public void removeRole(String username, String oldrole) throws RolesException { List<String> users_with_role = new ArrayList<String>(); if (user_list.containsKey(username)) { List<String> roles_of_user = user_list.get(username); if (roles_of_user.contains(oldrole)) { // Update our user list roles_of_user.remove(oldrole); user_list.put(username, roles_of_user); // Update our roles list if (role_list.containsKey(oldrole)) users_with_role = role_list.get(oldrole); users_with_role.remove(username); if (users_with_role.size() < 1) { role_list.remove(oldrole); } else { role_list.put(oldrole, users_with_role); } // Don't forget to update our file_store String roles = StringUtils.join(roles_of_user.toArray(new String[0]), ","); file_store.setProperty(username, roles); // And commit the file_store to disk try { saveRoles(); } catch (IOException e) { throw new RolesException(e); } } else { throw new RolesException("User '" + username + "' does not have the role '" + oldrole + "'!"); } } else { throw new RolesException("User '" + username + "' does not exist!"); } }
class class_name[name] begin[{] method[removeRole, return_type[void], modifier[public], parameter[username, oldrole]] begin[{] local_variable[type[List], users_with_role] if[call[user_list.containsKey, parameter[member[.username]]]] begin[{] local_variable[type[List], roles_of_user] if[call[roles_of_user.contains, parameter[member[.oldrole]]]] begin[{] call[roles_of_user.remove, parameter[member[.oldrole]]] call[user_list.put, parameter[member[.username], member[.roles_of_user]]] if[call[role_list.containsKey, parameter[member[.oldrole]]]] begin[{] assign[member[.users_with_role], call[role_list.get, parameter[member[.oldrole]]]] else begin[{] None end[}] call[users_with_role.remove, parameter[member[.username]]] if[binary_operation[call[users_with_role.size, parameter[]], <, literal[1]]] begin[{] call[role_list.remove, parameter[member[.oldrole]]] else begin[{] call[role_list.put, parameter[member[.oldrole], member[.users_with_role]]] end[}] local_variable[type[String], roles] call[file_store.setProperty, parameter[member[.username], member[.roles]]] TryStatement(block=[StatementExpression(expression=MethodInvocation(arguments=[], member=saveRoles, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), label=None)], catches=[CatchClause(block=[ThrowStatement(expression=ClassCreator(arguments=[MemberReference(member=e, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=RolesException, sub_type=None)), label=None)], label=None, parameter=CatchClauseParameter(annotations=None, modifiers=None, name=e, types=['IOException']))], finally_block=None, label=None, resources=None) else begin[{] ThrowStatement(expression=ClassCreator(arguments=[BinaryOperation(operandl=BinaryOperation(operandl=BinaryOperation(operandl=BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="User '"), operandr=MemberReference(member=username, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=+), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="' does not have the role '"), operator=+), operandr=MemberReference(member=oldrole, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=+), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="'!"), operator=+)], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=RolesException, sub_type=None)), label=None) end[}] else begin[{] ThrowStatement(expression=ClassCreator(arguments=[BinaryOperation(operandl=BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="User '"), operandr=MemberReference(member=username, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=+), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="' does not exist!"), operator=+)], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=RolesException, sub_type=None)), label=None) end[}] end[}] END[}]
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[removeRole] operator[SEP] identifier[String] identifier[username] , identifier[String] identifier[oldrole] operator[SEP] Keyword[throws] identifier[RolesException] { identifier[List] operator[<] identifier[String] operator[>] identifier[users_with_role] operator[=] Keyword[new] identifier[ArrayList] operator[<] identifier[String] operator[>] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[user_list] operator[SEP] identifier[containsKey] operator[SEP] identifier[username] operator[SEP] operator[SEP] { identifier[List] operator[<] identifier[String] operator[>] identifier[roles_of_user] operator[=] identifier[user_list] operator[SEP] identifier[get] operator[SEP] identifier[username] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[roles_of_user] operator[SEP] identifier[contains] operator[SEP] identifier[oldrole] operator[SEP] operator[SEP] { identifier[roles_of_user] operator[SEP] identifier[remove] operator[SEP] identifier[oldrole] operator[SEP] operator[SEP] identifier[user_list] operator[SEP] identifier[put] operator[SEP] identifier[username] , identifier[roles_of_user] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[role_list] operator[SEP] identifier[containsKey] operator[SEP] identifier[oldrole] operator[SEP] operator[SEP] identifier[users_with_role] operator[=] identifier[role_list] operator[SEP] identifier[get] operator[SEP] identifier[oldrole] operator[SEP] operator[SEP] identifier[users_with_role] operator[SEP] identifier[remove] operator[SEP] identifier[username] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[users_with_role] operator[SEP] identifier[size] operator[SEP] operator[SEP] operator[<] Other[1] operator[SEP] { identifier[role_list] operator[SEP] identifier[remove] operator[SEP] identifier[oldrole] operator[SEP] operator[SEP] } Keyword[else] { identifier[role_list] operator[SEP] identifier[put] operator[SEP] identifier[oldrole] , identifier[users_with_role] operator[SEP] operator[SEP] } identifier[String] identifier[roles] operator[=] identifier[StringUtils] operator[SEP] identifier[join] operator[SEP] identifier[roles_of_user] operator[SEP] identifier[toArray] operator[SEP] Keyword[new] identifier[String] operator[SEP] Other[0] operator[SEP] operator[SEP] , literal[String] operator[SEP] operator[SEP] identifier[file_store] operator[SEP] identifier[setProperty] operator[SEP] identifier[username] , identifier[roles] operator[SEP] operator[SEP] Keyword[try] { identifier[saveRoles] operator[SEP] operator[SEP] operator[SEP] } Keyword[catch] operator[SEP] identifier[IOException] identifier[e] operator[SEP] { Keyword[throw] Keyword[new] identifier[RolesException] operator[SEP] identifier[e] operator[SEP] operator[SEP] } } Keyword[else] { Keyword[throw] Keyword[new] identifier[RolesException] operator[SEP] literal[String] operator[+] identifier[username] operator[+] literal[String] operator[+] identifier[oldrole] operator[+] literal[String] operator[SEP] operator[SEP] } } Keyword[else] { Keyword[throw] Keyword[new] identifier[RolesException] operator[SEP] literal[String] operator[+] identifier[username] operator[+] literal[String] operator[SEP] operator[SEP] } }
public String getXML(boolean bIncludeHeader) { String strOut = Util.convertDOMToXML(this.getNode(false)); if (bIncludeHeader) if (this.getMessageHeader() != null) { String strHeaderXML = this.getMessageHeader().addXML(null).toString(); int iStartOfRootTag = strOut.lastIndexOf("</"); if (iStartOfRootTag != -1) strOut = strOut.substring(0, iStartOfRootTag) + strHeaderXML + strOut.substring(iStartOfRootTag); } return strOut; }
class class_name[name] begin[{] method[getXML, return_type[type[String]], modifier[public], parameter[bIncludeHeader]] begin[{] local_variable[type[String], strOut] if[member[.bIncludeHeader]] begin[{] if[binary_operation[THIS[call[None.getMessageHeader, parameter[]]], !=, literal[null]]] begin[{] local_variable[type[String], strHeaderXML] local_variable[type[int], iStartOfRootTag] if[binary_operation[member[.iStartOfRootTag], !=, literal[1]]] begin[{] assign[member[.strOut], binary_operation[binary_operation[call[strOut.substring, parameter[literal[0], member[.iStartOfRootTag]]], +, member[.strHeaderXML]], +, call[strOut.substring, parameter[member[.iStartOfRootTag]]]]] else begin[{] None end[}] else begin[{] None end[}] else begin[{] None end[}] return[member[.strOut]] end[}] END[}]
Keyword[public] identifier[String] identifier[getXML] operator[SEP] Keyword[boolean] identifier[bIncludeHeader] operator[SEP] { identifier[String] identifier[strOut] operator[=] identifier[Util] operator[SEP] identifier[convertDOMToXML] operator[SEP] Keyword[this] operator[SEP] identifier[getNode] operator[SEP] literal[boolean] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[bIncludeHeader] operator[SEP] Keyword[if] operator[SEP] Keyword[this] operator[SEP] identifier[getMessageHeader] operator[SEP] operator[SEP] operator[!=] Other[null] operator[SEP] { identifier[String] identifier[strHeaderXML] operator[=] Keyword[this] operator[SEP] identifier[getMessageHeader] operator[SEP] operator[SEP] operator[SEP] identifier[addXML] operator[SEP] Other[null] operator[SEP] operator[SEP] identifier[toString] operator[SEP] operator[SEP] operator[SEP] Keyword[int] identifier[iStartOfRootTag] operator[=] identifier[strOut] operator[SEP] identifier[lastIndexOf] operator[SEP] literal[String] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[iStartOfRootTag] operator[!=] operator[-] Other[1] operator[SEP] identifier[strOut] operator[=] identifier[strOut] operator[SEP] identifier[substring] operator[SEP] Other[0] , identifier[iStartOfRootTag] operator[SEP] operator[+] identifier[strHeaderXML] operator[+] identifier[strOut] operator[SEP] identifier[substring] operator[SEP] identifier[iStartOfRootTag] operator[SEP] operator[SEP] } Keyword[return] identifier[strOut] operator[SEP] }
public static long bytesToLong(byte[] b) { long l = ((long) b[0] << 56) & 0xFF00000000000000L; // 如果不强制转换为long,那么默认会当作int,导致最高32位丢失 l |= ((long) b[1] << 48) & 0xFF000000000000L; l |= ((long) b[2] << 40) & 0xFF0000000000L; l |= ((long) b[3] << 32) & 0xFF00000000L; l |= ((long) b[4] << 24) & 0xFF000000L; l |= ((long) b[5] << 16) & 0xFF0000L; l |= ((long) b[6] << 8) & 0xFF00L; l |= (long) b[7] & 0xFFL; return l; }
class class_name[name] begin[{] method[bytesToLong, return_type[type[long]], modifier[public static], parameter[b]] begin[{] local_variable[type[long], l] assign[member[.l], binary_operation[binary_operation[Cast(expression=MemberReference(member=b, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1))]), type=BasicType(dimensions=[], name=long)), <<, literal[48]], &, literal[0xFF000000000000L]]] assign[member[.l], binary_operation[binary_operation[Cast(expression=MemberReference(member=b, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=2))]), type=BasicType(dimensions=[], name=long)), <<, literal[40]], &, literal[0xFF0000000000L]]] assign[member[.l], binary_operation[binary_operation[Cast(expression=MemberReference(member=b, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=3))]), type=BasicType(dimensions=[], name=long)), <<, literal[32]], &, literal[0xFF00000000L]]] assign[member[.l], binary_operation[binary_operation[Cast(expression=MemberReference(member=b, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=4))]), type=BasicType(dimensions=[], name=long)), <<, literal[24]], &, literal[0xFF000000L]]] assign[member[.l], binary_operation[binary_operation[Cast(expression=MemberReference(member=b, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=5))]), type=BasicType(dimensions=[], name=long)), <<, literal[16]], &, literal[0xFF0000L]]] assign[member[.l], binary_operation[binary_operation[Cast(expression=MemberReference(member=b, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=6))]), type=BasicType(dimensions=[], name=long)), <<, literal[8]], &, literal[0xFF00L]]] assign[member[.l], binary_operation[Cast(expression=MemberReference(member=b, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=7))]), type=BasicType(dimensions=[], name=long)), &, literal[0xFFL]]] return[member[.l]] end[}] END[}]
Keyword[public] Keyword[static] Keyword[long] identifier[bytesToLong] operator[SEP] Keyword[byte] operator[SEP] operator[SEP] identifier[b] operator[SEP] { Keyword[long] identifier[l] operator[=] operator[SEP] operator[SEP] Keyword[long] operator[SEP] identifier[b] operator[SEP] Other[0] operator[SEP] operator[<<] Other[56] operator[SEP] operator[&] literal[Integer] operator[SEP] identifier[l] operator[|=] operator[SEP] operator[SEP] Keyword[long] operator[SEP] identifier[b] operator[SEP] Other[1] operator[SEP] operator[<<] Other[48] operator[SEP] operator[&] literal[Integer] operator[SEP] identifier[l] operator[|=] operator[SEP] operator[SEP] Keyword[long] operator[SEP] identifier[b] operator[SEP] Other[2] operator[SEP] operator[<<] Other[40] operator[SEP] operator[&] literal[Integer] operator[SEP] identifier[l] operator[|=] operator[SEP] operator[SEP] Keyword[long] operator[SEP] identifier[b] operator[SEP] Other[3] operator[SEP] operator[<<] Other[32] operator[SEP] operator[&] literal[Integer] operator[SEP] identifier[l] operator[|=] operator[SEP] operator[SEP] Keyword[long] operator[SEP] identifier[b] operator[SEP] Other[4] operator[SEP] operator[<<] Other[24] operator[SEP] operator[&] literal[Integer] operator[SEP] identifier[l] operator[|=] operator[SEP] operator[SEP] Keyword[long] operator[SEP] identifier[b] operator[SEP] Other[5] operator[SEP] operator[<<] Other[16] operator[SEP] operator[&] literal[Integer] operator[SEP] identifier[l] operator[|=] operator[SEP] operator[SEP] Keyword[long] operator[SEP] identifier[b] operator[SEP] Other[6] operator[SEP] operator[<<] Other[8] operator[SEP] operator[&] literal[Integer] operator[SEP] identifier[l] operator[|=] operator[SEP] Keyword[long] operator[SEP] identifier[b] operator[SEP] Other[7] operator[SEP] operator[&] literal[Integer] operator[SEP] Keyword[return] identifier[l] operator[SEP] }
public OvhBackendUdp serviceName_udp_farm_farmId_GET(String serviceName, Long farmId) throws IOException { String qPath = "/ipLoadbalancing/{serviceName}/udp/farm/{farmId}"; StringBuilder sb = path(qPath, serviceName, farmId); String resp = exec(qPath, "GET", sb.toString(), null); return convertTo(resp, OvhBackendUdp.class); }
class class_name[name] begin[{] method[serviceName_udp_farm_farmId_GET, return_type[type[OvhBackendUdp]], modifier[public], parameter[serviceName, farmId]] begin[{] local_variable[type[String], qPath] local_variable[type[StringBuilder], sb] local_variable[type[String], resp] return[call[.convertTo, parameter[member[.resp], ClassReference(postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=OvhBackendUdp, sub_type=None))]]] end[}] END[}]
Keyword[public] identifier[OvhBackendUdp] identifier[serviceName_udp_farm_farmId_GET] operator[SEP] identifier[String] identifier[serviceName] , identifier[Long] identifier[farmId] operator[SEP] Keyword[throws] identifier[IOException] { identifier[String] identifier[qPath] operator[=] literal[String] operator[SEP] identifier[StringBuilder] identifier[sb] operator[=] identifier[path] operator[SEP] identifier[qPath] , identifier[serviceName] , identifier[farmId] operator[SEP] operator[SEP] identifier[String] identifier[resp] operator[=] identifier[exec] operator[SEP] identifier[qPath] , literal[String] , identifier[sb] operator[SEP] identifier[toString] operator[SEP] operator[SEP] , Other[null] operator[SEP] operator[SEP] Keyword[return] identifier[convertTo] operator[SEP] identifier[resp] , identifier[OvhBackendUdp] operator[SEP] Keyword[class] operator[SEP] operator[SEP] }
public static void main(String[] args) throws Exception { // ........................ // SMSC: Hypersonic database // HTTP case: // MX4J - free http JMX adapter // SUN: jmxtools.jar // <dependency> // <groupId>com.sun.jdmk</groupId> // <artifactId>jmxtools</artifactId> // <version>1.2.1</version> // <scope>provided</scope> // </dependency> // RMI case: // rmiregistry 9999 // service:jmx:rmi:///jndi/rmi://localhost:9999/server // JCONSOLE case: // java -Dcom.sun.management.jmxremote Main // JMX repository: // rmiregistry 9999 // VISTA: // Out-of-the-box it is not possible to connect to a local Java process from the JConsole using Windows Vista. // The local process box just remains empty... The cause is Vista's security model. // In default case every Java process creates a file in the folder: // C:\Users\[LOGIN_NAME]\AppData\Local\Temp\hsperfdata_[LOGIN_NAME], // in my case e.g.: C:\Users\adam\AppData\Local\Temp\hsperfdata_adam. The name of the file is the PID. // For some strange reasons this directory is write-protected - it is not possible to create neither files nor folders // in the hsperfdata_[LOGIN_NAME] directory. It is even not possible to change the write access, // even not as an administrator (you can understand now, how secure Vista really is :-)). // However if you delete this directory, and create a new one with the same name - then it works perfectly.... // Custom Notification: http://marxsoftware.blogspot.com/2008/02/publishing-user-objects-in-jmx.html // ........................ // parsing arguments, possible values: // name=a1 http=8000 rmi=9999,9998 // -na1 -t8001 -r9999,9998 int httpPort = -1; int[] rmiPort = new int[] { -1, -1 }; String appName = "main"; if (args != null && args.length > 0) { for (String s : args) { if (s.length() > 5 && s.substring(0, 5).toLowerCase().equals("name=")) { appName = s.substring(5, s.length()); } if (s.length() > 2 && s.substring(0, 2).toLowerCase().equals("-n")) { appName = s.substring(2, s.length()); } if (s.length() > 4 && s.substring(0, 4).toLowerCase().equals("rmi=")) { try { String s1 = s.substring(4, s.length()); parseRmi(rmiPort, s1); } catch (Exception e) { System.out.println("Exception when parsing parameter \"rmi\""); } } if (s.length() > 2 && s.substring(0, 2).toLowerCase().equals("-r")) { try { String s1 = s.substring(2, s.length()); parseRmi(rmiPort, s1); } catch (Exception e) { System.out.println("Exception when parsing parameter \"rmi\""); } } if (s.length() > 5 && s.substring(0, 5).toLowerCase().equals("http=")) { try { int porta = Integer.parseInt(s.substring(5, s.length())); if (porta > 0 && porta < 65000) httpPort = porta; else System.out.println("Bad value of field \"http\""); } catch (Exception e) { System.out.println("Exception when parsing parameter \"http\""); } } if (s.length() > 2 && s.substring(0, 2).toLowerCase().equals("-t")) { try { int porta = Integer.parseInt(s.substring(2, s.length())); if (porta > 0 && porta < 65000) httpPort = porta; else System.out.println("Bad value of field \"http\""); } catch (Exception e) { System.out.println("Exception when parsing parameter \"http\""); } } } } MainCore main = new MainCore(); main.start(appName, httpPort, rmiPort[0], rmiPort[1]); }
class class_name[name] begin[{] method[main, return_type[void], modifier[public static], parameter[args]] begin[{] local_variable[type[int], httpPort] local_variable[type[int], rmiPort] local_variable[type[String], appName] if[binary_operation[binary_operation[member[.args], !=, literal[null]], &&, binary_operation[member[args.length], >, literal[0]]]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=BinaryOperation(operandl=BinaryOperation(operandl=MethodInvocation(arguments=[], member=length, postfix_operators=[], prefix_operators=[], qualifier=s, selectors=[], type_arguments=None), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=5), operator=>), operandr=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=5)], member=substring, postfix_operators=[], prefix_operators=[], qualifier=s, selectors=[MethodInvocation(arguments=[], member=toLowerCase, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None), MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="name=")], member=equals, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)], type_arguments=None), operator=&&), else_statement=None, label=None, then_statement=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=appName, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=5), MethodInvocation(arguments=[], member=length, postfix_operators=[], prefix_operators=[], qualifier=s, selectors=[], type_arguments=None)], member=substring, postfix_operators=[], prefix_operators=[], qualifier=s, selectors=[], type_arguments=None)), label=None)])), IfStatement(condition=BinaryOperation(operandl=BinaryOperation(operandl=MethodInvocation(arguments=[], member=length, postfix_operators=[], prefix_operators=[], qualifier=s, selectors=[], type_arguments=None), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=2), operator=>), operandr=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=2)], member=substring, postfix_operators=[], prefix_operators=[], qualifier=s, selectors=[MethodInvocation(arguments=[], member=toLowerCase, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None), MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="-n")], member=equals, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)], type_arguments=None), operator=&&), else_statement=None, label=None, then_statement=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=appName, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=2), MethodInvocation(arguments=[], member=length, postfix_operators=[], prefix_operators=[], qualifier=s, selectors=[], type_arguments=None)], member=substring, postfix_operators=[], prefix_operators=[], qualifier=s, selectors=[], type_arguments=None)), label=None)])), IfStatement(condition=BinaryOperation(operandl=BinaryOperation(operandl=MethodInvocation(arguments=[], member=length, postfix_operators=[], prefix_operators=[], qualifier=s, selectors=[], type_arguments=None), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=4), operator=>), operandr=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=4)], member=substring, postfix_operators=[], prefix_operators=[], qualifier=s, selectors=[MethodInvocation(arguments=[], member=toLowerCase, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None), MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="rmi=")], member=equals, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)], type_arguments=None), operator=&&), else_statement=None, label=None, then_statement=BlockStatement(label=None, statements=[TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=4), MethodInvocation(arguments=[], member=length, postfix_operators=[], prefix_operators=[], qualifier=s, selectors=[], type_arguments=None)], member=substring, postfix_operators=[], prefix_operators=[], qualifier=s, selectors=[], type_arguments=None), name=s1)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=String, sub_type=None)), StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=rmiPort, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=s1, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=parseRmi, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), label=None)], catches=[CatchClause(block=[StatementExpression(expression=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="Exception when parsing parameter \"rmi\"")], member=println, postfix_operators=[], prefix_operators=[], qualifier=System.out, selectors=[], type_arguments=None), label=None)], label=None, parameter=CatchClauseParameter(annotations=None, modifiers=None, name=e, types=['Exception']))], finally_block=None, label=None, resources=None)])), IfStatement(condition=BinaryOperation(operandl=BinaryOperation(operandl=MethodInvocation(arguments=[], member=length, postfix_operators=[], prefix_operators=[], qualifier=s, selectors=[], type_arguments=None), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=2), operator=>), operandr=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=2)], member=substring, postfix_operators=[], prefix_operators=[], qualifier=s, selectors=[MethodInvocation(arguments=[], member=toLowerCase, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None), MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="-r")], member=equals, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)], type_arguments=None), operator=&&), else_statement=None, label=None, then_statement=BlockStatement(label=None, statements=[TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=2), MethodInvocation(arguments=[], member=length, postfix_operators=[], prefix_operators=[], qualifier=s, selectors=[], type_arguments=None)], member=substring, postfix_operators=[], prefix_operators=[], qualifier=s, selectors=[], type_arguments=None), name=s1)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=String, sub_type=None)), StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=rmiPort, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=s1, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=parseRmi, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), label=None)], catches=[CatchClause(block=[StatementExpression(expression=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="Exception when parsing parameter \"rmi\"")], member=println, postfix_operators=[], prefix_operators=[], qualifier=System.out, selectors=[], type_arguments=None), label=None)], label=None, parameter=CatchClauseParameter(annotations=None, modifiers=None, name=e, types=['Exception']))], finally_block=None, label=None, resources=None)])), IfStatement(condition=BinaryOperation(operandl=BinaryOperation(operandl=MethodInvocation(arguments=[], member=length, postfix_operators=[], prefix_operators=[], qualifier=s, selectors=[], type_arguments=None), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=5), operator=>), operandr=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=5)], member=substring, postfix_operators=[], prefix_operators=[], qualifier=s, selectors=[MethodInvocation(arguments=[], member=toLowerCase, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None), MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="http=")], member=equals, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)], type_arguments=None), operator=&&), else_statement=None, label=None, then_statement=BlockStatement(label=None, statements=[TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=5), MethodInvocation(arguments=[], member=length, postfix_operators=[], prefix_operators=[], qualifier=s, selectors=[], type_arguments=None)], member=substring, postfix_operators=[], prefix_operators=[], qualifier=s, selectors=[], type_arguments=None)], member=parseInt, postfix_operators=[], prefix_operators=[], qualifier=Integer, selectors=[], type_arguments=None), name=porta)], modifiers=set(), type=BasicType(dimensions=[], name=int)), IfStatement(condition=BinaryOperation(operandl=BinaryOperation(operandl=MemberReference(member=porta, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), operator=>), operandr=BinaryOperation(operandl=MemberReference(member=porta, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=65000), operator=<), operator=&&), else_statement=StatementExpression(expression=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="Bad value of field \"http\"")], member=println, postfix_operators=[], prefix_operators=[], qualifier=System.out, selectors=[], type_arguments=None), label=None), label=None, then_statement=StatementExpression(expression=Assignment(expressionl=MemberReference(member=httpPort, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MemberReference(member=porta, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])), label=None))], catches=[CatchClause(block=[StatementExpression(expression=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="Exception when parsing parameter \"http\"")], member=println, postfix_operators=[], prefix_operators=[], qualifier=System.out, selectors=[], type_arguments=None), label=None)], label=None, parameter=CatchClauseParameter(annotations=None, modifiers=None, name=e, types=['Exception']))], finally_block=None, label=None, resources=None)])), IfStatement(condition=BinaryOperation(operandl=BinaryOperation(operandl=MethodInvocation(arguments=[], member=length, postfix_operators=[], prefix_operators=[], qualifier=s, selectors=[], type_arguments=None), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=2), operator=>), operandr=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=2)], member=substring, postfix_operators=[], prefix_operators=[], qualifier=s, selectors=[MethodInvocation(arguments=[], member=toLowerCase, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None), MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="-t")], member=equals, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)], type_arguments=None), operator=&&), else_statement=None, label=None, then_statement=BlockStatement(label=None, statements=[TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=2), MethodInvocation(arguments=[], member=length, postfix_operators=[], prefix_operators=[], qualifier=s, selectors=[], type_arguments=None)], member=substring, postfix_operators=[], prefix_operators=[], qualifier=s, selectors=[], type_arguments=None)], member=parseInt, postfix_operators=[], prefix_operators=[], qualifier=Integer, selectors=[], type_arguments=None), name=porta)], modifiers=set(), type=BasicType(dimensions=[], name=int)), IfStatement(condition=BinaryOperation(operandl=BinaryOperation(operandl=MemberReference(member=porta, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), operator=>), operandr=BinaryOperation(operandl=MemberReference(member=porta, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=65000), operator=<), operator=&&), else_statement=StatementExpression(expression=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="Bad value of field \"http\"")], member=println, postfix_operators=[], prefix_operators=[], qualifier=System.out, selectors=[], type_arguments=None), label=None), label=None, then_statement=StatementExpression(expression=Assignment(expressionl=MemberReference(member=httpPort, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MemberReference(member=porta, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])), label=None))], catches=[CatchClause(block=[StatementExpression(expression=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="Exception when parsing parameter \"http\"")], member=println, postfix_operators=[], prefix_operators=[], qualifier=System.out, selectors=[], type_arguments=None), label=None)], label=None, parameter=CatchClauseParameter(annotations=None, modifiers=None, name=e, types=['Exception']))], finally_block=None, label=None, resources=None)]))]), control=EnhancedForControl(iterable=MemberReference(member=args, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), var=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=None, name=s)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=String, sub_type=None))), label=None) else begin[{] None end[}] local_variable[type[MainCore], main] call[main.start, parameter[member[.appName], member[.httpPort], member[.rmiPort], member[.rmiPort]]] end[}] END[}]
Keyword[public] Keyword[static] Keyword[void] identifier[main] operator[SEP] identifier[String] operator[SEP] operator[SEP] identifier[args] operator[SEP] Keyword[throws] identifier[Exception] { Keyword[int] identifier[httpPort] operator[=] operator[-] Other[1] operator[SEP] Keyword[int] operator[SEP] operator[SEP] identifier[rmiPort] operator[=] Keyword[new] Keyword[int] operator[SEP] operator[SEP] { operator[-] Other[1] , operator[-] Other[1] } operator[SEP] identifier[String] identifier[appName] operator[=] literal[String] operator[SEP] Keyword[if] operator[SEP] identifier[args] operator[!=] Other[null] operator[&&] identifier[args] operator[SEP] identifier[length] operator[>] Other[0] operator[SEP] { Keyword[for] operator[SEP] identifier[String] identifier[s] operator[:] identifier[args] operator[SEP] { Keyword[if] operator[SEP] identifier[s] operator[SEP] identifier[length] operator[SEP] operator[SEP] operator[>] Other[5] operator[&&] identifier[s] operator[SEP] identifier[substring] operator[SEP] Other[0] , Other[5] operator[SEP] operator[SEP] identifier[toLowerCase] operator[SEP] operator[SEP] operator[SEP] identifier[equals] operator[SEP] literal[String] operator[SEP] operator[SEP] { identifier[appName] operator[=] identifier[s] operator[SEP] identifier[substring] operator[SEP] Other[5] , identifier[s] operator[SEP] identifier[length] operator[SEP] operator[SEP] operator[SEP] operator[SEP] } Keyword[if] operator[SEP] identifier[s] operator[SEP] identifier[length] operator[SEP] operator[SEP] operator[>] Other[2] operator[&&] identifier[s] operator[SEP] identifier[substring] operator[SEP] Other[0] , Other[2] operator[SEP] operator[SEP] identifier[toLowerCase] operator[SEP] operator[SEP] operator[SEP] identifier[equals] operator[SEP] literal[String] operator[SEP] operator[SEP] { identifier[appName] operator[=] identifier[s] operator[SEP] identifier[substring] operator[SEP] Other[2] , identifier[s] operator[SEP] identifier[length] operator[SEP] operator[SEP] operator[SEP] operator[SEP] } Keyword[if] operator[SEP] identifier[s] operator[SEP] identifier[length] operator[SEP] operator[SEP] operator[>] Other[4] operator[&&] identifier[s] operator[SEP] identifier[substring] operator[SEP] Other[0] , Other[4] operator[SEP] operator[SEP] identifier[toLowerCase] operator[SEP] operator[SEP] operator[SEP] identifier[equals] operator[SEP] literal[String] operator[SEP] operator[SEP] { Keyword[try] { identifier[String] identifier[s1] operator[=] identifier[s] operator[SEP] identifier[substring] operator[SEP] Other[4] , identifier[s] operator[SEP] identifier[length] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[parseRmi] operator[SEP] identifier[rmiPort] , identifier[s1] operator[SEP] operator[SEP] } Keyword[catch] operator[SEP] identifier[Exception] identifier[e] operator[SEP] { identifier[System] operator[SEP] identifier[out] operator[SEP] identifier[println] operator[SEP] literal[String] operator[SEP] operator[SEP] } } Keyword[if] operator[SEP] identifier[s] operator[SEP] identifier[length] operator[SEP] operator[SEP] operator[>] Other[2] operator[&&] identifier[s] operator[SEP] identifier[substring] operator[SEP] Other[0] , Other[2] operator[SEP] operator[SEP] identifier[toLowerCase] operator[SEP] operator[SEP] operator[SEP] identifier[equals] operator[SEP] literal[String] operator[SEP] operator[SEP] { Keyword[try] { identifier[String] identifier[s1] operator[=] identifier[s] operator[SEP] identifier[substring] operator[SEP] Other[2] , identifier[s] operator[SEP] identifier[length] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[parseRmi] operator[SEP] identifier[rmiPort] , identifier[s1] operator[SEP] operator[SEP] } Keyword[catch] operator[SEP] identifier[Exception] identifier[e] operator[SEP] { identifier[System] operator[SEP] identifier[out] operator[SEP] identifier[println] operator[SEP] literal[String] operator[SEP] operator[SEP] } } Keyword[if] operator[SEP] identifier[s] operator[SEP] identifier[length] operator[SEP] operator[SEP] operator[>] Other[5] operator[&&] identifier[s] operator[SEP] identifier[substring] operator[SEP] Other[0] , Other[5] operator[SEP] operator[SEP] identifier[toLowerCase] operator[SEP] operator[SEP] operator[SEP] identifier[equals] operator[SEP] literal[String] operator[SEP] operator[SEP] { Keyword[try] { Keyword[int] identifier[porta] operator[=] identifier[Integer] operator[SEP] identifier[parseInt] operator[SEP] identifier[s] operator[SEP] identifier[substring] operator[SEP] Other[5] , identifier[s] operator[SEP] identifier[length] operator[SEP] operator[SEP] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[porta] operator[>] Other[0] operator[&&] identifier[porta] operator[<] Other[65000] operator[SEP] identifier[httpPort] operator[=] identifier[porta] operator[SEP] Keyword[else] identifier[System] operator[SEP] identifier[out] operator[SEP] identifier[println] operator[SEP] literal[String] operator[SEP] operator[SEP] } Keyword[catch] operator[SEP] identifier[Exception] identifier[e] operator[SEP] { identifier[System] operator[SEP] identifier[out] operator[SEP] identifier[println] operator[SEP] literal[String] operator[SEP] operator[SEP] } } Keyword[if] operator[SEP] identifier[s] operator[SEP] identifier[length] operator[SEP] operator[SEP] operator[>] Other[2] operator[&&] identifier[s] operator[SEP] identifier[substring] operator[SEP] Other[0] , Other[2] operator[SEP] operator[SEP] identifier[toLowerCase] operator[SEP] operator[SEP] operator[SEP] identifier[equals] operator[SEP] literal[String] operator[SEP] operator[SEP] { Keyword[try] { Keyword[int] identifier[porta] operator[=] identifier[Integer] operator[SEP] identifier[parseInt] operator[SEP] identifier[s] operator[SEP] identifier[substring] operator[SEP] Other[2] , identifier[s] operator[SEP] identifier[length] operator[SEP] operator[SEP] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[porta] operator[>] Other[0] operator[&&] identifier[porta] operator[<] Other[65000] operator[SEP] identifier[httpPort] operator[=] identifier[porta] operator[SEP] Keyword[else] identifier[System] operator[SEP] identifier[out] operator[SEP] identifier[println] operator[SEP] literal[String] operator[SEP] operator[SEP] } Keyword[catch] operator[SEP] identifier[Exception] identifier[e] operator[SEP] { identifier[System] operator[SEP] identifier[out] operator[SEP] identifier[println] operator[SEP] literal[String] operator[SEP] operator[SEP] } } } } identifier[MainCore] identifier[main] operator[=] Keyword[new] identifier[MainCore] operator[SEP] operator[SEP] operator[SEP] identifier[main] operator[SEP] identifier[start] operator[SEP] identifier[appName] , identifier[httpPort] , identifier[rmiPort] operator[SEP] Other[0] operator[SEP] , identifier[rmiPort] operator[SEP] Other[1] operator[SEP] operator[SEP] operator[SEP] }
public ResultList<MovieInfo> getTopRatedMovies(Integer page, String language) throws MovieDbException { return tmdbMovies.getTopRatedMovies(page, language); }
class class_name[name] begin[{] method[getTopRatedMovies, return_type[type[ResultList]], modifier[public], parameter[page, language]] begin[{] return[call[tmdbMovies.getTopRatedMovies, parameter[member[.page], member[.language]]]] end[}] END[}]
Keyword[public] identifier[ResultList] operator[<] identifier[MovieInfo] operator[>] identifier[getTopRatedMovies] operator[SEP] identifier[Integer] identifier[page] , identifier[String] identifier[language] operator[SEP] Keyword[throws] identifier[MovieDbException] { Keyword[return] identifier[tmdbMovies] operator[SEP] identifier[getTopRatedMovies] operator[SEP] identifier[page] , identifier[language] operator[SEP] operator[SEP] }
@Override public int compareTo(final ArchivePath path) { // If a null argument, we're greater if (path == null) { return 1; } /* * Check for parent relationship */ final ArchivePath parentOfSpecified = PathUtil.getParent(path); final ArchivePath parentOfThis = PathUtil.getParent(this); // If we're the parent of the specified, we're less if (this.equals(parentOfSpecified)) { return -1; } // If the specified if the parent of us, we're more if (path.equals(parentOfThis)) { return 1; } // Just delegate to underlying contexts final int comparedContexts = path.get().compareTo(this.get()); // Return the inverted value of the contents (in this ordering, less is more) final int adjusted = 0 - comparedContexts; return adjusted; }
class class_name[name] begin[{] method[compareTo, return_type[type[int]], modifier[public], parameter[path]] begin[{] if[binary_operation[member[.path], ==, literal[null]]] begin[{] return[literal[1]] else begin[{] None end[}] local_variable[type[ArchivePath], parentOfSpecified] local_variable[type[ArchivePath], parentOfThis] if[THIS[call[None.equals, parameter[member[.parentOfSpecified]]]]] begin[{] return[literal[1]] else begin[{] None end[}] if[call[path.equals, parameter[member[.parentOfThis]]]] begin[{] return[literal[1]] else begin[{] None end[}] local_variable[type[int], comparedContexts] local_variable[type[int], adjusted] return[member[.adjusted]] end[}] END[}]
annotation[@] identifier[Override] Keyword[public] Keyword[int] identifier[compareTo] operator[SEP] Keyword[final] identifier[ArchivePath] identifier[path] operator[SEP] { Keyword[if] operator[SEP] identifier[path] operator[==] Other[null] operator[SEP] { Keyword[return] Other[1] operator[SEP] } Keyword[final] identifier[ArchivePath] identifier[parentOfSpecified] operator[=] identifier[PathUtil] operator[SEP] identifier[getParent] operator[SEP] identifier[path] operator[SEP] operator[SEP] Keyword[final] identifier[ArchivePath] identifier[parentOfThis] operator[=] identifier[PathUtil] operator[SEP] identifier[getParent] operator[SEP] Keyword[this] operator[SEP] operator[SEP] Keyword[if] operator[SEP] Keyword[this] operator[SEP] identifier[equals] operator[SEP] identifier[parentOfSpecified] operator[SEP] operator[SEP] { Keyword[return] operator[-] Other[1] operator[SEP] } Keyword[if] operator[SEP] identifier[path] operator[SEP] identifier[equals] operator[SEP] identifier[parentOfThis] operator[SEP] operator[SEP] { Keyword[return] Other[1] operator[SEP] } Keyword[final] Keyword[int] identifier[comparedContexts] operator[=] identifier[path] operator[SEP] identifier[get] operator[SEP] operator[SEP] operator[SEP] identifier[compareTo] operator[SEP] Keyword[this] operator[SEP] identifier[get] operator[SEP] operator[SEP] operator[SEP] operator[SEP] Keyword[final] Keyword[int] identifier[adjusted] operator[=] Other[0] operator[-] identifier[comparedContexts] operator[SEP] Keyword[return] identifier[adjusted] operator[SEP] }
@Override public EClass getDeserializerPluginConfiguration() { if (deserializerPluginConfigurationEClass == null) { deserializerPluginConfigurationEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(StorePackage.eNS_URI).getEClassifiers().get(15); } return deserializerPluginConfigurationEClass; }
class class_name[name] begin[{] method[getDeserializerPluginConfiguration, return_type[type[EClass]], modifier[public], parameter[]] begin[{] if[binary_operation[member[.deserializerPluginConfigurationEClass], ==, literal[null]]] begin[{] assign[member[.deserializerPluginConfigurationEClass], Cast(expression=MethodInvocation(arguments=[MemberReference(member=eNS_URI, postfix_operators=[], prefix_operators=[], qualifier=StorePackage, selectors=[])], member=getEPackage, postfix_operators=[], prefix_operators=[], qualifier=EPackage.Registry.INSTANCE, selectors=[MethodInvocation(arguments=[], member=getEClassifiers, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None), MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=15)], member=get, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)], type_arguments=None), type=ReferenceType(arguments=None, dimensions=[], name=EClass, sub_type=None))] else begin[{] None end[}] return[member[.deserializerPluginConfigurationEClass]] end[}] END[}]
annotation[@] identifier[Override] Keyword[public] identifier[EClass] identifier[getDeserializerPluginConfiguration] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[deserializerPluginConfigurationEClass] operator[==] Other[null] operator[SEP] { identifier[deserializerPluginConfigurationEClass] operator[=] operator[SEP] identifier[EClass] operator[SEP] identifier[EPackage] operator[SEP] identifier[Registry] operator[SEP] identifier[INSTANCE] operator[SEP] identifier[getEPackage] operator[SEP] identifier[StorePackage] operator[SEP] identifier[eNS_URI] operator[SEP] operator[SEP] identifier[getEClassifiers] operator[SEP] operator[SEP] operator[SEP] identifier[get] operator[SEP] Other[15] operator[SEP] operator[SEP] } Keyword[return] identifier[deserializerPluginConfigurationEClass] operator[SEP] }
public ListAppStreamsResponse listAppStreams(String app) { ListAppStreamsRequest request = new ListAppStreamsRequest(); request.setApp(app); return listAppStreams(request); }
class class_name[name] begin[{] method[listAppStreams, return_type[type[ListAppStreamsResponse]], modifier[public], parameter[app]] begin[{] local_variable[type[ListAppStreamsRequest], request] call[request.setApp, parameter[member[.app]]] return[call[.listAppStreams, parameter[member[.request]]]] end[}] END[}]
Keyword[public] identifier[ListAppStreamsResponse] identifier[listAppStreams] operator[SEP] identifier[String] identifier[app] operator[SEP] { identifier[ListAppStreamsRequest] identifier[request] operator[=] Keyword[new] identifier[ListAppStreamsRequest] operator[SEP] operator[SEP] operator[SEP] identifier[request] operator[SEP] identifier[setApp] operator[SEP] identifier[app] operator[SEP] operator[SEP] Keyword[return] identifier[listAppStreams] operator[SEP] identifier[request] operator[SEP] operator[SEP] }
public static String getName(final Constructor<?> c) { StringBuilder ret = new StringBuilder("("); Class<?>[] parameterTypes = c.getParameterTypes(); for (int i = 0; i < parameterTypes.length; i++) { if (i > 0) ret.append(','); ret.append(getName(parameterTypes[i])); } ret.append(')'); return ret.toString(); }
class class_name[name] begin[{] method[getName, return_type[type[String]], modifier[public static], parameter[c]] begin[{] local_variable[type[StringBuilder], ret] local_variable[type[Class], parameterTypes] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), operator=>), else_statement=None, label=None, then_statement=StatementExpression(expression=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=',')], member=append, postfix_operators=[], prefix_operators=[], qualifier=ret, selectors=[], type_arguments=None), label=None)), StatementExpression(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[MemberReference(member=parameterTypes, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]))])], member=getName, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None)], member=append, postfix_operators=[], prefix_operators=[], qualifier=ret, selectors=[], type_arguments=None), label=None)]), control=ForControl(condition=BinaryOperation(operandl=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=length, postfix_operators=[], prefix_operators=[], qualifier=parameterTypes, selectors=[]), operator=<), init=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), name=i)], modifiers=set(), type=BasicType(dimensions=[], name=int)), update=[MemberReference(member=i, postfix_operators=['++'], prefix_operators=[], qualifier=, selectors=[])]), label=None) call[ret.append, parameter[literal[')']]] return[call[ret.toString, parameter[]]] end[}] END[}]
Keyword[public] Keyword[static] identifier[String] identifier[getName] operator[SEP] Keyword[final] identifier[Constructor] operator[<] operator[?] operator[>] identifier[c] operator[SEP] { identifier[StringBuilder] identifier[ret] operator[=] Keyword[new] identifier[StringBuilder] operator[SEP] literal[String] operator[SEP] operator[SEP] identifier[Class] operator[<] operator[?] operator[>] operator[SEP] operator[SEP] identifier[parameterTypes] operator[=] identifier[c] operator[SEP] identifier[getParameterTypes] operator[SEP] operator[SEP] operator[SEP] Keyword[for] operator[SEP] Keyword[int] identifier[i] operator[=] Other[0] operator[SEP] identifier[i] operator[<] identifier[parameterTypes] operator[SEP] identifier[length] operator[SEP] identifier[i] operator[++] operator[SEP] { Keyword[if] operator[SEP] identifier[i] operator[>] Other[0] operator[SEP] identifier[ret] operator[SEP] identifier[append] operator[SEP] literal[String] operator[SEP] operator[SEP] identifier[ret] operator[SEP] identifier[append] operator[SEP] identifier[getName] operator[SEP] identifier[parameterTypes] operator[SEP] identifier[i] operator[SEP] operator[SEP] operator[SEP] operator[SEP] } identifier[ret] operator[SEP] identifier[append] operator[SEP] literal[String] operator[SEP] operator[SEP] Keyword[return] identifier[ret] operator[SEP] identifier[toString] operator[SEP] operator[SEP] operator[SEP] }
public void addAlert(String alertMessage) throws JSONException { String previousAlert = getCompatibleProperty("alert", String.class, "A custom alert (\"%s\") was already added to this payload"); logger.debug("Adding alert [" + alertMessage + "]" + (previousAlert != null ? " replacing previous alert [" + previousAlert + "]" : "")); put("alert", alertMessage, this.apsDictionary, false); }
class class_name[name] begin[{] method[addAlert, return_type[void], modifier[public], parameter[alertMessage]] begin[{] local_variable[type[String], previousAlert] call[logger.debug, parameter[binary_operation[binary_operation[binary_operation[literal["Adding alert ["], +, member[.alertMessage]], +, literal["]"]], +, TernaryExpression(condition=BinaryOperation(operandl=MemberReference(member=previousAlert, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=null), operator=!=), if_false=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=""), if_true=BinaryOperation(operandl=BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=" replacing previous alert ["), operandr=MemberReference(member=previousAlert, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=+), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="]"), operator=+))]]] call[.put, parameter[literal["alert"], member[.alertMessage], THIS[member[None.apsDictionary]], literal[false]]] end[}] END[}]
Keyword[public] Keyword[void] identifier[addAlert] operator[SEP] identifier[String] identifier[alertMessage] operator[SEP] Keyword[throws] identifier[JSONException] { identifier[String] identifier[previousAlert] operator[=] identifier[getCompatibleProperty] operator[SEP] literal[String] , identifier[String] operator[SEP] Keyword[class] , literal[String] operator[SEP] operator[SEP] identifier[logger] operator[SEP] identifier[debug] operator[SEP] literal[String] operator[+] identifier[alertMessage] operator[+] literal[String] operator[+] operator[SEP] identifier[previousAlert] operator[!=] Other[null] operator[?] literal[String] operator[+] identifier[previousAlert] operator[+] literal[String] operator[:] literal[String] operator[SEP] operator[SEP] operator[SEP] identifier[put] operator[SEP] literal[String] , identifier[alertMessage] , Keyword[this] operator[SEP] identifier[apsDictionary] , literal[boolean] operator[SEP] operator[SEP] }
public static JoinPoint<Exception> fromSynchronizationPoints(Collection<? extends ISynchronizationPoint<?>> synchPoints) { JoinPoint<Exception> jp = new JoinPoint<>(); for (ISynchronizationPoint<?> sp : synchPoints) jp.addToJoin(sp); jp.start(); return jp; }
class class_name[name] begin[{] method[fromSynchronizationPoints, return_type[type[JoinPoint]], modifier[public static], parameter[synchPoints]] begin[{] local_variable[type[JoinPoint], jp] ForStatement(body=StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=sp, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=addToJoin, postfix_operators=[], prefix_operators=[], qualifier=jp, selectors=[], type_arguments=None), label=None), control=EnhancedForControl(iterable=MemberReference(member=synchPoints, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), var=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=None, name=sp)], modifiers=set(), type=ReferenceType(arguments=[TypeArgument(pattern_type=?, type=None)], dimensions=[], name=ISynchronizationPoint, sub_type=None))), label=None) call[jp.start, parameter[]] return[member[.jp]] end[}] END[}]
Keyword[public] Keyword[static] identifier[JoinPoint] operator[<] identifier[Exception] operator[>] identifier[fromSynchronizationPoints] operator[SEP] identifier[Collection] operator[<] operator[?] Keyword[extends] identifier[ISynchronizationPoint] operator[<] operator[?] operator[>] operator[>] identifier[synchPoints] operator[SEP] { identifier[JoinPoint] operator[<] identifier[Exception] operator[>] identifier[jp] operator[=] Keyword[new] identifier[JoinPoint] operator[<] operator[>] operator[SEP] operator[SEP] operator[SEP] Keyword[for] operator[SEP] identifier[ISynchronizationPoint] operator[<] operator[?] operator[>] identifier[sp] operator[:] identifier[synchPoints] operator[SEP] identifier[jp] operator[SEP] identifier[addToJoin] operator[SEP] identifier[sp] operator[SEP] operator[SEP] identifier[jp] operator[SEP] identifier[start] operator[SEP] operator[SEP] operator[SEP] Keyword[return] identifier[jp] operator[SEP] }
protected final void addRepeatable(String annotationName, io.micronaut.core.annotation.AnnotationValue annotationValue) { if (StringUtils.isNotEmpty(annotationName) && annotationValue != null) { Map<String, Map<CharSequence, Object>> allAnnotations = getAllAnnotations(); addRepeatableInternal(annotationName, annotationValue, allAnnotations); } }
class class_name[name] begin[{] method[addRepeatable, return_type[void], modifier[final protected], parameter[annotationName, annotationValue]] begin[{] if[binary_operation[call[StringUtils.isNotEmpty, parameter[member[.annotationName]]], &&, binary_operation[member[.annotationValue], !=, literal[null]]]] begin[{] local_variable[type[Map], allAnnotations] call[.addRepeatableInternal, parameter[member[.annotationName], member[.annotationValue], member[.allAnnotations]]] else begin[{] None end[}] end[}] END[}]
Keyword[protected] Keyword[final] Keyword[void] identifier[addRepeatable] operator[SEP] identifier[String] identifier[annotationName] , identifier[io] operator[SEP] identifier[micronaut] operator[SEP] identifier[core] operator[SEP] identifier[annotation] operator[SEP] identifier[AnnotationValue] identifier[annotationValue] operator[SEP] { Keyword[if] operator[SEP] identifier[StringUtils] operator[SEP] identifier[isNotEmpty] operator[SEP] identifier[annotationName] operator[SEP] operator[&&] identifier[annotationValue] operator[!=] Other[null] operator[SEP] { identifier[Map] operator[<] identifier[String] , identifier[Map] operator[<] identifier[CharSequence] , identifier[Object] operator[>] operator[>] identifier[allAnnotations] operator[=] identifier[getAllAnnotations] operator[SEP] operator[SEP] operator[SEP] identifier[addRepeatableInternal] operator[SEP] identifier[annotationName] , identifier[annotationValue] , identifier[allAnnotations] operator[SEP] operator[SEP] } }
public static boolean isBigDecimal(Schema schema) { if (Type.BYTES == schema.getType()) { JsonNode logicalTypeNode = schema.getJsonProp("logicalType"); if (logicalTypeNode != null && "decimal".equals(logicalTypeNode.asText())) { return true; } } return false; }
class class_name[name] begin[{] method[isBigDecimal, return_type[type[boolean]], modifier[public static], parameter[schema]] begin[{] if[binary_operation[member[Type.BYTES], ==, call[schema.getType, parameter[]]]] begin[{] local_variable[type[JsonNode], logicalTypeNode] if[binary_operation[binary_operation[member[.logicalTypeNode], !=, literal[null]], &&, literal["decimal"]]] begin[{] return[literal[true]] else begin[{] None end[}] else begin[{] None end[}] return[literal[false]] end[}] END[}]
Keyword[public] Keyword[static] Keyword[boolean] identifier[isBigDecimal] operator[SEP] identifier[Schema] identifier[schema] operator[SEP] { Keyword[if] operator[SEP] identifier[Type] operator[SEP] identifier[BYTES] operator[==] identifier[schema] operator[SEP] identifier[getType] operator[SEP] operator[SEP] operator[SEP] { identifier[JsonNode] identifier[logicalTypeNode] operator[=] identifier[schema] operator[SEP] identifier[getJsonProp] operator[SEP] literal[String] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[logicalTypeNode] operator[!=] Other[null] operator[&&] literal[String] operator[SEP] identifier[equals] operator[SEP] identifier[logicalTypeNode] operator[SEP] identifier[asText] operator[SEP] operator[SEP] operator[SEP] operator[SEP] { Keyword[return] literal[boolean] operator[SEP] } } Keyword[return] literal[boolean] operator[SEP] }
@Override public void stop() { engine.stop(); onPause(); queueEvent(new Runnable() { @Override public void run() { renderer.recycle(); } }); }
class class_name[name] begin[{] method[stop, return_type[void], modifier[public], parameter[]] begin[{] call[engine.stop, parameter[]] call[.onPause, parameter[]] call[.queueEvent, parameter[ClassCreator(arguments=[], body=[MethodDeclaration(annotations=[Annotation(element=None, name=Override)], body=[StatementExpression(expression=MethodInvocation(arguments=[], member=recycle, postfix_operators=[], prefix_operators=[], qualifier=renderer, selectors=[], type_arguments=None), label=None)], documentation=None, modifiers={'public'}, name=run, parameters=[], return_type=None, throws=None, type_parameters=None)], constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=Runnable, sub_type=None))]] end[}] END[}]
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[stop] operator[SEP] operator[SEP] { identifier[engine] operator[SEP] identifier[stop] operator[SEP] operator[SEP] operator[SEP] identifier[onPause] operator[SEP] operator[SEP] operator[SEP] identifier[queueEvent] operator[SEP] Keyword[new] identifier[Runnable] operator[SEP] operator[SEP] { annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[run] operator[SEP] operator[SEP] { identifier[renderer] operator[SEP] identifier[recycle] operator[SEP] operator[SEP] operator[SEP] } } operator[SEP] operator[SEP] }
public static String getStateKey(CmsResourceState state) { StringBuffer sb = new StringBuffer(STATE_PREFIX); sb.append(state); sb.append(STATE_POSTFIX); return sb.toString(); }
class class_name[name] begin[{] method[getStateKey, return_type[type[String]], modifier[public static], parameter[state]] begin[{] local_variable[type[StringBuffer], sb] call[sb.append, parameter[member[.state]]] call[sb.append, parameter[member[.STATE_POSTFIX]]] return[call[sb.toString, parameter[]]] end[}] END[}]
Keyword[public] Keyword[static] identifier[String] identifier[getStateKey] operator[SEP] identifier[CmsResourceState] identifier[state] operator[SEP] { identifier[StringBuffer] identifier[sb] operator[=] Keyword[new] identifier[StringBuffer] operator[SEP] identifier[STATE_PREFIX] operator[SEP] operator[SEP] identifier[sb] operator[SEP] identifier[append] operator[SEP] identifier[state] operator[SEP] operator[SEP] identifier[sb] operator[SEP] identifier[append] operator[SEP] identifier[STATE_POSTFIX] operator[SEP] operator[SEP] Keyword[return] identifier[sb] operator[SEP] identifier[toString] operator[SEP] operator[SEP] operator[SEP] }
public void setUsers(java.util.Collection<User> users) { if (users == null) { this.users = null; return; } this.users = new java.util.ArrayList<User>(users); }
class class_name[name] begin[{] method[setUsers, return_type[void], modifier[public], parameter[users]] begin[{] if[binary_operation[member[.users], ==, literal[null]]] begin[{] assign[THIS[member[None.users]], literal[null]] return[None] else begin[{] None end[}] assign[THIS[member[None.users]], ClassCreator(arguments=[MemberReference(member=users, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=java, sub_type=ReferenceType(arguments=None, dimensions=None, name=util, sub_type=ReferenceType(arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=User, sub_type=None))], dimensions=None, name=ArrayList, sub_type=None))))] end[}] END[}]
Keyword[public] Keyword[void] identifier[setUsers] operator[SEP] identifier[java] operator[SEP] identifier[util] operator[SEP] identifier[Collection] operator[<] identifier[User] operator[>] identifier[users] operator[SEP] { Keyword[if] operator[SEP] identifier[users] operator[==] Other[null] operator[SEP] { Keyword[this] operator[SEP] identifier[users] operator[=] Other[null] operator[SEP] Keyword[return] operator[SEP] } Keyword[this] operator[SEP] identifier[users] operator[=] Keyword[new] identifier[java] operator[SEP] identifier[util] operator[SEP] identifier[ArrayList] operator[<] identifier[User] operator[>] operator[SEP] identifier[users] operator[SEP] operator[SEP] }
@Override protected FieldItem[] getDefaultTaskData() { FieldItem[] result = new FieldItem[] { new FieldItem(TaskField.UNIQUE_ID, FieldLocation.FIXED_DATA, 0, 0, 0, 0, 0), new FieldItem(TaskField.ID, FieldLocation.FIXED_DATA, 0, 4, 0, 0, 0), new FieldItem(TaskField.EARLY_FINISH, FieldLocation.FIXED_DATA, 0, 8, 0, 0, 0), new FieldItem(TaskField.LATE_START, FieldLocation.FIXED_DATA, 0, 12, 0, 0, 0), new FieldItem(TaskField.STOP, FieldLocation.FIXED_DATA, 0, 16, 0, 0, 0), new FieldItem(TaskField.RESUME, FieldLocation.FIXED_DATA, 0, 20, 0, 0, 0), new FieldItem(TaskField.FREE_SLACK, FieldLocation.FIXED_DATA, 0, 24, 0, 0, 0), new FieldItem(TaskField.START_SLACK, FieldLocation.FIXED_DATA, 0, 28, 0, 0, 0), new FieldItem(TaskField.FINISH_SLACK, FieldLocation.FIXED_DATA, 0, 32, 0, 0, 0), new FieldItem(TaskField.PARENT_TASK_UNIQUE_ID, FieldLocation.FIXED_DATA, 0, 36, 0, 0, 0), new FieldItem(TaskField.OUTLINE_LEVEL, FieldLocation.FIXED_DATA, 0, 40, 0, 0, 0), new FieldItem(TaskField.DURATION_UNITS, FieldLocation.FIXED_DATA, 0, 58, 0, 0, 0), new FieldItem(TaskField.DURATION, FieldLocation.FIXED_DATA, 0, 60, 0, 0, 0), new FieldItem(TaskField.ACTUAL_DURATION_UNITS, FieldLocation.FIXED_DATA, 0, 64, 0, 0, 0), new FieldItem(TaskField.ACTUAL_DURATION, FieldLocation.FIXED_DATA, 0, 66, 0, 0, 0), new FieldItem(TaskField.REMAINING_DURATION, FieldLocation.FIXED_DATA, 0, 70, 0, 0, 0), new FieldItem(TaskField.BASELINE_DURATION, FieldLocation.FIXED_DATA, 0, 74, 0, 0, 0), new FieldItem(TaskField.BASELINE_DURATION_UNITS, FieldLocation.FIXED_DATA, 0, 78, 0, 0, 0), new FieldItem(TaskField.CONSTRAINT_TYPE, FieldLocation.FIXED_DATA, 0, 80, 0, 0, 0), new FieldItem(TaskField.LEVELING_DELAY, FieldLocation.FIXED_DATA, 0, 82, 0, 0, 0), new FieldItem(TaskField.LEVELING_DELAY_UNITS, FieldLocation.FIXED_DATA, 0, 86, 0, 0, 0), new FieldItem(TaskField.START, FieldLocation.FIXED_DATA, 0, 88, 0, 0, 0), new FieldItem(TaskField.FINISH, FieldLocation.FIXED_DATA, 0, 92, 0, 0, 0), new FieldItem(TaskField.ACTUAL_START, FieldLocation.FIXED_DATA, 0, 96, 0, 0, 0), new FieldItem(TaskField.ACTUAL_FINISH, FieldLocation.FIXED_DATA, 0, 100, 0, 0, 0), new FieldItem(TaskField.BASELINE_START, FieldLocation.FIXED_DATA, 0, 104, 0, 0, 0), new FieldItem(TaskField.BASELINE_FINISH, FieldLocation.FIXED_DATA, 0, 108, 0, 0, 0), new FieldItem(TaskField.CONSTRAINT_DATE, FieldLocation.FIXED_DATA, 0, 112, 0, 0, 0), new FieldItem(TaskField.RESUME_NO_EARLIER_THAN, FieldLocation.FIXED_DATA, 0, 116, 0, 0, 0), new FieldItem(TaskField.PRIORITY, FieldLocation.FIXED_DATA, 0, 120, 0, 0, 0), new FieldItem(TaskField.PERCENT_COMPLETE, FieldLocation.FIXED_DATA, 0, 122, 0, 0, 0), new FieldItem(TaskField.PERCENT_WORK_COMPLETE, FieldLocation.FIXED_DATA, 0, 124, 0, 0, 0), new FieldItem(TaskField.TYPE, FieldLocation.FIXED_DATA, 0, 126, 0, 0, 0), new FieldItem(TaskField.FIXED_COST_ACCRUAL, FieldLocation.FIXED_DATA, 0, 128, 0, 0, 0), new FieldItem(TaskField.CREATED, FieldLocation.FIXED_DATA, 0, 130, 0, 0, 0), new FieldItem(TaskField.RECURRING, FieldLocation.FIXED_DATA, 0, 134, 0, 0, 0), new FieldItem(TaskField.PRELEVELED_START, FieldLocation.FIXED_DATA, 0, 136, 0, 0, 0), new FieldItem(TaskField.PRELEVELED_FINISH, FieldLocation.FIXED_DATA, 0, 140, 0, 0, 0), new FieldItem(TaskField.EARLY_START, FieldLocation.FIXED_DATA, 0, 148, 0, 0, 0), new FieldItem(TaskField.LATE_FINISH, FieldLocation.FIXED_DATA, 0, 152, 0, 0, 0), new FieldItem(TaskField.SUMMARY_PROGRESS, FieldLocation.FIXED_DATA, 0, 156, 0, 0, 0), new FieldItem(TaskField.CALENDAR_UNIQUE_ID, FieldLocation.FIXED_DATA, 0, 160, 0, 0, 0), new FieldItem(TaskField.DEADLINE, FieldLocation.FIXED_DATA, 0, 164, 0, 0, 0), new FieldItem(TaskField.WORK, FieldLocation.FIXED_DATA, 0, 168, 0, 0, 0), new FieldItem(TaskField.BASELINE_WORK, FieldLocation.FIXED_DATA, 0, 176, 0, 0, 0), new FieldItem(TaskField.ACTUAL_WORK, FieldLocation.FIXED_DATA, 0, 184, 0, 0, 0), new FieldItem(TaskField.REMAINING_WORK, FieldLocation.FIXED_DATA, 0, 192, 0, 0, 0), new FieldItem(TaskField.COST, FieldLocation.FIXED_DATA, 0, 200, 0, 0, 0), new FieldItem(TaskField.FIXED_COST, FieldLocation.FIXED_DATA, 0, 208, 0, 0, 0), new FieldItem(TaskField.ACTUAL_COST, FieldLocation.FIXED_DATA, 0, 216, 0, 0, 0), new FieldItem(TaskField.REMAINING_COST, FieldLocation.FIXED_DATA, 0, 224, 0, 0, 0), new FieldItem(TaskField.BASELINE_COST, FieldLocation.FIXED_DATA, 0, 232, 0, 0, 0), new FieldItem(TaskField.BASELINE_FIXED_COST, FieldLocation.FIXED_DATA, 0, 256, 0, 0, 0), new FieldItem(TaskField.ACTUAL_OVERTIME_WORK, FieldLocation.VAR_DATA, 0, 65535, 3, 0, 0), new FieldItem(TaskField.REMAINING_OVERTIME_WORK, FieldLocation.VAR_DATA, 0, 65535, 4, 0, 0), new FieldItem(TaskField.OVERTIME_COST, FieldLocation.VAR_DATA, 0, 65535, 5, 0, 0), new FieldItem(TaskField.ACTUAL_OVERTIME_COST, FieldLocation.VAR_DATA, 0, 65535, 6, 0, 0), new FieldItem(TaskField.REMAINING_OVERTIME_COST, FieldLocation.VAR_DATA, 0, 65535, 7, 0, 0), new FieldItem(TaskField.SUBPROJECT_TASKS_UNIQUEID_OFFSET, FieldLocation.VAR_DATA, 0, 65535, 8, 0, 0), new FieldItem(TaskField.SUBPROJECT_UNIQUE_TASK_ID, FieldLocation.VAR_DATA, 0, 65535, 9, 0, 0), new FieldItem(TaskField.WBS, FieldLocation.VAR_DATA, 0, 65535, 10, 0, 0), new FieldItem(TaskField.NAME, FieldLocation.VAR_DATA, 0, 65535, 11, 0, 0), new FieldItem(TaskField.CONTACT, FieldLocation.VAR_DATA, 0, 65535, 12, 0, 0), new FieldItem(TaskField.TEXT1, FieldLocation.VAR_DATA, 0, 65535, 14, 0, 0), new FieldItem(TaskField.TEXT2, FieldLocation.VAR_DATA, 0, 65535, 15, 0, 0), new FieldItem(TaskField.TEXT3, FieldLocation.VAR_DATA, 0, 65535, 16, 0, 0), new FieldItem(TaskField.TEXT4, FieldLocation.VAR_DATA, 0, 65535, 17, 0, 0), new FieldItem(TaskField.TEXT5, FieldLocation.VAR_DATA, 0, 65535, 18, 0, 0), new FieldItem(TaskField.TEXT6, FieldLocation.VAR_DATA, 0, 65535, 19, 0, 0), new FieldItem(TaskField.TEXT7, FieldLocation.VAR_DATA, 0, 65535, 20, 0, 0), new FieldItem(TaskField.TEXT8, FieldLocation.VAR_DATA, 0, 65535, 21, 0, 0), new FieldItem(TaskField.TEXT9, FieldLocation.VAR_DATA, 0, 65535, 22, 0, 0), new FieldItem(TaskField.TEXT10, FieldLocation.VAR_DATA, 0, 65535, 23, 0, 0), new FieldItem(TaskField.START1, FieldLocation.VAR_DATA, 0, 65535, 24, 0, 0), new FieldItem(TaskField.FINISH1, FieldLocation.VAR_DATA, 0, 65535, 25, 0, 0), new FieldItem(TaskField.START2, FieldLocation.VAR_DATA, 0, 65535, 26, 0, 0), new FieldItem(TaskField.FINISH2, FieldLocation.VAR_DATA, 0, 65535, 27, 0, 0), new FieldItem(TaskField.START3, FieldLocation.VAR_DATA, 0, 65535, 28, 0, 0), new FieldItem(TaskField.FINISH3, FieldLocation.VAR_DATA, 0, 65535, 29, 0, 0), new FieldItem(TaskField.START4, FieldLocation.VAR_DATA, 0, 65535, 30, 0, 0), new FieldItem(TaskField.FINISH4, FieldLocation.VAR_DATA, 0, 65535, 31, 0, 0), new FieldItem(TaskField.START5, FieldLocation.VAR_DATA, 0, 65535, 32, 0, 0), new FieldItem(TaskField.FINISH5, FieldLocation.VAR_DATA, 0, 65535, 33, 0, 0), new FieldItem(TaskField.START6, FieldLocation.VAR_DATA, 0, 65535, 34, 0, 0), new FieldItem(TaskField.FINISH6, FieldLocation.VAR_DATA, 0, 65535, 35, 0, 0), new FieldItem(TaskField.START7, FieldLocation.VAR_DATA, 0, 65535, 36, 0, 0), new FieldItem(TaskField.FINISH7, FieldLocation.VAR_DATA, 0, 65535, 37, 0, 0), new FieldItem(TaskField.START8, FieldLocation.VAR_DATA, 0, 65535, 38, 0, 0), new FieldItem(TaskField.FINISH8, FieldLocation.VAR_DATA, 0, 65535, 39, 0, 0), new FieldItem(TaskField.START9, FieldLocation.VAR_DATA, 0, 65535, 40, 0, 0), new FieldItem(TaskField.FINISH9, FieldLocation.VAR_DATA, 0, 65535, 41, 0, 0), new FieldItem(TaskField.START10, FieldLocation.VAR_DATA, 0, 65535, 42, 0, 0), new FieldItem(TaskField.FINISH10, FieldLocation.VAR_DATA, 0, 65535, 43, 0, 0), new FieldItem(TaskField.NUMBER1, FieldLocation.VAR_DATA, 0, 65535, 45, 0, 0), new FieldItem(TaskField.NUMBER2, FieldLocation.VAR_DATA, 0, 65535, 46, 0, 0), new FieldItem(TaskField.NUMBER3, FieldLocation.VAR_DATA, 0, 65535, 47, 0, 0), new FieldItem(TaskField.NUMBER4, FieldLocation.VAR_DATA, 0, 65535, 48, 0, 0), new FieldItem(TaskField.NUMBER5, FieldLocation.VAR_DATA, 0, 65535, 49, 0, 0), new FieldItem(TaskField.NUMBER6, FieldLocation.VAR_DATA, 0, 65535, 50, 0, 0), new FieldItem(TaskField.NUMBER7, FieldLocation.VAR_DATA, 0, 65535, 51, 0, 0), new FieldItem(TaskField.NUMBER8, FieldLocation.VAR_DATA, 0, 65535, 52, 0, 0), new FieldItem(TaskField.NUMBER9, FieldLocation.VAR_DATA, 0, 65535, 53, 0, 0), new FieldItem(TaskField.NUMBER10, FieldLocation.VAR_DATA, 0, 65535, 54, 0, 0), new FieldItem(TaskField.DURATION1, FieldLocation.VAR_DATA, 0, 65535, 55, 0, 0), new FieldItem(TaskField.DURATION1_UNITS, FieldLocation.VAR_DATA, 0, 65535, 56, 0, 0), new FieldItem(TaskField.DURATION2, FieldLocation.VAR_DATA, 0, 65535, 57, 0, 0), new FieldItem(TaskField.DURATION2_UNITS, FieldLocation.VAR_DATA, 0, 65535, 58, 0, 0), new FieldItem(TaskField.DURATION3, FieldLocation.VAR_DATA, 0, 65535, 59, 0, 0), new FieldItem(TaskField.DURATION3_UNITS, FieldLocation.VAR_DATA, 0, 65535, 60, 0, 0), new FieldItem(TaskField.DURATION4, FieldLocation.VAR_DATA, 0, 65535, 61, 0, 0), new FieldItem(TaskField.DURATION4_UNITS, FieldLocation.VAR_DATA, 0, 65535, 62, 0, 0), new FieldItem(TaskField.DURATION5, FieldLocation.VAR_DATA, 0, 65535, 63, 0, 0), new FieldItem(TaskField.DURATION5_UNITS, FieldLocation.VAR_DATA, 0, 65535, 64, 0, 0), new FieldItem(TaskField.DURATION6, FieldLocation.VAR_DATA, 0, 65535, 65, 0, 0), new FieldItem(TaskField.DURATION6_UNITS, FieldLocation.VAR_DATA, 0, 65535, 66, 0, 0), new FieldItem(TaskField.DURATION7, FieldLocation.VAR_DATA, 0, 65535, 67, 0, 0), new FieldItem(TaskField.DURATION7_UNITS, FieldLocation.VAR_DATA, 0, 65535, 68, 0, 0), new FieldItem(TaskField.DURATION8, FieldLocation.VAR_DATA, 0, 65535, 69, 0, 0), new FieldItem(TaskField.DURATION8_UNITS, FieldLocation.VAR_DATA, 0, 65535, 70, 0, 0), new FieldItem(TaskField.DURATION9, FieldLocation.VAR_DATA, 0, 65535, 71, 0, 0), new FieldItem(TaskField.DURATION9_UNITS, FieldLocation.VAR_DATA, 0, 65535, 72, 0, 0), new FieldItem(TaskField.DURATION10, FieldLocation.VAR_DATA, 0, 65535, 73, 0, 0), new FieldItem(TaskField.DURATION10_UNITS, FieldLocation.VAR_DATA, 0, 65535, 74, 0, 0), new FieldItem(TaskField.RECURRING_DATA, FieldLocation.VAR_DATA, 0, 65535, 76, 0, 0), new FieldItem(TaskField.SUBPROJECT_TASK_ID, FieldLocation.VAR_DATA, 0, 65535, 79, 0, 0), new FieldItem(TaskField.DATE1, FieldLocation.VAR_DATA, 0, 65535, 80, 0, 0), new FieldItem(TaskField.DATE2, FieldLocation.VAR_DATA, 0, 65535, 81, 0, 0), new FieldItem(TaskField.DATE3, FieldLocation.VAR_DATA, 0, 65535, 82, 0, 0), new FieldItem(TaskField.DATE4, FieldLocation.VAR_DATA, 0, 65535, 83, 0, 0), new FieldItem(TaskField.DATE5, FieldLocation.VAR_DATA, 0, 65535, 84, 0, 0), new FieldItem(TaskField.DATE6, FieldLocation.VAR_DATA, 0, 65535, 85, 0, 0), new FieldItem(TaskField.DATE7, FieldLocation.VAR_DATA, 0, 65535, 86, 0, 0), new FieldItem(TaskField.DATE8, FieldLocation.VAR_DATA, 0, 65535, 87, 0, 0), new FieldItem(TaskField.DATE9, FieldLocation.VAR_DATA, 0, 65535, 88, 0, 0), new FieldItem(TaskField.DATE10, FieldLocation.VAR_DATA, 0, 65535, 89, 0, 0), new FieldItem(TaskField.TEXT11, FieldLocation.VAR_DATA, 0, 65535, 90, 0, 0), new FieldItem(TaskField.TEXT12, FieldLocation.VAR_DATA, 0, 65535, 91, 0, 0), new FieldItem(TaskField.TEXT13, FieldLocation.VAR_DATA, 0, 65535, 92, 0, 0), new FieldItem(TaskField.TEXT14, FieldLocation.VAR_DATA, 0, 65535, 93, 0, 0), new FieldItem(TaskField.TEXT15, FieldLocation.VAR_DATA, 0, 65535, 94, 0, 0), new FieldItem(TaskField.TEXT16, FieldLocation.VAR_DATA, 0, 65535, 95, 0, 0), new FieldItem(TaskField.TEXT17, FieldLocation.VAR_DATA, 0, 65535, 96, 0, 0), new FieldItem(TaskField.TEXT18, FieldLocation.VAR_DATA, 0, 65535, 97, 0, 0), new FieldItem(TaskField.TEXT19, FieldLocation.VAR_DATA, 0, 65535, 98, 0, 0), new FieldItem(TaskField.TEXT20, FieldLocation.VAR_DATA, 0, 65535, 99, 0, 0), new FieldItem(TaskField.TEXT21, FieldLocation.VAR_DATA, 0, 65535, 100, 0, 0), new FieldItem(TaskField.TEXT22, FieldLocation.VAR_DATA, 0, 65535, 101, 0, 0), new FieldItem(TaskField.TEXT23, FieldLocation.VAR_DATA, 0, 65535, 102, 0, 0), new FieldItem(TaskField.TEXT24, FieldLocation.VAR_DATA, 0, 65535, 103, 0, 0), new FieldItem(TaskField.TEXT25, FieldLocation.VAR_DATA, 0, 65535, 104, 0, 0), new FieldItem(TaskField.TEXT26, FieldLocation.VAR_DATA, 0, 65535, 105, 0, 0), new FieldItem(TaskField.TEXT27, FieldLocation.VAR_DATA, 0, 65535, 106, 0, 0), new FieldItem(TaskField.TEXT28, FieldLocation.VAR_DATA, 0, 65535, 107, 0, 0), new FieldItem(TaskField.TEXT29, FieldLocation.VAR_DATA, 0, 65535, 108, 0, 0), new FieldItem(TaskField.TEXT30, FieldLocation.VAR_DATA, 0, 65535, 109, 0, 0), new FieldItem(TaskField.NUMBER11, FieldLocation.VAR_DATA, 0, 65535, 110, 0, 0), new FieldItem(TaskField.NUMBER12, FieldLocation.VAR_DATA, 0, 65535, 111, 0, 0), new FieldItem(TaskField.NUMBER13, FieldLocation.VAR_DATA, 0, 65535, 112, 0, 0), new FieldItem(TaskField.NUMBER14, FieldLocation.VAR_DATA, 0, 65535, 113, 0, 0), new FieldItem(TaskField.NUMBER15, FieldLocation.VAR_DATA, 0, 65535, 114, 0, 0), new FieldItem(TaskField.NUMBER16, FieldLocation.VAR_DATA, 0, 65535, 115, 0, 0), new FieldItem(TaskField.NUMBER17, FieldLocation.VAR_DATA, 0, 65535, 116, 0, 0), new FieldItem(TaskField.NUMBER18, FieldLocation.VAR_DATA, 0, 65535, 117, 0, 0), new FieldItem(TaskField.NUMBER19, FieldLocation.VAR_DATA, 0, 65535, 118, 0, 0), new FieldItem(TaskField.NUMBER20, FieldLocation.VAR_DATA, 0, 65535, 119, 0, 0), new FieldItem(TaskField.OUTLINE_CODE1_INDEX, FieldLocation.VAR_DATA, 0, 65535, 123, 0, 0), new FieldItem(TaskField.OUTLINE_CODE2_INDEX, FieldLocation.VAR_DATA, 0, 65535, 124, 0, 0), new FieldItem(TaskField.OUTLINE_CODE3_INDEX, FieldLocation.VAR_DATA, 0, 65535, 125, 0, 0), new FieldItem(TaskField.OUTLINE_CODE4_INDEX, FieldLocation.VAR_DATA, 0, 65535, 126, 0, 0), new FieldItem(TaskField.OUTLINE_CODE5_INDEX, FieldLocation.VAR_DATA, 0, 65535, 127, 0, 0), new FieldItem(TaskField.OUTLINE_CODE6_INDEX, FieldLocation.VAR_DATA, 0, 65535, 128, 0, 0), new FieldItem(TaskField.OUTLINE_CODE7_INDEX, FieldLocation.VAR_DATA, 0, 65535, 129, 0, 0), new FieldItem(TaskField.OUTLINE_CODE8_INDEX, FieldLocation.VAR_DATA, 0, 65535, 130, 0, 0), new FieldItem(TaskField.OUTLINE_CODE9_INDEX, FieldLocation.VAR_DATA, 0, 65535, 131, 0, 0), new FieldItem(TaskField.OUTLINE_CODE10_INDEX, FieldLocation.VAR_DATA, 0, 65535, 132, 0, 0), new FieldItem(TaskField.HYPERLINK_DATA, FieldLocation.VAR_DATA, 0, 65535, 133, 0, 0), new FieldItem(TaskField.COST1, FieldLocation.VAR_DATA, 0, 65535, 134, 0, 0), new FieldItem(TaskField.COST2, FieldLocation.VAR_DATA, 0, 65535, 135, 0, 0), new FieldItem(TaskField.COST3, FieldLocation.VAR_DATA, 0, 65535, 136, 0, 0), new FieldItem(TaskField.COST4, FieldLocation.VAR_DATA, 0, 65535, 137, 0, 0), new FieldItem(TaskField.COST5, FieldLocation.VAR_DATA, 0, 65535, 138, 0, 0), new FieldItem(TaskField.COST6, FieldLocation.VAR_DATA, 0, 65535, 139, 0, 0), new FieldItem(TaskField.COST7, FieldLocation.VAR_DATA, 0, 65535, 140, 0, 0), new FieldItem(TaskField.COST8, FieldLocation.VAR_DATA, 0, 65535, 141, 0, 0), new FieldItem(TaskField.COST9, FieldLocation.VAR_DATA, 0, 65535, 142, 0, 0), new FieldItem(TaskField.COST10, FieldLocation.VAR_DATA, 0, 65535, 143, 0, 0), new FieldItem(TaskField.NOTES, FieldLocation.VAR_DATA, 0, 65535, 144, 0, 0), new FieldItem(TaskField.SUBPROJECT_FILE, FieldLocation.VAR_DATA, 0, 65535, 160, 0, 0), new FieldItem(TaskField.ENTERPRISE_DATA, FieldLocation.VAR_DATA, 0, 65535, 163, 0, 0) }; return result; }
class class_name[name] begin[{] method[getDefaultTaskData, return_type[type[FieldItem]], modifier[protected], parameter[]] begin[{] local_variable[type[FieldItem], result] return[member[.result]] end[}] END[}]
annotation[@] identifier[Override] Keyword[protected] identifier[FieldItem] operator[SEP] operator[SEP] identifier[getDefaultTaskData] operator[SEP] operator[SEP] { identifier[FieldItem] operator[SEP] operator[SEP] identifier[result] operator[=] Keyword[new] identifier[FieldItem] operator[SEP] operator[SEP] { Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[UNIQUE_ID] , identifier[FieldLocation] operator[SEP] identifier[FIXED_DATA] , Other[0] , Other[0] , Other[0] , Other[0] , Other[0] operator[SEP] , Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[ID] , identifier[FieldLocation] operator[SEP] identifier[FIXED_DATA] , Other[0] , Other[4] , Other[0] , Other[0] , Other[0] operator[SEP] , Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[EARLY_FINISH] , identifier[FieldLocation] operator[SEP] identifier[FIXED_DATA] , Other[0] , Other[8] , Other[0] , Other[0] , Other[0] operator[SEP] , Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[LATE_START] , identifier[FieldLocation] operator[SEP] identifier[FIXED_DATA] , Other[0] , Other[12] , Other[0] , Other[0] , Other[0] operator[SEP] , Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[STOP] , identifier[FieldLocation] operator[SEP] identifier[FIXED_DATA] , Other[0] , Other[16] , Other[0] , Other[0] , Other[0] operator[SEP] , Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[RESUME] , identifier[FieldLocation] operator[SEP] identifier[FIXED_DATA] , Other[0] , Other[20] , Other[0] , Other[0] , Other[0] operator[SEP] , Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[FREE_SLACK] , identifier[FieldLocation] operator[SEP] identifier[FIXED_DATA] , Other[0] , Other[24] , Other[0] , Other[0] , Other[0] operator[SEP] , Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[START_SLACK] , identifier[FieldLocation] operator[SEP] identifier[FIXED_DATA] , Other[0] , Other[28] , Other[0] , Other[0] , Other[0] operator[SEP] , Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[FINISH_SLACK] , identifier[FieldLocation] operator[SEP] identifier[FIXED_DATA] , Other[0] , Other[32] , Other[0] , Other[0] , Other[0] operator[SEP] , Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[PARENT_TASK_UNIQUE_ID] , identifier[FieldLocation] operator[SEP] identifier[FIXED_DATA] , Other[0] , Other[36] , Other[0] , Other[0] , Other[0] operator[SEP] , Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[OUTLINE_LEVEL] , identifier[FieldLocation] operator[SEP] identifier[FIXED_DATA] , Other[0] , Other[40] , Other[0] , Other[0] , Other[0] operator[SEP] , Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[DURATION_UNITS] , identifier[FieldLocation] operator[SEP] identifier[FIXED_DATA] , Other[0] , Other[58] , Other[0] , Other[0] , Other[0] operator[SEP] , Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[DURATION] , identifier[FieldLocation] operator[SEP] identifier[FIXED_DATA] , Other[0] , Other[60] , Other[0] , Other[0] , Other[0] operator[SEP] , Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[ACTUAL_DURATION_UNITS] , identifier[FieldLocation] operator[SEP] identifier[FIXED_DATA] , Other[0] , Other[64] , Other[0] , Other[0] , Other[0] operator[SEP] , Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[ACTUAL_DURATION] , identifier[FieldLocation] operator[SEP] identifier[FIXED_DATA] , Other[0] , Other[66] , Other[0] , Other[0] , Other[0] operator[SEP] , Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[REMAINING_DURATION] , identifier[FieldLocation] operator[SEP] identifier[FIXED_DATA] , Other[0] , Other[70] , Other[0] , Other[0] , Other[0] operator[SEP] , Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[BASELINE_DURATION] , identifier[FieldLocation] operator[SEP] identifier[FIXED_DATA] , Other[0] , Other[74] , Other[0] , Other[0] , Other[0] operator[SEP] , Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[BASELINE_DURATION_UNITS] , identifier[FieldLocation] operator[SEP] identifier[FIXED_DATA] , Other[0] , Other[78] , Other[0] , Other[0] , Other[0] operator[SEP] , Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[CONSTRAINT_TYPE] , identifier[FieldLocation] operator[SEP] identifier[FIXED_DATA] , Other[0] , Other[80] , Other[0] , Other[0] , Other[0] operator[SEP] , Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[LEVELING_DELAY] , identifier[FieldLocation] operator[SEP] identifier[FIXED_DATA] , Other[0] , Other[82] , Other[0] , Other[0] , Other[0] operator[SEP] , Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[LEVELING_DELAY_UNITS] , identifier[FieldLocation] operator[SEP] identifier[FIXED_DATA] , Other[0] , Other[86] , Other[0] , Other[0] , Other[0] operator[SEP] , Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[START] , identifier[FieldLocation] operator[SEP] identifier[FIXED_DATA] , Other[0] , Other[88] , Other[0] , Other[0] , Other[0] operator[SEP] , Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[FINISH] , identifier[FieldLocation] operator[SEP] identifier[FIXED_DATA] , Other[0] , Other[92] , Other[0] , Other[0] , Other[0] operator[SEP] , Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[ACTUAL_START] , identifier[FieldLocation] operator[SEP] identifier[FIXED_DATA] , Other[0] , Other[96] , Other[0] , Other[0] , Other[0] operator[SEP] , Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[ACTUAL_FINISH] , identifier[FieldLocation] operator[SEP] identifier[FIXED_DATA] , Other[0] , Other[100] , Other[0] , Other[0] , Other[0] operator[SEP] , Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[BASELINE_START] , identifier[FieldLocation] operator[SEP] identifier[FIXED_DATA] , Other[0] , Other[104] , Other[0] , Other[0] , Other[0] operator[SEP] , Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[BASELINE_FINISH] , identifier[FieldLocation] operator[SEP] identifier[FIXED_DATA] , Other[0] , Other[108] , Other[0] , Other[0] , Other[0] operator[SEP] , Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[CONSTRAINT_DATE] , identifier[FieldLocation] operator[SEP] identifier[FIXED_DATA] , Other[0] , Other[112] , Other[0] , Other[0] , Other[0] operator[SEP] , Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[RESUME_NO_EARLIER_THAN] , identifier[FieldLocation] operator[SEP] identifier[FIXED_DATA] , Other[0] , Other[116] , Other[0] , Other[0] , Other[0] operator[SEP] , Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[PRIORITY] , identifier[FieldLocation] operator[SEP] identifier[FIXED_DATA] , Other[0] , Other[120] , Other[0] , Other[0] , Other[0] operator[SEP] , Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[PERCENT_COMPLETE] , identifier[FieldLocation] operator[SEP] identifier[FIXED_DATA] , Other[0] , Other[122] , Other[0] , Other[0] , Other[0] operator[SEP] , Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[PERCENT_WORK_COMPLETE] , identifier[FieldLocation] operator[SEP] identifier[FIXED_DATA] , Other[0] , Other[124] , Other[0] , Other[0] , Other[0] operator[SEP] , Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[TYPE] , identifier[FieldLocation] operator[SEP] identifier[FIXED_DATA] , Other[0] , Other[126] , Other[0] , Other[0] , Other[0] operator[SEP] , Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[FIXED_COST_ACCRUAL] , identifier[FieldLocation] operator[SEP] identifier[FIXED_DATA] , Other[0] , Other[128] , Other[0] , Other[0] , Other[0] operator[SEP] , Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[CREATED] , identifier[FieldLocation] operator[SEP] identifier[FIXED_DATA] , Other[0] , Other[130] , Other[0] , Other[0] , Other[0] operator[SEP] , Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[RECURRING] , identifier[FieldLocation] operator[SEP] identifier[FIXED_DATA] , Other[0] , Other[134] , Other[0] , Other[0] , Other[0] operator[SEP] , Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[PRELEVELED_START] , identifier[FieldLocation] operator[SEP] identifier[FIXED_DATA] , Other[0] , Other[136] , Other[0] , Other[0] , Other[0] operator[SEP] , Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[PRELEVELED_FINISH] , identifier[FieldLocation] operator[SEP] identifier[FIXED_DATA] , Other[0] , Other[140] , Other[0] , Other[0] , Other[0] operator[SEP] , Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[EARLY_START] , identifier[FieldLocation] operator[SEP] identifier[FIXED_DATA] , Other[0] , Other[148] , Other[0] , Other[0] , Other[0] operator[SEP] , Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[LATE_FINISH] , identifier[FieldLocation] operator[SEP] identifier[FIXED_DATA] , Other[0] , Other[152] , Other[0] , Other[0] , Other[0] operator[SEP] , Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[SUMMARY_PROGRESS] , identifier[FieldLocation] operator[SEP] identifier[FIXED_DATA] , Other[0] , Other[156] , Other[0] , Other[0] , Other[0] operator[SEP] , Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[CALENDAR_UNIQUE_ID] , identifier[FieldLocation] operator[SEP] identifier[FIXED_DATA] , Other[0] , Other[160] , Other[0] , Other[0] , Other[0] operator[SEP] , Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[DEADLINE] , identifier[FieldLocation] operator[SEP] identifier[FIXED_DATA] , Other[0] , Other[164] , Other[0] , Other[0] , Other[0] operator[SEP] , Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[WORK] , identifier[FieldLocation] operator[SEP] identifier[FIXED_DATA] , Other[0] , Other[168] , Other[0] , Other[0] , Other[0] operator[SEP] , Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[BASELINE_WORK] , identifier[FieldLocation] operator[SEP] identifier[FIXED_DATA] , Other[0] , Other[176] , Other[0] , Other[0] , Other[0] operator[SEP] , Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[ACTUAL_WORK] , identifier[FieldLocation] operator[SEP] identifier[FIXED_DATA] , Other[0] , Other[184] , Other[0] , Other[0] , Other[0] operator[SEP] , Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[REMAINING_WORK] , identifier[FieldLocation] operator[SEP] identifier[FIXED_DATA] , Other[0] , Other[192] , Other[0] , Other[0] , Other[0] operator[SEP] , Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[COST] , identifier[FieldLocation] operator[SEP] identifier[FIXED_DATA] , Other[0] , Other[200] , Other[0] , Other[0] , Other[0] operator[SEP] , Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[FIXED_COST] , identifier[FieldLocation] operator[SEP] identifier[FIXED_DATA] , Other[0] , Other[208] , Other[0] , Other[0] , Other[0] operator[SEP] , Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[ACTUAL_COST] , identifier[FieldLocation] operator[SEP] identifier[FIXED_DATA] , Other[0] , Other[216] , Other[0] , Other[0] , Other[0] operator[SEP] , Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[REMAINING_COST] , identifier[FieldLocation] operator[SEP] identifier[FIXED_DATA] , Other[0] , Other[224] , Other[0] , Other[0] , Other[0] operator[SEP] , Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[BASELINE_COST] , identifier[FieldLocation] operator[SEP] identifier[FIXED_DATA] , Other[0] , Other[232] , Other[0] , Other[0] , Other[0] operator[SEP] , Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[BASELINE_FIXED_COST] , identifier[FieldLocation] operator[SEP] identifier[FIXED_DATA] , Other[0] , Other[256] , Other[0] , Other[0] , Other[0] operator[SEP] , Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[ACTUAL_OVERTIME_WORK] , identifier[FieldLocation] operator[SEP] identifier[VAR_DATA] , Other[0] , Other[65535] , Other[3] , Other[0] , Other[0] operator[SEP] , Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[REMAINING_OVERTIME_WORK] , identifier[FieldLocation] operator[SEP] identifier[VAR_DATA] , Other[0] , Other[65535] , Other[4] , Other[0] , Other[0] operator[SEP] , Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[OVERTIME_COST] , identifier[FieldLocation] operator[SEP] identifier[VAR_DATA] , Other[0] , Other[65535] , Other[5] , Other[0] , Other[0] operator[SEP] , Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[ACTUAL_OVERTIME_COST] , identifier[FieldLocation] operator[SEP] identifier[VAR_DATA] , Other[0] , Other[65535] , Other[6] , Other[0] , Other[0] operator[SEP] , Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[REMAINING_OVERTIME_COST] , identifier[FieldLocation] operator[SEP] identifier[VAR_DATA] , Other[0] , Other[65535] , Other[7] , Other[0] , Other[0] operator[SEP] , Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[SUBPROJECT_TASKS_UNIQUEID_OFFSET] , identifier[FieldLocation] operator[SEP] identifier[VAR_DATA] , Other[0] , Other[65535] , Other[8] , Other[0] , Other[0] operator[SEP] , Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[SUBPROJECT_UNIQUE_TASK_ID] , identifier[FieldLocation] operator[SEP] identifier[VAR_DATA] , Other[0] , Other[65535] , Other[9] , Other[0] , Other[0] operator[SEP] , Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[WBS] , identifier[FieldLocation] operator[SEP] identifier[VAR_DATA] , Other[0] , Other[65535] , Other[10] , Other[0] , Other[0] operator[SEP] , Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[NAME] , identifier[FieldLocation] operator[SEP] identifier[VAR_DATA] , Other[0] , Other[65535] , Other[11] , Other[0] , Other[0] operator[SEP] , Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[CONTACT] , identifier[FieldLocation] operator[SEP] identifier[VAR_DATA] , Other[0] , Other[65535] , Other[12] , Other[0] , Other[0] operator[SEP] , Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[TEXT1] , identifier[FieldLocation] operator[SEP] identifier[VAR_DATA] , Other[0] , Other[65535] , Other[14] , Other[0] , Other[0] operator[SEP] , Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[TEXT2] , identifier[FieldLocation] operator[SEP] identifier[VAR_DATA] , Other[0] , Other[65535] , Other[15] , Other[0] , Other[0] operator[SEP] , Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[TEXT3] , identifier[FieldLocation] operator[SEP] identifier[VAR_DATA] , Other[0] , Other[65535] , Other[16] , Other[0] , Other[0] operator[SEP] , Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[TEXT4] , identifier[FieldLocation] operator[SEP] identifier[VAR_DATA] , Other[0] , Other[65535] , Other[17] , Other[0] , Other[0] operator[SEP] , Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[TEXT5] , identifier[FieldLocation] operator[SEP] identifier[VAR_DATA] , Other[0] , Other[65535] , Other[18] , Other[0] , Other[0] operator[SEP] , Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[TEXT6] , identifier[FieldLocation] operator[SEP] identifier[VAR_DATA] , Other[0] , Other[65535] , Other[19] , Other[0] , Other[0] operator[SEP] , Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[TEXT7] , identifier[FieldLocation] operator[SEP] identifier[VAR_DATA] , Other[0] , Other[65535] , Other[20] , Other[0] , Other[0] operator[SEP] , Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[TEXT8] , identifier[FieldLocation] operator[SEP] identifier[VAR_DATA] , Other[0] , Other[65535] , Other[21] , Other[0] , Other[0] operator[SEP] , Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[TEXT9] , identifier[FieldLocation] operator[SEP] identifier[VAR_DATA] , Other[0] , Other[65535] , Other[22] , Other[0] , Other[0] operator[SEP] , Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[TEXT10] , identifier[FieldLocation] operator[SEP] identifier[VAR_DATA] , Other[0] , Other[65535] , Other[23] , Other[0] , Other[0] operator[SEP] , Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[START1] , identifier[FieldLocation] operator[SEP] identifier[VAR_DATA] , Other[0] , Other[65535] , Other[24] , Other[0] , Other[0] operator[SEP] , Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[FINISH1] , identifier[FieldLocation] operator[SEP] identifier[VAR_DATA] , Other[0] , Other[65535] , Other[25] , Other[0] , Other[0] operator[SEP] , Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[START2] , identifier[FieldLocation] operator[SEP] identifier[VAR_DATA] , Other[0] , Other[65535] , Other[26] , Other[0] , Other[0] operator[SEP] , Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[FINISH2] , identifier[FieldLocation] operator[SEP] identifier[VAR_DATA] , Other[0] , Other[65535] , Other[27] , Other[0] , Other[0] operator[SEP] , Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[START3] , identifier[FieldLocation] operator[SEP] identifier[VAR_DATA] , Other[0] , Other[65535] , Other[28] , Other[0] , Other[0] operator[SEP] , Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[FINISH3] , identifier[FieldLocation] operator[SEP] identifier[VAR_DATA] , Other[0] , Other[65535] , Other[29] , Other[0] , Other[0] operator[SEP] , Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[START4] , identifier[FieldLocation] operator[SEP] identifier[VAR_DATA] , Other[0] , Other[65535] , Other[30] , Other[0] , Other[0] operator[SEP] , Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[FINISH4] , identifier[FieldLocation] operator[SEP] identifier[VAR_DATA] , Other[0] , Other[65535] , Other[31] , Other[0] , Other[0] operator[SEP] , Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[START5] , identifier[FieldLocation] operator[SEP] identifier[VAR_DATA] , Other[0] , Other[65535] , Other[32] , Other[0] , Other[0] operator[SEP] , Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[FINISH5] , identifier[FieldLocation] operator[SEP] identifier[VAR_DATA] , Other[0] , Other[65535] , Other[33] , Other[0] , Other[0] operator[SEP] , Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[START6] , identifier[FieldLocation] operator[SEP] identifier[VAR_DATA] , Other[0] , Other[65535] , Other[34] , Other[0] , Other[0] operator[SEP] , Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[FINISH6] , identifier[FieldLocation] operator[SEP] identifier[VAR_DATA] , Other[0] , Other[65535] , Other[35] , Other[0] , Other[0] operator[SEP] , Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[START7] , identifier[FieldLocation] operator[SEP] identifier[VAR_DATA] , Other[0] , Other[65535] , Other[36] , Other[0] , Other[0] operator[SEP] , Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[FINISH7] , identifier[FieldLocation] operator[SEP] identifier[VAR_DATA] , Other[0] , Other[65535] , Other[37] , Other[0] , Other[0] operator[SEP] , Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[START8] , identifier[FieldLocation] operator[SEP] identifier[VAR_DATA] , Other[0] , Other[65535] , Other[38] , Other[0] , Other[0] operator[SEP] , Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[FINISH8] , identifier[FieldLocation] operator[SEP] identifier[VAR_DATA] , Other[0] , Other[65535] , Other[39] , Other[0] , Other[0] operator[SEP] , Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[START9] , identifier[FieldLocation] operator[SEP] identifier[VAR_DATA] , Other[0] , Other[65535] , Other[40] , Other[0] , Other[0] operator[SEP] , Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[FINISH9] , identifier[FieldLocation] operator[SEP] identifier[VAR_DATA] , Other[0] , Other[65535] , Other[41] , Other[0] , Other[0] operator[SEP] , Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[START10] , identifier[FieldLocation] operator[SEP] identifier[VAR_DATA] , Other[0] , Other[65535] , Other[42] , Other[0] , Other[0] operator[SEP] , Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[FINISH10] , identifier[FieldLocation] operator[SEP] identifier[VAR_DATA] , Other[0] , Other[65535] , Other[43] , Other[0] , Other[0] operator[SEP] , Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[NUMBER1] , identifier[FieldLocation] operator[SEP] identifier[VAR_DATA] , Other[0] , Other[65535] , Other[45] , Other[0] , Other[0] operator[SEP] , Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[NUMBER2] , identifier[FieldLocation] operator[SEP] identifier[VAR_DATA] , Other[0] , Other[65535] , Other[46] , Other[0] , Other[0] operator[SEP] , Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[NUMBER3] , identifier[FieldLocation] operator[SEP] identifier[VAR_DATA] , Other[0] , Other[65535] , Other[47] , Other[0] , Other[0] operator[SEP] , Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[NUMBER4] , identifier[FieldLocation] operator[SEP] identifier[VAR_DATA] , Other[0] , Other[65535] , Other[48] , Other[0] , Other[0] operator[SEP] , Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[NUMBER5] , identifier[FieldLocation] operator[SEP] identifier[VAR_DATA] , Other[0] , Other[65535] , Other[49] , Other[0] , Other[0] operator[SEP] , Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[NUMBER6] , identifier[FieldLocation] operator[SEP] identifier[VAR_DATA] , Other[0] , Other[65535] , Other[50] , Other[0] , Other[0] operator[SEP] , Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[NUMBER7] , identifier[FieldLocation] operator[SEP] identifier[VAR_DATA] , Other[0] , Other[65535] , Other[51] , Other[0] , Other[0] operator[SEP] , Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[NUMBER8] , identifier[FieldLocation] operator[SEP] identifier[VAR_DATA] , Other[0] , Other[65535] , Other[52] , Other[0] , Other[0] operator[SEP] , Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[NUMBER9] , identifier[FieldLocation] operator[SEP] identifier[VAR_DATA] , Other[0] , Other[65535] , Other[53] , Other[0] , Other[0] operator[SEP] , Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[NUMBER10] , identifier[FieldLocation] operator[SEP] identifier[VAR_DATA] , Other[0] , Other[65535] , Other[54] , Other[0] , Other[0] operator[SEP] , Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[DURATION1] , identifier[FieldLocation] operator[SEP] identifier[VAR_DATA] , Other[0] , Other[65535] , Other[55] , Other[0] , Other[0] operator[SEP] , Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[DURATION1_UNITS] , identifier[FieldLocation] operator[SEP] identifier[VAR_DATA] , Other[0] , Other[65535] , Other[56] , Other[0] , Other[0] operator[SEP] , Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[DURATION2] , identifier[FieldLocation] operator[SEP] identifier[VAR_DATA] , Other[0] , Other[65535] , Other[57] , Other[0] , Other[0] operator[SEP] , Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[DURATION2_UNITS] , identifier[FieldLocation] operator[SEP] identifier[VAR_DATA] , Other[0] , Other[65535] , Other[58] , Other[0] , Other[0] operator[SEP] , Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[DURATION3] , identifier[FieldLocation] operator[SEP] identifier[VAR_DATA] , Other[0] , Other[65535] , Other[59] , Other[0] , Other[0] operator[SEP] , Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[DURATION3_UNITS] , identifier[FieldLocation] operator[SEP] identifier[VAR_DATA] , Other[0] , Other[65535] , Other[60] , Other[0] , Other[0] operator[SEP] , Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[DURATION4] , identifier[FieldLocation] operator[SEP] identifier[VAR_DATA] , Other[0] , Other[65535] , Other[61] , Other[0] , Other[0] operator[SEP] , Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[DURATION4_UNITS] , identifier[FieldLocation] operator[SEP] identifier[VAR_DATA] , Other[0] , Other[65535] , Other[62] , Other[0] , Other[0] operator[SEP] , Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[DURATION5] , identifier[FieldLocation] operator[SEP] identifier[VAR_DATA] , Other[0] , Other[65535] , Other[63] , Other[0] , Other[0] operator[SEP] , Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[DURATION5_UNITS] , identifier[FieldLocation] operator[SEP] identifier[VAR_DATA] , Other[0] , Other[65535] , Other[64] , Other[0] , Other[0] operator[SEP] , Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[DURATION6] , identifier[FieldLocation] operator[SEP] identifier[VAR_DATA] , Other[0] , Other[65535] , Other[65] , Other[0] , Other[0] operator[SEP] , Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[DURATION6_UNITS] , identifier[FieldLocation] operator[SEP] identifier[VAR_DATA] , Other[0] , Other[65535] , Other[66] , Other[0] , Other[0] operator[SEP] , Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[DURATION7] , identifier[FieldLocation] operator[SEP] identifier[VAR_DATA] , Other[0] , Other[65535] , Other[67] , Other[0] , Other[0] operator[SEP] , Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[DURATION7_UNITS] , identifier[FieldLocation] operator[SEP] identifier[VAR_DATA] , Other[0] , Other[65535] , Other[68] , Other[0] , Other[0] operator[SEP] , Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[DURATION8] , identifier[FieldLocation] operator[SEP] identifier[VAR_DATA] , Other[0] , Other[65535] , Other[69] , Other[0] , Other[0] operator[SEP] , Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[DURATION8_UNITS] , identifier[FieldLocation] operator[SEP] identifier[VAR_DATA] , Other[0] , Other[65535] , Other[70] , Other[0] , Other[0] operator[SEP] , Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[DURATION9] , identifier[FieldLocation] operator[SEP] identifier[VAR_DATA] , Other[0] , Other[65535] , Other[71] , Other[0] , Other[0] operator[SEP] , Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[DURATION9_UNITS] , identifier[FieldLocation] operator[SEP] identifier[VAR_DATA] , Other[0] , Other[65535] , Other[72] , Other[0] , Other[0] operator[SEP] , Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[DURATION10] , identifier[FieldLocation] operator[SEP] identifier[VAR_DATA] , Other[0] , Other[65535] , Other[73] , Other[0] , Other[0] operator[SEP] , Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[DURATION10_UNITS] , identifier[FieldLocation] operator[SEP] identifier[VAR_DATA] , Other[0] , Other[65535] , Other[74] , Other[0] , Other[0] operator[SEP] , Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[RECURRING_DATA] , identifier[FieldLocation] operator[SEP] identifier[VAR_DATA] , Other[0] , Other[65535] , Other[76] , Other[0] , Other[0] operator[SEP] , Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[SUBPROJECT_TASK_ID] , identifier[FieldLocation] operator[SEP] identifier[VAR_DATA] , Other[0] , Other[65535] , Other[79] , Other[0] , Other[0] operator[SEP] , Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[DATE1] , identifier[FieldLocation] operator[SEP] identifier[VAR_DATA] , Other[0] , Other[65535] , Other[80] , Other[0] , Other[0] operator[SEP] , Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[DATE2] , identifier[FieldLocation] operator[SEP] identifier[VAR_DATA] , Other[0] , Other[65535] , Other[81] , Other[0] , Other[0] operator[SEP] , Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[DATE3] , identifier[FieldLocation] operator[SEP] identifier[VAR_DATA] , Other[0] , Other[65535] , Other[82] , Other[0] , Other[0] operator[SEP] , Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[DATE4] , identifier[FieldLocation] operator[SEP] identifier[VAR_DATA] , Other[0] , Other[65535] , Other[83] , Other[0] , Other[0] operator[SEP] , Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[DATE5] , identifier[FieldLocation] operator[SEP] identifier[VAR_DATA] , Other[0] , Other[65535] , Other[84] , Other[0] , Other[0] operator[SEP] , Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[DATE6] , identifier[FieldLocation] operator[SEP] identifier[VAR_DATA] , Other[0] , Other[65535] , Other[85] , Other[0] , Other[0] operator[SEP] , Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[DATE7] , identifier[FieldLocation] operator[SEP] identifier[VAR_DATA] , Other[0] , Other[65535] , Other[86] , Other[0] , Other[0] operator[SEP] , Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[DATE8] , identifier[FieldLocation] operator[SEP] identifier[VAR_DATA] , Other[0] , Other[65535] , Other[87] , Other[0] , Other[0] operator[SEP] , Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[DATE9] , identifier[FieldLocation] operator[SEP] identifier[VAR_DATA] , Other[0] , Other[65535] , Other[88] , Other[0] , Other[0] operator[SEP] , Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[DATE10] , identifier[FieldLocation] operator[SEP] identifier[VAR_DATA] , Other[0] , Other[65535] , Other[89] , Other[0] , Other[0] operator[SEP] , Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[TEXT11] , identifier[FieldLocation] operator[SEP] identifier[VAR_DATA] , Other[0] , Other[65535] , Other[90] , Other[0] , Other[0] operator[SEP] , Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[TEXT12] , identifier[FieldLocation] operator[SEP] identifier[VAR_DATA] , Other[0] , Other[65535] , Other[91] , Other[0] , Other[0] operator[SEP] , Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[TEXT13] , identifier[FieldLocation] operator[SEP] identifier[VAR_DATA] , Other[0] , Other[65535] , Other[92] , Other[0] , Other[0] operator[SEP] , Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[TEXT14] , identifier[FieldLocation] operator[SEP] identifier[VAR_DATA] , Other[0] , Other[65535] , Other[93] , Other[0] , Other[0] operator[SEP] , Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[TEXT15] , identifier[FieldLocation] operator[SEP] identifier[VAR_DATA] , Other[0] , Other[65535] , Other[94] , Other[0] , Other[0] operator[SEP] , Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[TEXT16] , identifier[FieldLocation] operator[SEP] identifier[VAR_DATA] , Other[0] , Other[65535] , Other[95] , Other[0] , Other[0] operator[SEP] , Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[TEXT17] , identifier[FieldLocation] operator[SEP] identifier[VAR_DATA] , Other[0] , Other[65535] , Other[96] , Other[0] , Other[0] operator[SEP] , Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[TEXT18] , identifier[FieldLocation] operator[SEP] identifier[VAR_DATA] , Other[0] , Other[65535] , Other[97] , Other[0] , Other[0] operator[SEP] , Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[TEXT19] , identifier[FieldLocation] operator[SEP] identifier[VAR_DATA] , Other[0] , Other[65535] , Other[98] , Other[0] , Other[0] operator[SEP] , Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[TEXT20] , identifier[FieldLocation] operator[SEP] identifier[VAR_DATA] , Other[0] , Other[65535] , Other[99] , Other[0] , Other[0] operator[SEP] , Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[TEXT21] , identifier[FieldLocation] operator[SEP] identifier[VAR_DATA] , Other[0] , Other[65535] , Other[100] , Other[0] , Other[0] operator[SEP] , Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[TEXT22] , identifier[FieldLocation] operator[SEP] identifier[VAR_DATA] , Other[0] , Other[65535] , Other[101] , Other[0] , Other[0] operator[SEP] , Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[TEXT23] , identifier[FieldLocation] operator[SEP] identifier[VAR_DATA] , Other[0] , Other[65535] , Other[102] , Other[0] , Other[0] operator[SEP] , Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[TEXT24] , identifier[FieldLocation] operator[SEP] identifier[VAR_DATA] , Other[0] , Other[65535] , Other[103] , Other[0] , Other[0] operator[SEP] , Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[TEXT25] , identifier[FieldLocation] operator[SEP] identifier[VAR_DATA] , Other[0] , Other[65535] , Other[104] , Other[0] , Other[0] operator[SEP] , Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[TEXT26] , identifier[FieldLocation] operator[SEP] identifier[VAR_DATA] , Other[0] , Other[65535] , Other[105] , Other[0] , Other[0] operator[SEP] , Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[TEXT27] , identifier[FieldLocation] operator[SEP] identifier[VAR_DATA] , Other[0] , Other[65535] , Other[106] , Other[0] , Other[0] operator[SEP] , Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[TEXT28] , identifier[FieldLocation] operator[SEP] identifier[VAR_DATA] , Other[0] , Other[65535] , Other[107] , Other[0] , Other[0] operator[SEP] , Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[TEXT29] , identifier[FieldLocation] operator[SEP] identifier[VAR_DATA] , Other[0] , Other[65535] , Other[108] , Other[0] , Other[0] operator[SEP] , Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[TEXT30] , identifier[FieldLocation] operator[SEP] identifier[VAR_DATA] , Other[0] , Other[65535] , Other[109] , Other[0] , Other[0] operator[SEP] , Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[NUMBER11] , identifier[FieldLocation] operator[SEP] identifier[VAR_DATA] , Other[0] , Other[65535] , Other[110] , Other[0] , Other[0] operator[SEP] , Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[NUMBER12] , identifier[FieldLocation] operator[SEP] identifier[VAR_DATA] , Other[0] , Other[65535] , Other[111] , Other[0] , Other[0] operator[SEP] , Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[NUMBER13] , identifier[FieldLocation] operator[SEP] identifier[VAR_DATA] , Other[0] , Other[65535] , Other[112] , Other[0] , Other[0] operator[SEP] , Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[NUMBER14] , identifier[FieldLocation] operator[SEP] identifier[VAR_DATA] , Other[0] , Other[65535] , Other[113] , Other[0] , Other[0] operator[SEP] , Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[NUMBER15] , identifier[FieldLocation] operator[SEP] identifier[VAR_DATA] , Other[0] , Other[65535] , Other[114] , Other[0] , Other[0] operator[SEP] , Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[NUMBER16] , identifier[FieldLocation] operator[SEP] identifier[VAR_DATA] , Other[0] , Other[65535] , Other[115] , Other[0] , Other[0] operator[SEP] , Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[NUMBER17] , identifier[FieldLocation] operator[SEP] identifier[VAR_DATA] , Other[0] , Other[65535] , Other[116] , Other[0] , Other[0] operator[SEP] , Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[NUMBER18] , identifier[FieldLocation] operator[SEP] identifier[VAR_DATA] , Other[0] , Other[65535] , Other[117] , Other[0] , Other[0] operator[SEP] , Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[NUMBER19] , identifier[FieldLocation] operator[SEP] identifier[VAR_DATA] , Other[0] , Other[65535] , Other[118] , Other[0] , Other[0] operator[SEP] , Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[NUMBER20] , identifier[FieldLocation] operator[SEP] identifier[VAR_DATA] , Other[0] , Other[65535] , Other[119] , Other[0] , Other[0] operator[SEP] , Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[OUTLINE_CODE1_INDEX] , identifier[FieldLocation] operator[SEP] identifier[VAR_DATA] , Other[0] , Other[65535] , Other[123] , Other[0] , Other[0] operator[SEP] , Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[OUTLINE_CODE2_INDEX] , identifier[FieldLocation] operator[SEP] identifier[VAR_DATA] , Other[0] , Other[65535] , Other[124] , Other[0] , Other[0] operator[SEP] , Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[OUTLINE_CODE3_INDEX] , identifier[FieldLocation] operator[SEP] identifier[VAR_DATA] , Other[0] , Other[65535] , Other[125] , Other[0] , Other[0] operator[SEP] , Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[OUTLINE_CODE4_INDEX] , identifier[FieldLocation] operator[SEP] identifier[VAR_DATA] , Other[0] , Other[65535] , Other[126] , Other[0] , Other[0] operator[SEP] , Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[OUTLINE_CODE5_INDEX] , identifier[FieldLocation] operator[SEP] identifier[VAR_DATA] , Other[0] , Other[65535] , Other[127] , Other[0] , Other[0] operator[SEP] , Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[OUTLINE_CODE6_INDEX] , identifier[FieldLocation] operator[SEP] identifier[VAR_DATA] , Other[0] , Other[65535] , Other[128] , Other[0] , Other[0] operator[SEP] , Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[OUTLINE_CODE7_INDEX] , identifier[FieldLocation] operator[SEP] identifier[VAR_DATA] , Other[0] , Other[65535] , Other[129] , Other[0] , Other[0] operator[SEP] , Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[OUTLINE_CODE8_INDEX] , identifier[FieldLocation] operator[SEP] identifier[VAR_DATA] , Other[0] , Other[65535] , Other[130] , Other[0] , Other[0] operator[SEP] , Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[OUTLINE_CODE9_INDEX] , identifier[FieldLocation] operator[SEP] identifier[VAR_DATA] , Other[0] , Other[65535] , Other[131] , Other[0] , Other[0] operator[SEP] , Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[OUTLINE_CODE10_INDEX] , identifier[FieldLocation] operator[SEP] identifier[VAR_DATA] , Other[0] , Other[65535] , Other[132] , Other[0] , Other[0] operator[SEP] , Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[HYPERLINK_DATA] , identifier[FieldLocation] operator[SEP] identifier[VAR_DATA] , Other[0] , Other[65535] , Other[133] , Other[0] , Other[0] operator[SEP] , Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[COST1] , identifier[FieldLocation] operator[SEP] identifier[VAR_DATA] , Other[0] , Other[65535] , Other[134] , Other[0] , Other[0] operator[SEP] , Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[COST2] , identifier[FieldLocation] operator[SEP] identifier[VAR_DATA] , Other[0] , Other[65535] , Other[135] , Other[0] , Other[0] operator[SEP] , Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[COST3] , identifier[FieldLocation] operator[SEP] identifier[VAR_DATA] , Other[0] , Other[65535] , Other[136] , Other[0] , Other[0] operator[SEP] , Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[COST4] , identifier[FieldLocation] operator[SEP] identifier[VAR_DATA] , Other[0] , Other[65535] , Other[137] , Other[0] , Other[0] operator[SEP] , Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[COST5] , identifier[FieldLocation] operator[SEP] identifier[VAR_DATA] , Other[0] , Other[65535] , Other[138] , Other[0] , Other[0] operator[SEP] , Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[COST6] , identifier[FieldLocation] operator[SEP] identifier[VAR_DATA] , Other[0] , Other[65535] , Other[139] , Other[0] , Other[0] operator[SEP] , Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[COST7] , identifier[FieldLocation] operator[SEP] identifier[VAR_DATA] , Other[0] , Other[65535] , Other[140] , Other[0] , Other[0] operator[SEP] , Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[COST8] , identifier[FieldLocation] operator[SEP] identifier[VAR_DATA] , Other[0] , Other[65535] , Other[141] , Other[0] , Other[0] operator[SEP] , Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[COST9] , identifier[FieldLocation] operator[SEP] identifier[VAR_DATA] , Other[0] , Other[65535] , Other[142] , Other[0] , Other[0] operator[SEP] , Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[COST10] , identifier[FieldLocation] operator[SEP] identifier[VAR_DATA] , Other[0] , Other[65535] , Other[143] , Other[0] , Other[0] operator[SEP] , Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[NOTES] , identifier[FieldLocation] operator[SEP] identifier[VAR_DATA] , Other[0] , Other[65535] , Other[144] , Other[0] , Other[0] operator[SEP] , Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[SUBPROJECT_FILE] , identifier[FieldLocation] operator[SEP] identifier[VAR_DATA] , Other[0] , Other[65535] , Other[160] , Other[0] , Other[0] operator[SEP] , Keyword[new] identifier[FieldItem] operator[SEP] identifier[TaskField] operator[SEP] identifier[ENTERPRISE_DATA] , identifier[FieldLocation] operator[SEP] identifier[VAR_DATA] , Other[0] , Other[65535] , Other[163] , Other[0] , Other[0] operator[SEP] } operator[SEP] Keyword[return] identifier[result] operator[SEP] }
public void extendBound(int i) { if (i < 0 || i >= dimension) { throw new IllegalArgumentException("Invalid bound index: " + i); } extendBound[i] = true; lowerBound[i] = precisionUnit[i] * (Math.floor(originalLowerBound[i] / precisionUnit[i])); upperBound[i] = precisionUnit[i] * (Math.ceil(originalUpperBound[i] / precisionUnit[i])); }
class class_name[name] begin[{] method[extendBound, return_type[void], modifier[public], parameter[i]] begin[{] if[binary_operation[binary_operation[member[.i], <, literal[0]], ||, binary_operation[member[.i], >=, member[.dimension]]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="Invalid bound index: "), operandr=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=+)], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=IllegalArgumentException, sub_type=None)), label=None) else begin[{] None end[}] assign[member[.extendBound], literal[true]] assign[member[.lowerBound], binary_operation[member[.precisionUnit], *, call[Math.floor, parameter[binary_operation[member[.originalLowerBound], /, member[.precisionUnit]]]]]] assign[member[.upperBound], binary_operation[member[.precisionUnit], *, call[Math.ceil, parameter[binary_operation[member[.originalUpperBound], /, member[.precisionUnit]]]]]] end[}] END[}]
Keyword[public] Keyword[void] identifier[extendBound] operator[SEP] Keyword[int] identifier[i] operator[SEP] { Keyword[if] operator[SEP] identifier[i] operator[<] Other[0] operator[||] identifier[i] operator[>=] identifier[dimension] operator[SEP] { Keyword[throw] Keyword[new] identifier[IllegalArgumentException] operator[SEP] literal[String] operator[+] identifier[i] operator[SEP] operator[SEP] } identifier[extendBound] operator[SEP] identifier[i] operator[SEP] operator[=] literal[boolean] operator[SEP] identifier[lowerBound] operator[SEP] identifier[i] operator[SEP] operator[=] identifier[precisionUnit] operator[SEP] identifier[i] operator[SEP] operator[*] operator[SEP] identifier[Math] operator[SEP] identifier[floor] operator[SEP] identifier[originalLowerBound] operator[SEP] identifier[i] operator[SEP] operator[/] identifier[precisionUnit] operator[SEP] identifier[i] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[upperBound] operator[SEP] identifier[i] operator[SEP] operator[=] identifier[precisionUnit] operator[SEP] identifier[i] operator[SEP] operator[*] operator[SEP] identifier[Math] operator[SEP] identifier[ceil] operator[SEP] identifier[originalUpperBound] operator[SEP] identifier[i] operator[SEP] operator[/] identifier[precisionUnit] operator[SEP] identifier[i] operator[SEP] operator[SEP] operator[SEP] operator[SEP] }
public Object setObjectValue(StringToObjectConverter pConverter, Object pMap, String pKey, Object pValue) throws IllegalAccessException, InvocationTargetException { Map<Object,Object> map = (Map<Object,Object>) pMap; Object oldValue = null; Object oldKey = pKey; for (Map.Entry entry : map.entrySet()) { // We dont access the map via a lookup since the key // are potentially object but we have to deal with string // representations if(pKey.equals(entry.getKey().toString())) { oldValue = entry.getValue(); oldKey = entry.getKey(); break; } } Object value = oldValue != null ? pConverter.prepareValue(oldValue.getClass().getName(), pValue) : pValue; map.put(oldKey,value); return oldValue; }
class class_name[name] begin[{] method[setObjectValue, return_type[type[Object]], modifier[public], parameter[pConverter, pMap, pKey, pValue]] begin[{] local_variable[type[Map], map] local_variable[type[Object], oldValue] local_variable[type[Object], oldKey] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=MethodInvocation(arguments=[MethodInvocation(arguments=[], member=getKey, postfix_operators=[], prefix_operators=[], qualifier=entry, selectors=[MethodInvocation(arguments=[], member=toString, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)], type_arguments=None)], member=equals, postfix_operators=[], prefix_operators=[], qualifier=pKey, selectors=[], type_arguments=None), else_statement=None, label=None, then_statement=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=oldValue, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MethodInvocation(arguments=[], member=getValue, postfix_operators=[], prefix_operators=[], qualifier=entry, selectors=[], type_arguments=None)), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=oldKey, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MethodInvocation(arguments=[], member=getKey, postfix_operators=[], prefix_operators=[], qualifier=entry, selectors=[], type_arguments=None)), label=None), BreakStatement(goto=None, label=None)]))]), control=EnhancedForControl(iterable=MethodInvocation(arguments=[], member=entrySet, postfix_operators=[], prefix_operators=[], qualifier=map, selectors=[], type_arguments=None), var=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=None, name=entry)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=Map, sub_type=ReferenceType(arguments=None, dimensions=None, name=Entry, sub_type=None)))), label=None) local_variable[type[Object], value] call[map.put, parameter[member[.oldKey], member[.value]]] return[member[.oldValue]] end[}] END[}]
Keyword[public] identifier[Object] identifier[setObjectValue] operator[SEP] identifier[StringToObjectConverter] identifier[pConverter] , identifier[Object] identifier[pMap] , identifier[String] identifier[pKey] , identifier[Object] identifier[pValue] operator[SEP] Keyword[throws] identifier[IllegalAccessException] , identifier[InvocationTargetException] { identifier[Map] operator[<] identifier[Object] , identifier[Object] operator[>] identifier[map] operator[=] operator[SEP] identifier[Map] operator[<] identifier[Object] , identifier[Object] operator[>] operator[SEP] identifier[pMap] operator[SEP] identifier[Object] identifier[oldValue] operator[=] Other[null] operator[SEP] identifier[Object] identifier[oldKey] operator[=] identifier[pKey] operator[SEP] Keyword[for] operator[SEP] identifier[Map] operator[SEP] identifier[Entry] identifier[entry] operator[:] identifier[map] operator[SEP] identifier[entrySet] operator[SEP] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[pKey] operator[SEP] identifier[equals] operator[SEP] identifier[entry] operator[SEP] identifier[getKey] operator[SEP] operator[SEP] operator[SEP] identifier[toString] operator[SEP] operator[SEP] operator[SEP] operator[SEP] { identifier[oldValue] operator[=] identifier[entry] operator[SEP] identifier[getValue] operator[SEP] operator[SEP] operator[SEP] identifier[oldKey] operator[=] identifier[entry] operator[SEP] identifier[getKey] operator[SEP] operator[SEP] operator[SEP] Keyword[break] operator[SEP] } } identifier[Object] identifier[value] operator[=] identifier[oldValue] operator[!=] Other[null] operator[?] identifier[pConverter] operator[SEP] identifier[prepareValue] operator[SEP] identifier[oldValue] operator[SEP] identifier[getClass] operator[SEP] operator[SEP] operator[SEP] identifier[getName] operator[SEP] operator[SEP] , identifier[pValue] operator[SEP] operator[:] identifier[pValue] operator[SEP] identifier[map] operator[SEP] identifier[put] operator[SEP] identifier[oldKey] , identifier[value] operator[SEP] operator[SEP] Keyword[return] identifier[oldValue] operator[SEP] }
public Object evaluate(Reader in, String fileName) throws CompilationFailedException { Script script = null; try { script = parse(in, fileName); return script.run(); } finally { if (script != null) { InvokerHelper.removeClass(script.getClass()); } } }
class class_name[name] begin[{] method[evaluate, return_type[type[Object]], modifier[public], parameter[in, fileName]] begin[{] local_variable[type[Script], script] TryStatement(block=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=script, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MethodInvocation(arguments=[MemberReference(member=in, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=fileName, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=parse, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None)), label=None), ReturnStatement(expression=MethodInvocation(arguments=[], member=run, postfix_operators=[], prefix_operators=[], qualifier=script, selectors=[], type_arguments=None), label=None)], catches=None, finally_block=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=script, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=null), operator=!=), else_statement=None, label=None, then_statement=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[], member=getClass, postfix_operators=[], prefix_operators=[], qualifier=script, selectors=[], type_arguments=None)], member=removeClass, postfix_operators=[], prefix_operators=[], qualifier=InvokerHelper, selectors=[], type_arguments=None), label=None)]))], label=None, resources=None) end[}] END[}]
Keyword[public] identifier[Object] identifier[evaluate] operator[SEP] identifier[Reader] identifier[in] , identifier[String] identifier[fileName] operator[SEP] Keyword[throws] identifier[CompilationFailedException] { identifier[Script] identifier[script] operator[=] Other[null] operator[SEP] Keyword[try] { identifier[script] operator[=] identifier[parse] operator[SEP] identifier[in] , identifier[fileName] operator[SEP] operator[SEP] Keyword[return] identifier[script] operator[SEP] identifier[run] operator[SEP] operator[SEP] operator[SEP] } Keyword[finally] { Keyword[if] operator[SEP] identifier[script] operator[!=] Other[null] operator[SEP] { identifier[InvokerHelper] operator[SEP] identifier[removeClass] operator[SEP] identifier[script] operator[SEP] identifier[getClass] operator[SEP] operator[SEP] operator[SEP] operator[SEP] } } }
public double getTimeLeftEstimate(Coordinate positionNow) { int minIndex = 0; double minDist = Double.MAX_VALUE; for (int i = 0; i < this.getPositions().length; i++) { if (this.getPositions()[i].distance(positionNow) < minDist) { minDist = this.getPositions()[i].distance(positionNow); minIndex = i; } } return getTimeLeftEstimate(minIndex); }
class class_name[name] begin[{] method[getTimeLeftEstimate, return_type[type[double]], modifier[public], parameter[positionNow]] begin[{] local_variable[type[int], minIndex] local_variable[type[double], minDist] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=BinaryOperation(operandl=This(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[MethodInvocation(arguments=[], member=getPositions, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None), ArraySelector(index=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])), MethodInvocation(arguments=[MemberReference(member=positionNow, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=distance, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)]), operandr=MemberReference(member=minDist, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=<), else_statement=None, label=None, then_statement=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=minDist, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=This(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[MethodInvocation(arguments=[], member=getPositions, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None), ArraySelector(index=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])), MethodInvocation(arguments=[MemberReference(member=positionNow, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=distance, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)])), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=minIndex, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])), label=None)]))]), control=ForControl(condition=BinaryOperation(operandl=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=This(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[MethodInvocation(arguments=[], member=getPositions, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None), MemberReference(member=length, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None)]), operator=<), init=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), name=i)], modifiers=set(), type=BasicType(dimensions=[], name=int)), update=[MemberReference(member=i, postfix_operators=['++'], prefix_operators=[], qualifier=, selectors=[])]), label=None) return[call[.getTimeLeftEstimate, parameter[member[.minIndex]]]] end[}] END[}]
Keyword[public] Keyword[double] identifier[getTimeLeftEstimate] operator[SEP] identifier[Coordinate] identifier[positionNow] operator[SEP] { Keyword[int] identifier[minIndex] operator[=] Other[0] operator[SEP] Keyword[double] identifier[minDist] operator[=] identifier[Double] operator[SEP] identifier[MAX_VALUE] operator[SEP] Keyword[for] operator[SEP] Keyword[int] identifier[i] operator[=] Other[0] operator[SEP] identifier[i] operator[<] Keyword[this] operator[SEP] identifier[getPositions] operator[SEP] operator[SEP] operator[SEP] identifier[length] operator[SEP] identifier[i] operator[++] operator[SEP] { Keyword[if] operator[SEP] Keyword[this] operator[SEP] identifier[getPositions] operator[SEP] operator[SEP] operator[SEP] identifier[i] operator[SEP] operator[SEP] identifier[distance] operator[SEP] identifier[positionNow] operator[SEP] operator[<] identifier[minDist] operator[SEP] { identifier[minDist] operator[=] Keyword[this] operator[SEP] identifier[getPositions] operator[SEP] operator[SEP] operator[SEP] identifier[i] operator[SEP] operator[SEP] identifier[distance] operator[SEP] identifier[positionNow] operator[SEP] operator[SEP] identifier[minIndex] operator[=] identifier[i] operator[SEP] } } Keyword[return] identifier[getTimeLeftEstimate] operator[SEP] identifier[minIndex] operator[SEP] operator[SEP] }
public void setVPCs(java.util.Collection<VPC> vPCs) { if (vPCs == null) { this.vPCs = null; return; } this.vPCs = new com.amazonaws.internal.SdkInternalList<VPC>(vPCs); }
class class_name[name] begin[{] method[setVPCs, return_type[void], modifier[public], parameter[vPCs]] begin[{] if[binary_operation[member[.vPCs], ==, literal[null]]] begin[{] assign[THIS[member[None.vPCs]], literal[null]] return[None] else begin[{] None end[}] assign[THIS[member[None.vPCs]], ClassCreator(arguments=[MemberReference(member=vPCs, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=com, sub_type=ReferenceType(arguments=None, dimensions=None, name=amazonaws, sub_type=ReferenceType(arguments=None, dimensions=None, name=internal, sub_type=ReferenceType(arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=VPC, sub_type=None))], dimensions=None, name=SdkInternalList, sub_type=None)))))] end[}] END[}]
Keyword[public] Keyword[void] identifier[setVPCs] operator[SEP] identifier[java] operator[SEP] identifier[util] operator[SEP] identifier[Collection] operator[<] identifier[VPC] operator[>] identifier[vPCs] operator[SEP] { Keyword[if] operator[SEP] identifier[vPCs] operator[==] Other[null] operator[SEP] { Keyword[this] operator[SEP] identifier[vPCs] operator[=] Other[null] operator[SEP] Keyword[return] operator[SEP] } Keyword[this] operator[SEP] identifier[vPCs] operator[=] Keyword[new] identifier[com] operator[SEP] identifier[amazonaws] operator[SEP] identifier[internal] operator[SEP] identifier[SdkInternalList] operator[<] identifier[VPC] operator[>] operator[SEP] identifier[vPCs] operator[SEP] operator[SEP] }
public static <T> List<Class<?>> getAncestry(final Class<T> clazz) { return ClassAncestry.getAncestry(clazz); }
class class_name[name] begin[{] method[getAncestry, return_type[type[List]], modifier[public static], parameter[clazz]] begin[{] return[call[ClassAncestry.getAncestry, parameter[member[.clazz]]]] end[}] END[}]
Keyword[public] Keyword[static] operator[<] identifier[T] operator[>] identifier[List] operator[<] identifier[Class] operator[<] operator[?] operator[>] operator[>] identifier[getAncestry] operator[SEP] Keyword[final] identifier[Class] operator[<] identifier[T] operator[>] identifier[clazz] operator[SEP] { Keyword[return] identifier[ClassAncestry] operator[SEP] identifier[getAncestry] operator[SEP] identifier[clazz] operator[SEP] operator[SEP] }
private static String parseLocatorHost(String locator) { int i = locator.indexOf("["); if(i > 0) return locator.substring(0,i).trim(); else return locator.trim(); }
class class_name[name] begin[{] method[parseLocatorHost, return_type[type[String]], modifier[private static], parameter[locator]] begin[{] local_variable[type[int], i] if[binary_operation[member[.i], >, literal[0]]] begin[{] return[call[locator.substring, parameter[literal[0], member[.i]]]] else begin[{] return[call[locator.trim, parameter[]]] end[}] end[}] END[}]
Keyword[private] Keyword[static] identifier[String] identifier[parseLocatorHost] operator[SEP] identifier[String] identifier[locator] operator[SEP] { Keyword[int] identifier[i] operator[=] identifier[locator] operator[SEP] identifier[indexOf] operator[SEP] literal[String] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[i] operator[>] Other[0] operator[SEP] Keyword[return] identifier[locator] operator[SEP] identifier[substring] operator[SEP] Other[0] , identifier[i] operator[SEP] operator[SEP] identifier[trim] operator[SEP] operator[SEP] operator[SEP] Keyword[else] Keyword[return] identifier[locator] operator[SEP] identifier[trim] operator[SEP] operator[SEP] operator[SEP] }
public DelayLoadSection loadDelayLoadSection() throws IOException { Optional<DelayLoadSection> delayLoad = maybeLoadDelayLoadSection(); return (DelayLoadSection) getOrThrow(delayLoad, "unable to load delay-load import section"); }
class class_name[name] begin[{] method[loadDelayLoadSection, return_type[type[DelayLoadSection]], modifier[public], parameter[]] begin[{] local_variable[type[Optional], delayLoad] return[Cast(expression=MethodInvocation(arguments=[MemberReference(member=delayLoad, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="unable to load delay-load import section")], member=getOrThrow, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), type=ReferenceType(arguments=None, dimensions=[], name=DelayLoadSection, sub_type=None))] end[}] END[}]
Keyword[public] identifier[DelayLoadSection] identifier[loadDelayLoadSection] operator[SEP] operator[SEP] Keyword[throws] identifier[IOException] { identifier[Optional] operator[<] identifier[DelayLoadSection] operator[>] identifier[delayLoad] operator[=] identifier[maybeLoadDelayLoadSection] operator[SEP] operator[SEP] operator[SEP] Keyword[return] operator[SEP] identifier[DelayLoadSection] operator[SEP] identifier[getOrThrow] operator[SEP] identifier[delayLoad] , literal[String] operator[SEP] operator[SEP] }
public R scan(Tree node, P p) { return (node == null) ? null : node.accept(this, p); }
class class_name[name] begin[{] method[scan, return_type[type[R]], modifier[public], parameter[node, p]] begin[{] return[TernaryExpression(condition=BinaryOperation(operandl=MemberReference(member=node, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=null), operator===), if_false=MethodInvocation(arguments=[This(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[]), MemberReference(member=p, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=accept, postfix_operators=[], prefix_operators=[], qualifier=node, selectors=[], type_arguments=None), if_true=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=null))] end[}] END[}]
Keyword[public] identifier[R] identifier[scan] operator[SEP] identifier[Tree] identifier[node] , identifier[P] identifier[p] operator[SEP] { Keyword[return] operator[SEP] identifier[node] operator[==] Other[null] operator[SEP] operator[?] Other[null] operator[:] identifier[node] operator[SEP] identifier[accept] operator[SEP] Keyword[this] , identifier[p] operator[SEP] operator[SEP] }
public void writeClassInterface() { Record recClassInfo = this.getMainRecord(); String strClassName = recClassInfo.getField(ClassInfo.CLASS_NAME).getString(); String strBaseClass = recClassInfo.getField(ClassInfo.BASE_CLASS_NAME).getString(); String strClassDesc = recClassInfo.getField(ClassInfo.CLASS_DESC).getString(); String strClassInterface = recClassInfo.getField(ClassInfo.CLASS_IMPLEMENTS).getString(); String implementsClass = null; if (((ClassInfo)recClassInfo).isARecord(false)) implementsClass = strClassName + "Model"; if ((implementsClass != null) && (implementsClass.length() > 0)) { m_IncludeNameList.addInclude(this.getPackage(CodeType.INTERFACE), null); // Make sure this is included if ((strClassInterface == null) || (strClassInterface.length() == 0)) strClassInterface = implementsClass; else strClassInterface = implementsClass + ", " + strClassInterface; } m_IncludeNameList.addInclude(strBaseClass, null); // Make sure this is included m_StreamOut.writeit("\n/**\n *\t" + strClassName + " - " + strClassDesc + ".\n */\n"); if ((strClassInterface == null) || (strClassInterface.length() == 0)) strClassInterface = ""; else strClassInterface = "\n\t implements " + strClassInterface; String strClassType = "class"; if ("interface".equals(recClassInfo.getField(ClassInfo.CLASS_TYPE).toString())) strClassType = "interface"; String strExtends = " extends "; if (strBaseClass.length() == 0) strExtends = ""; m_StreamOut.writeit("public " + strClassType + " " + strClassName + strExtends + strBaseClass + strClassInterface + "\n{\n"); m_StreamOut.setTabs(+1); }
class class_name[name] begin[{] method[writeClassInterface, return_type[void], modifier[public], parameter[]] begin[{] local_variable[type[Record], recClassInfo] local_variable[type[String], strClassName] local_variable[type[String], strBaseClass] local_variable[type[String], strClassDesc] local_variable[type[String], strClassInterface] local_variable[type[String], implementsClass] if[Cast(expression=MemberReference(member=recClassInfo, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type=ReferenceType(arguments=None, dimensions=[], name=ClassInfo, sub_type=None))] begin[{] assign[member[.implementsClass], binary_operation[member[.strClassName], +, literal["Model"]]] else begin[{] None end[}] if[binary_operation[binary_operation[member[.implementsClass], !=, literal[null]], &&, binary_operation[call[implementsClass.length, parameter[]], >, literal[0]]]] begin[{] call[m_IncludeNameList.addInclude, parameter[THIS[call[None.getPackage, parameter[member[CodeType.INTERFACE]]]], literal[null]]] if[binary_operation[binary_operation[member[.strClassInterface], ==, literal[null]], ||, binary_operation[call[strClassInterface.length, parameter[]], ==, literal[0]]]] begin[{] assign[member[.strClassInterface], member[.implementsClass]] else begin[{] assign[member[.strClassInterface], binary_operation[binary_operation[member[.implementsClass], +, literal[", "]], +, member[.strClassInterface]]] end[}] else begin[{] None end[}] call[m_IncludeNameList.addInclude, parameter[member[.strBaseClass], literal[null]]] call[m_StreamOut.writeit, parameter[binary_operation[binary_operation[binary_operation[binary_operation[literal["\n/**\n *\t"], +, member[.strClassName]], +, literal[" - "]], +, member[.strClassDesc]], +, literal[".\n */\n"]]]] if[binary_operation[binary_operation[member[.strClassInterface], ==, literal[null]], ||, binary_operation[call[strClassInterface.length, parameter[]], ==, literal[0]]]] begin[{] assign[member[.strClassInterface], literal[""]] else begin[{] assign[member[.strClassInterface], binary_operation[literal["\n\t implements "], +, member[.strClassInterface]]] end[}] local_variable[type[String], strClassType] if[literal["interface"]] begin[{] assign[member[.strClassType], literal["interface"]] else begin[{] None end[}] local_variable[type[String], strExtends] if[binary_operation[call[strBaseClass.length, parameter[]], ==, literal[0]]] begin[{] assign[member[.strExtends], literal[""]] else begin[{] None end[}] call[m_StreamOut.writeit, parameter[binary_operation[binary_operation[binary_operation[binary_operation[binary_operation[binary_operation[binary_operation[literal["public "], +, member[.strClassType]], +, literal[" "]], +, member[.strClassName]], +, member[.strExtends]], +, member[.strBaseClass]], +, member[.strClassInterface]], +, literal["\n{\n"]]]] call[m_StreamOut.setTabs, parameter[literal[1]]] end[}] END[}]
Keyword[public] Keyword[void] identifier[writeClassInterface] operator[SEP] operator[SEP] { identifier[Record] identifier[recClassInfo] operator[=] Keyword[this] operator[SEP] identifier[getMainRecord] operator[SEP] operator[SEP] operator[SEP] identifier[String] identifier[strClassName] operator[=] identifier[recClassInfo] operator[SEP] identifier[getField] operator[SEP] identifier[ClassInfo] operator[SEP] identifier[CLASS_NAME] operator[SEP] operator[SEP] identifier[getString] operator[SEP] operator[SEP] operator[SEP] identifier[String] identifier[strBaseClass] operator[=] identifier[recClassInfo] operator[SEP] identifier[getField] operator[SEP] identifier[ClassInfo] operator[SEP] identifier[BASE_CLASS_NAME] operator[SEP] operator[SEP] identifier[getString] operator[SEP] operator[SEP] operator[SEP] identifier[String] identifier[strClassDesc] operator[=] identifier[recClassInfo] operator[SEP] identifier[getField] operator[SEP] identifier[ClassInfo] operator[SEP] identifier[CLASS_DESC] operator[SEP] operator[SEP] identifier[getString] operator[SEP] operator[SEP] operator[SEP] identifier[String] identifier[strClassInterface] operator[=] identifier[recClassInfo] operator[SEP] identifier[getField] operator[SEP] identifier[ClassInfo] operator[SEP] identifier[CLASS_IMPLEMENTS] operator[SEP] operator[SEP] identifier[getString] operator[SEP] operator[SEP] operator[SEP] identifier[String] identifier[implementsClass] operator[=] Other[null] operator[SEP] Keyword[if] operator[SEP] operator[SEP] operator[SEP] identifier[ClassInfo] operator[SEP] identifier[recClassInfo] operator[SEP] operator[SEP] identifier[isARecord] operator[SEP] literal[boolean] operator[SEP] operator[SEP] identifier[implementsClass] operator[=] identifier[strClassName] operator[+] literal[String] operator[SEP] Keyword[if] operator[SEP] operator[SEP] identifier[implementsClass] operator[!=] Other[null] operator[SEP] operator[&&] operator[SEP] identifier[implementsClass] operator[SEP] identifier[length] operator[SEP] operator[SEP] operator[>] Other[0] operator[SEP] operator[SEP] { identifier[m_IncludeNameList] operator[SEP] identifier[addInclude] operator[SEP] Keyword[this] operator[SEP] identifier[getPackage] operator[SEP] identifier[CodeType] operator[SEP] identifier[INTERFACE] operator[SEP] , Other[null] operator[SEP] operator[SEP] Keyword[if] operator[SEP] operator[SEP] identifier[strClassInterface] operator[==] Other[null] operator[SEP] operator[||] operator[SEP] identifier[strClassInterface] operator[SEP] identifier[length] operator[SEP] operator[SEP] operator[==] Other[0] operator[SEP] operator[SEP] identifier[strClassInterface] operator[=] identifier[implementsClass] operator[SEP] Keyword[else] identifier[strClassInterface] operator[=] identifier[implementsClass] operator[+] literal[String] operator[+] identifier[strClassInterface] operator[SEP] } identifier[m_IncludeNameList] operator[SEP] identifier[addInclude] operator[SEP] identifier[strBaseClass] , Other[null] operator[SEP] operator[SEP] identifier[m_StreamOut] operator[SEP] identifier[writeit] operator[SEP] literal[String] operator[+] identifier[strClassName] operator[+] literal[String] operator[+] identifier[strClassDesc] operator[+] literal[String] operator[SEP] operator[SEP] Keyword[if] operator[SEP] operator[SEP] identifier[strClassInterface] operator[==] Other[null] operator[SEP] operator[||] operator[SEP] identifier[strClassInterface] operator[SEP] identifier[length] operator[SEP] operator[SEP] operator[==] Other[0] operator[SEP] operator[SEP] identifier[strClassInterface] operator[=] literal[String] operator[SEP] Keyword[else] identifier[strClassInterface] operator[=] literal[String] operator[+] identifier[strClassInterface] operator[SEP] identifier[String] identifier[strClassType] operator[=] literal[String] operator[SEP] Keyword[if] operator[SEP] literal[String] operator[SEP] identifier[equals] operator[SEP] identifier[recClassInfo] operator[SEP] identifier[getField] operator[SEP] identifier[ClassInfo] operator[SEP] identifier[CLASS_TYPE] operator[SEP] operator[SEP] identifier[toString] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[strClassType] operator[=] literal[String] operator[SEP] identifier[String] identifier[strExtends] operator[=] literal[String] operator[SEP] Keyword[if] operator[SEP] identifier[strBaseClass] operator[SEP] identifier[length] operator[SEP] operator[SEP] operator[==] Other[0] operator[SEP] identifier[strExtends] operator[=] literal[String] operator[SEP] identifier[m_StreamOut] operator[SEP] identifier[writeit] operator[SEP] literal[String] operator[+] identifier[strClassType] operator[+] literal[String] operator[+] identifier[strClassName] operator[+] identifier[strExtends] operator[+] identifier[strBaseClass] operator[+] identifier[strClassInterface] operator[+] literal[String] operator[SEP] operator[SEP] identifier[m_StreamOut] operator[SEP] identifier[setTabs] operator[SEP] operator[+] Other[1] operator[SEP] operator[SEP] }
protected void updateBigDecimalScale(IntuitEntity intuitType) { Feature feature = new Feature() { private IntuitEntity obj; public <T extends IntuitEntity> void set(T object) { obj = object; } public void execute() { (new BigDecimalScaleUpdater()).execute(obj); } }; feature.set(intuitType); invokeFeature(Config.BIGDECIMAL_SCALE_SHIFT, feature); }
class class_name[name] begin[{] method[updateBigDecimalScale, return_type[void], modifier[protected], parameter[intuitType]] begin[{] local_variable[type[Feature], feature] call[feature.set, parameter[member[.intuitType]]] call[.invokeFeature, parameter[member[Config.BIGDECIMAL_SCALE_SHIFT], member[.feature]]] end[}] END[}]
Keyword[protected] Keyword[void] identifier[updateBigDecimalScale] operator[SEP] identifier[IntuitEntity] identifier[intuitType] operator[SEP] { identifier[Feature] identifier[feature] operator[=] Keyword[new] identifier[Feature] operator[SEP] operator[SEP] { Keyword[private] identifier[IntuitEntity] identifier[obj] operator[SEP] Keyword[public] operator[<] identifier[T] Keyword[extends] identifier[IntuitEntity] operator[>] Keyword[void] identifier[set] operator[SEP] identifier[T] identifier[object] operator[SEP] { identifier[obj] operator[=] identifier[object] operator[SEP] } Keyword[public] Keyword[void] identifier[execute] operator[SEP] operator[SEP] { operator[SEP] Keyword[new] identifier[BigDecimalScaleUpdater] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[execute] operator[SEP] identifier[obj] operator[SEP] operator[SEP] } } operator[SEP] identifier[feature] operator[SEP] identifier[set] operator[SEP] identifier[intuitType] operator[SEP] operator[SEP] identifier[invokeFeature] operator[SEP] identifier[Config] operator[SEP] identifier[BIGDECIMAL_SCALE_SHIFT] , identifier[feature] operator[SEP] operator[SEP] }
public IByteCodeEnhancer byteCodeEnhancer() { if (IByteCodeEnhancer.INSTS.NULL == _byteCodeEnhancer) { _byteCodeEnhancer = get(CODEGEN_BYTE_CODE_ENHANCER); } return _byteCodeEnhancer; }
class class_name[name] begin[{] method[byteCodeEnhancer, return_type[type[IByteCodeEnhancer]], modifier[public], parameter[]] begin[{] if[binary_operation[member[IByteCodeEnhancer.INSTS.NULL], ==, member[._byteCodeEnhancer]]] begin[{] assign[member[._byteCodeEnhancer], call[.get, parameter[member[.CODEGEN_BYTE_CODE_ENHANCER]]]] else begin[{] None end[}] return[member[._byteCodeEnhancer]] end[}] END[}]
Keyword[public] identifier[IByteCodeEnhancer] identifier[byteCodeEnhancer] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[IByteCodeEnhancer] operator[SEP] identifier[INSTS] operator[SEP] identifier[NULL] operator[==] identifier[_byteCodeEnhancer] operator[SEP] { identifier[_byteCodeEnhancer] operator[=] identifier[get] operator[SEP] identifier[CODEGEN_BYTE_CODE_ENHANCER] operator[SEP] operator[SEP] } Keyword[return] identifier[_byteCodeEnhancer] operator[SEP] }
public static void addEntries(File zip, ZipEntrySource[] entries, File destZip) { if (log.isDebugEnabled()) { log.debug("Copying '" + zip + "' to '" + destZip + "' and adding " + Arrays.asList(entries) + "."); } OutputStream destOut = null; try { destOut = new BufferedOutputStream(new FileOutputStream(destZip)); addEntries(zip, entries, destOut); } catch (IOException e) { ZipExceptionUtil.rethrow(e); } finally { IOUtils.closeQuietly(destOut); } }
class class_name[name] begin[{] method[addEntries, return_type[void], modifier[public static], parameter[zip, entries, destZip]] begin[{] if[call[log.isDebugEnabled, parameter[]]] begin[{] call[log.debug, parameter[binary_operation[binary_operation[binary_operation[binary_operation[binary_operation[binary_operation[literal["Copying '"], +, member[.zip]], +, literal["' to '"]], +, member[.destZip]], +, literal["' and adding "]], +, call[Arrays.asList, parameter[member[.entries]]]], +, literal["."]]]] else begin[{] None end[}] local_variable[type[OutputStream], destOut] TryStatement(block=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=destOut, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=ClassCreator(arguments=[ClassCreator(arguments=[MemberReference(member=destZip, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=FileOutputStream, sub_type=None))], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=BufferedOutputStream, sub_type=None))), label=None), StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=zip, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=entries, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=destOut, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=addEntries, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), label=None)], catches=[CatchClause(block=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=e, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=rethrow, postfix_operators=[], prefix_operators=[], qualifier=ZipExceptionUtil, selectors=[], type_arguments=None), label=None)], label=None, parameter=CatchClauseParameter(annotations=None, modifiers=None, name=e, types=['IOException']))], finally_block=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=destOut, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=closeQuietly, postfix_operators=[], prefix_operators=[], qualifier=IOUtils, selectors=[], type_arguments=None), label=None)], label=None, resources=None) end[}] END[}]
Keyword[public] Keyword[static] Keyword[void] identifier[addEntries] operator[SEP] identifier[File] identifier[zip] , identifier[ZipEntrySource] operator[SEP] operator[SEP] identifier[entries] , identifier[File] identifier[destZip] operator[SEP] { Keyword[if] operator[SEP] identifier[log] operator[SEP] identifier[isDebugEnabled] operator[SEP] operator[SEP] operator[SEP] { identifier[log] operator[SEP] identifier[debug] operator[SEP] literal[String] operator[+] identifier[zip] operator[+] literal[String] operator[+] identifier[destZip] operator[+] literal[String] operator[+] identifier[Arrays] operator[SEP] identifier[asList] operator[SEP] identifier[entries] operator[SEP] operator[+] literal[String] operator[SEP] operator[SEP] } identifier[OutputStream] identifier[destOut] operator[=] Other[null] operator[SEP] Keyword[try] { identifier[destOut] operator[=] Keyword[new] identifier[BufferedOutputStream] operator[SEP] Keyword[new] identifier[FileOutputStream] operator[SEP] identifier[destZip] operator[SEP] operator[SEP] operator[SEP] identifier[addEntries] operator[SEP] identifier[zip] , identifier[entries] , identifier[destOut] operator[SEP] operator[SEP] } Keyword[catch] operator[SEP] identifier[IOException] identifier[e] operator[SEP] { identifier[ZipExceptionUtil] operator[SEP] identifier[rethrow] operator[SEP] identifier[e] operator[SEP] operator[SEP] } Keyword[finally] { identifier[IOUtils] operator[SEP] identifier[closeQuietly] operator[SEP] identifier[destOut] operator[SEP] operator[SEP] } }
@XmlElementDecl(namespace = "http://www.immoxml.de", name = "wg_geeignet") public JAXBElement<Boolean> createWgGeeignet(Boolean value) { return new JAXBElement<Boolean>(_WgGeeignet_QNAME, Boolean.class, null, value); }
class class_name[name] begin[{] method[createWgGeeignet, return_type[type[JAXBElement]], modifier[public], parameter[value]] begin[{] return[ClassCreator(arguments=[MemberReference(member=_WgGeeignet_QNAME, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), ClassReference(postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=Boolean, sub_type=None)), Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=null), MemberReference(member=value, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=Boolean, sub_type=None))], dimensions=None, name=JAXBElement, sub_type=None))] end[}] END[}]
annotation[@] identifier[XmlElementDecl] operator[SEP] identifier[namespace] operator[=] literal[String] , identifier[name] operator[=] literal[String] operator[SEP] Keyword[public] identifier[JAXBElement] operator[<] identifier[Boolean] operator[>] identifier[createWgGeeignet] operator[SEP] identifier[Boolean] identifier[value] operator[SEP] { Keyword[return] Keyword[new] identifier[JAXBElement] operator[<] identifier[Boolean] operator[>] operator[SEP] identifier[_WgGeeignet_QNAME] , identifier[Boolean] operator[SEP] Keyword[class] , Other[null] , identifier[value] operator[SEP] operator[SEP] }
public boolean isKeyField(BaseField field, int iSourceFieldSeq) { if (field instanceof DateTimeField) return true; if (field instanceof NumberField) return false; if (iSourceFieldSeq == 0) return false; // You must have at least one key field. return true; // Typically any non-number is a key. }
class class_name[name] begin[{] method[isKeyField, return_type[type[boolean]], modifier[public], parameter[field, iSourceFieldSeq]] begin[{] if[binary_operation[member[.field], instanceof, type[DateTimeField]]] begin[{] return[literal[true]] else begin[{] None end[}] if[binary_operation[member[.field], instanceof, type[NumberField]]] begin[{] return[literal[false]] else begin[{] None end[}] if[binary_operation[member[.iSourceFieldSeq], ==, literal[0]]] begin[{] return[literal[false]] else begin[{] None end[}] return[literal[true]] end[}] END[}]
Keyword[public] Keyword[boolean] identifier[isKeyField] operator[SEP] identifier[BaseField] identifier[field] , Keyword[int] identifier[iSourceFieldSeq] operator[SEP] { Keyword[if] operator[SEP] identifier[field] Keyword[instanceof] identifier[DateTimeField] operator[SEP] Keyword[return] literal[boolean] operator[SEP] Keyword[if] operator[SEP] identifier[field] Keyword[instanceof] identifier[NumberField] operator[SEP] Keyword[return] literal[boolean] operator[SEP] Keyword[if] operator[SEP] identifier[iSourceFieldSeq] operator[==] Other[0] operator[SEP] Keyword[return] literal[boolean] operator[SEP] Keyword[return] literal[boolean] operator[SEP] }
public net.minidev.ovh.api.dedicatedcloud.host.OvhHourlyConsumption serviceName_datacenter_datacenterId_host_hostId_hourlyConsumption_GET(String serviceName, Long datacenterId, Long hostId) throws IOException { String qPath = "/dedicatedCloud/{serviceName}/datacenter/{datacenterId}/host/{hostId}/hourlyConsumption"; StringBuilder sb = path(qPath, serviceName, datacenterId, hostId); String resp = exec(qPath, "GET", sb.toString(), null); return convertTo(resp, net.minidev.ovh.api.dedicatedcloud.host.OvhHourlyConsumption.class); }
class class_name[name] begin[{] method[serviceName_datacenter_datacenterId_host_hostId_hourlyConsumption_GET, return_type[type[net]], modifier[public], parameter[serviceName, datacenterId, hostId]] begin[{] local_variable[type[String], qPath] local_variable[type[StringBuilder], sb] local_variable[type[String], resp] return[call[.convertTo, parameter[member[.resp], ClassReference(postfix_operators=[], prefix_operators=[], qualifier=net.minidev.ovh.api.dedicatedcloud.host, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=OvhHourlyConsumption, sub_type=None))]]] end[}] END[}]
Keyword[public] identifier[net] operator[SEP] identifier[minidev] operator[SEP] identifier[ovh] operator[SEP] identifier[api] operator[SEP] identifier[dedicatedcloud] operator[SEP] identifier[host] operator[SEP] identifier[OvhHourlyConsumption] identifier[serviceName_datacenter_datacenterId_host_hostId_hourlyConsumption_GET] operator[SEP] identifier[String] identifier[serviceName] , identifier[Long] identifier[datacenterId] , identifier[Long] identifier[hostId] operator[SEP] Keyword[throws] identifier[IOException] { identifier[String] identifier[qPath] operator[=] literal[String] operator[SEP] identifier[StringBuilder] identifier[sb] operator[=] identifier[path] operator[SEP] identifier[qPath] , identifier[serviceName] , identifier[datacenterId] , identifier[hostId] operator[SEP] operator[SEP] identifier[String] identifier[resp] operator[=] identifier[exec] operator[SEP] identifier[qPath] , literal[String] , identifier[sb] operator[SEP] identifier[toString] operator[SEP] operator[SEP] , Other[null] operator[SEP] operator[SEP] Keyword[return] identifier[convertTo] operator[SEP] identifier[resp] , identifier[net] operator[SEP] identifier[minidev] operator[SEP] identifier[ovh] operator[SEP] identifier[api] operator[SEP] identifier[dedicatedcloud] operator[SEP] identifier[host] operator[SEP] identifier[OvhHourlyConsumption] operator[SEP] Keyword[class] operator[SEP] operator[SEP] }
private void processFiles(File[] files) { phaseOutput(format("=== %s ===", getApplicationName())); phaseOutput(format("Compiling %d BEL Document(s)", files.length)); boolean pedantic = withPedantic(); boolean verbose = withVerbose(); int validated = 0; for (int i = 1; i <= files.length; i++) { File file = files[i - 1]; if (verbose) { phaseOutput("Compiling " + i + " of " + files.length + " BEL Document(s)"); } // validate document Document document = stage1(file); if (document == null) { if (pedantic) { bail(VALIDATION_FAILURE); } continue; } validated++; // run stages 2 - 7 runCommonStages(pedantic, document); } if (validated == 0) { bail(NO_VALID_DOCUMENTS); } }
class class_name[name] begin[{] method[processFiles, return_type[void], modifier[private], parameter[files]] begin[{] call[.phaseOutput, parameter[call[.format, parameter[literal["=== %s ==="], call[.getApplicationName, parameter[]]]]]] call[.phaseOutput, parameter[call[.format, parameter[literal["Compiling %d BEL Document(s)"], member[files.length]]]]] local_variable[type[boolean], pedantic] local_variable[type[boolean], verbose] local_variable[type[int], validated] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MemberReference(member=files, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=BinaryOperation(operandl=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), operator=-))]), name=file)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=File, sub_type=None)), IfStatement(condition=MemberReference(member=verbose, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), else_statement=None, label=None, then_statement=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[BinaryOperation(operandl=BinaryOperation(operandl=BinaryOperation(operandl=BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="Compiling "), operandr=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=+), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=" of "), operator=+), operandr=MemberReference(member=length, postfix_operators=[], prefix_operators=[], qualifier=files, selectors=[]), operator=+), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=" BEL Document(s)"), operator=+)], member=phaseOutput, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), label=None)])), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberReference(member=file, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=stage1, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), name=document)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=Document, sub_type=None)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=document, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=null), operator===), else_statement=None, label=None, then_statement=BlockStatement(label=None, statements=[IfStatement(condition=MemberReference(member=pedantic, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), else_statement=None, label=None, then_statement=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=VALIDATION_FAILURE, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=bail, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), label=None)])), ContinueStatement(goto=None, label=None)])), StatementExpression(expression=MemberReference(member=validated, postfix_operators=['++'], prefix_operators=[], qualifier=, selectors=[]), label=None), StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=pedantic, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=document, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=runCommonStages, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), label=None)]), control=ForControl(condition=BinaryOperation(operandl=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=length, postfix_operators=[], prefix_operators=[], qualifier=files, selectors=[]), operator=<=), init=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), name=i)], modifiers=set(), type=BasicType(dimensions=[], name=int)), update=[MemberReference(member=i, postfix_operators=['++'], prefix_operators=[], qualifier=, selectors=[])]), label=None) if[binary_operation[member[.validated], ==, literal[0]]] begin[{] call[.bail, parameter[member[.NO_VALID_DOCUMENTS]]] else begin[{] None end[}] end[}] END[}]
Keyword[private] Keyword[void] identifier[processFiles] operator[SEP] identifier[File] operator[SEP] operator[SEP] identifier[files] operator[SEP] { identifier[phaseOutput] operator[SEP] identifier[format] operator[SEP] literal[String] , identifier[getApplicationName] operator[SEP] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[phaseOutput] operator[SEP] identifier[format] operator[SEP] literal[String] , identifier[files] operator[SEP] identifier[length] operator[SEP] operator[SEP] operator[SEP] Keyword[boolean] identifier[pedantic] operator[=] identifier[withPedantic] operator[SEP] operator[SEP] operator[SEP] Keyword[boolean] identifier[verbose] operator[=] identifier[withVerbose] operator[SEP] operator[SEP] operator[SEP] Keyword[int] identifier[validated] operator[=] Other[0] operator[SEP] Keyword[for] operator[SEP] Keyword[int] identifier[i] operator[=] Other[1] operator[SEP] identifier[i] operator[<=] identifier[files] operator[SEP] identifier[length] operator[SEP] identifier[i] operator[++] operator[SEP] { identifier[File] identifier[file] operator[=] identifier[files] operator[SEP] identifier[i] operator[-] Other[1] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[verbose] operator[SEP] { identifier[phaseOutput] operator[SEP] literal[String] operator[+] identifier[i] operator[+] literal[String] operator[+] identifier[files] operator[SEP] identifier[length] operator[+] literal[String] operator[SEP] operator[SEP] } identifier[Document] identifier[document] operator[=] identifier[stage1] operator[SEP] identifier[file] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[document] operator[==] Other[null] operator[SEP] { Keyword[if] operator[SEP] identifier[pedantic] operator[SEP] { identifier[bail] operator[SEP] identifier[VALIDATION_FAILURE] operator[SEP] operator[SEP] } Keyword[continue] operator[SEP] } identifier[validated] operator[++] operator[SEP] identifier[runCommonStages] operator[SEP] identifier[pedantic] , identifier[document] operator[SEP] operator[SEP] } Keyword[if] operator[SEP] identifier[validated] operator[==] Other[0] operator[SEP] { identifier[bail] operator[SEP] identifier[NO_VALID_DOCUMENTS] operator[SEP] operator[SEP] } }
public void init(ChannelFactoryData properties) throws ChannelFactoryException // D194678 { if (tc.isEntryEnabled()) SibTr.entry(this, tc, "init", properties); channelFactoryData = properties; // D196678.10.1 if (tc.isEntryEnabled()) SibTr.exit(this, tc, "init"); }
class class_name[name] begin[{] method[init, return_type[void], modifier[public], parameter[properties]] begin[{] if[call[tc.isEntryEnabled, parameter[]]] begin[{] call[SibTr.entry, parameter[THIS[], member[.tc], literal["init"], member[.properties]]] else begin[{] None end[}] assign[member[.channelFactoryData], member[.properties]] if[call[tc.isEntryEnabled, parameter[]]] begin[{] call[SibTr.exit, parameter[THIS[], member[.tc], literal["init"]]] else begin[{] None end[}] end[}] END[}]
Keyword[public] Keyword[void] identifier[init] operator[SEP] identifier[ChannelFactoryData] identifier[properties] operator[SEP] Keyword[throws] identifier[ChannelFactoryException] { Keyword[if] operator[SEP] identifier[tc] operator[SEP] identifier[isEntryEnabled] operator[SEP] operator[SEP] operator[SEP] identifier[SibTr] operator[SEP] identifier[entry] operator[SEP] Keyword[this] , identifier[tc] , literal[String] , identifier[properties] operator[SEP] operator[SEP] identifier[channelFactoryData] operator[=] identifier[properties] operator[SEP] Keyword[if] operator[SEP] identifier[tc] operator[SEP] identifier[isEntryEnabled] operator[SEP] operator[SEP] operator[SEP] identifier[SibTr] operator[SEP] identifier[exit] operator[SEP] Keyword[this] , identifier[tc] , literal[String] operator[SEP] operator[SEP] }
@Override public XBELDocument unmarshal(Source s) throws JAXBException, IOException { final Unmarshaller unmarshaller = createNewUnmashaller(); return (XBELDocument) unmarshaller.unmarshal(s); }
class class_name[name] begin[{] method[unmarshal, return_type[type[XBELDocument]], modifier[public], parameter[s]] begin[{] local_variable[type[Unmarshaller], unmarshaller] return[Cast(expression=MethodInvocation(arguments=[MemberReference(member=s, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=unmarshal, postfix_operators=[], prefix_operators=[], qualifier=unmarshaller, selectors=[], type_arguments=None), type=ReferenceType(arguments=None, dimensions=[], name=XBELDocument, sub_type=None))] end[}] END[}]
annotation[@] identifier[Override] Keyword[public] identifier[XBELDocument] identifier[unmarshal] operator[SEP] identifier[Source] identifier[s] operator[SEP] Keyword[throws] identifier[JAXBException] , identifier[IOException] { Keyword[final] identifier[Unmarshaller] identifier[unmarshaller] operator[=] identifier[createNewUnmashaller] operator[SEP] operator[SEP] operator[SEP] Keyword[return] operator[SEP] identifier[XBELDocument] operator[SEP] identifier[unmarshaller] operator[SEP] identifier[unmarshal] operator[SEP] identifier[s] operator[SEP] operator[SEP] }
public void addLoadedExtension(Extension extension) { if (extension == null) { throw new IllegalArgumentException("Parameter extension must not be null."); } if (loadedExtensions == null) { loadedExtensions = new ArrayList<>(1); } if (!loadedExtensions.contains(extension)) { loadedExtensions.add(extension); extension.setAddOn(this); } }
class class_name[name] begin[{] method[addLoadedExtension, return_type[void], modifier[public], parameter[extension]] begin[{] if[binary_operation[member[.extension], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="Parameter extension must not be null.")], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=IllegalArgumentException, sub_type=None)), label=None) else begin[{] None end[}] if[binary_operation[member[.loadedExtensions], ==, literal[null]]] begin[{] assign[member[.loadedExtensions], ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1)], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=[], dimensions=None, name=ArrayList, sub_type=None))] else begin[{] None end[}] if[call[loadedExtensions.contains, parameter[member[.extension]]]] begin[{] call[loadedExtensions.add, parameter[member[.extension]]] call[extension.setAddOn, parameter[THIS[]]] else begin[{] None end[}] end[}] END[}]
Keyword[public] Keyword[void] identifier[addLoadedExtension] operator[SEP] identifier[Extension] identifier[extension] operator[SEP] { Keyword[if] operator[SEP] identifier[extension] operator[==] Other[null] operator[SEP] { Keyword[throw] Keyword[new] identifier[IllegalArgumentException] operator[SEP] literal[String] operator[SEP] operator[SEP] } Keyword[if] operator[SEP] identifier[loadedExtensions] operator[==] Other[null] operator[SEP] { identifier[loadedExtensions] operator[=] Keyword[new] identifier[ArrayList] operator[<] operator[>] operator[SEP] Other[1] operator[SEP] operator[SEP] } Keyword[if] operator[SEP] operator[!] identifier[loadedExtensions] operator[SEP] identifier[contains] operator[SEP] identifier[extension] operator[SEP] operator[SEP] { identifier[loadedExtensions] operator[SEP] identifier[add] operator[SEP] identifier[extension] operator[SEP] operator[SEP] identifier[extension] operator[SEP] identifier[setAddOn] operator[SEP] Keyword[this] operator[SEP] operator[SEP] } }
@Override protected void initFromSettings(Settings settings) { super.initFromSettings(settings); this.subscriberFailurePolicy = settings.getIntProperty("subscriberFailurePolicy",FFMQSubscriberPolicy.SUBSCRIBER_POLICY_LOG); this.subscriberOverflowPolicy = settings.getIntProperty("subscriberOverflowPolicy",FFMQSubscriberPolicy.SUBSCRIBER_POLICY_LOG); String rawPartitionsKeysToIndex = settings.getStringProperty("partitionsKeysToIndex"); if (rawPartitionsKeysToIndex != null) { StringTokenizer st = new StringTokenizer(rawPartitionsKeysToIndex, ", "); this.partitionsKeysToIndex = new String[st.countTokens()]; int pos = 0; while (st.hasMoreTokens()) this.partitionsKeysToIndex[pos++] = st.nextToken(); } }
class class_name[name] begin[{] method[initFromSettings, return_type[void], modifier[protected], parameter[settings]] begin[{] SuperMethodInvocation(arguments=[MemberReference(member=settings, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=initFromSettings, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type_arguments=None) assign[THIS[member[None.subscriberFailurePolicy]], call[settings.getIntProperty, parameter[literal["subscriberFailurePolicy"], member[FFMQSubscriberPolicy.SUBSCRIBER_POLICY_LOG]]]] assign[THIS[member[None.subscriberOverflowPolicy]], call[settings.getIntProperty, parameter[literal["subscriberOverflowPolicy"], member[FFMQSubscriberPolicy.SUBSCRIBER_POLICY_LOG]]]] local_variable[type[String], rawPartitionsKeysToIndex] if[binary_operation[member[.rawPartitionsKeysToIndex], !=, literal[null]]] begin[{] local_variable[type[StringTokenizer], st] assign[THIS[member[None.partitionsKeysToIndex]], ArrayCreator(dimensions=[MethodInvocation(arguments=[], member=countTokens, postfix_operators=[], prefix_operators=[], qualifier=st, selectors=[], type_arguments=None)], initializer=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=String, sub_type=None))] local_variable[type[int], pos] while[call[st.hasMoreTokens, parameter[]]] begin[{] assign[THIS[member[None.partitionsKeysToIndex]ArraySelector(index=MemberReference(member=pos, postfix_operators=['++'], prefix_operators=[], qualifier=, selectors=[]))], call[st.nextToken, parameter[]]] end[}] else begin[{] None end[}] end[}] END[}]
annotation[@] identifier[Override] Keyword[protected] Keyword[void] identifier[initFromSettings] operator[SEP] identifier[Settings] identifier[settings] operator[SEP] { Keyword[super] operator[SEP] identifier[initFromSettings] operator[SEP] identifier[settings] operator[SEP] operator[SEP] Keyword[this] operator[SEP] identifier[subscriberFailurePolicy] operator[=] identifier[settings] operator[SEP] identifier[getIntProperty] operator[SEP] literal[String] , identifier[FFMQSubscriberPolicy] operator[SEP] identifier[SUBSCRIBER_POLICY_LOG] operator[SEP] operator[SEP] Keyword[this] operator[SEP] identifier[subscriberOverflowPolicy] operator[=] identifier[settings] operator[SEP] identifier[getIntProperty] operator[SEP] literal[String] , identifier[FFMQSubscriberPolicy] operator[SEP] identifier[SUBSCRIBER_POLICY_LOG] operator[SEP] operator[SEP] identifier[String] identifier[rawPartitionsKeysToIndex] operator[=] identifier[settings] operator[SEP] identifier[getStringProperty] operator[SEP] literal[String] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[rawPartitionsKeysToIndex] operator[!=] Other[null] operator[SEP] { identifier[StringTokenizer] identifier[st] operator[=] Keyword[new] identifier[StringTokenizer] operator[SEP] identifier[rawPartitionsKeysToIndex] , literal[String] operator[SEP] operator[SEP] Keyword[this] operator[SEP] identifier[partitionsKeysToIndex] operator[=] Keyword[new] identifier[String] operator[SEP] identifier[st] operator[SEP] identifier[countTokens] operator[SEP] operator[SEP] operator[SEP] operator[SEP] Keyword[int] identifier[pos] operator[=] Other[0] operator[SEP] Keyword[while] operator[SEP] identifier[st] operator[SEP] identifier[hasMoreTokens] operator[SEP] operator[SEP] operator[SEP] Keyword[this] operator[SEP] identifier[partitionsKeysToIndex] operator[SEP] identifier[pos] operator[++] operator[SEP] operator[=] identifier[st] operator[SEP] identifier[nextToken] operator[SEP] operator[SEP] operator[SEP] } }
public Coordinate getCoordinateN(int n) { if (isEmpty()) { return null; } if (n >= 0 && n < coordinates.length) { return coordinates[n]; } return null; }
class class_name[name] begin[{] method[getCoordinateN, return_type[type[Coordinate]], modifier[public], parameter[n]] begin[{] if[call[.isEmpty, parameter[]]] begin[{] return[literal[null]] else begin[{] None end[}] if[binary_operation[binary_operation[member[.n], >=, literal[0]], &&, binary_operation[member[.n], <, member[coordinates.length]]]] begin[{] return[member[.coordinates]] else begin[{] None end[}] return[literal[null]] end[}] END[}]
Keyword[public] identifier[Coordinate] identifier[getCoordinateN] operator[SEP] Keyword[int] identifier[n] operator[SEP] { Keyword[if] operator[SEP] identifier[isEmpty] operator[SEP] operator[SEP] operator[SEP] { Keyword[return] Other[null] operator[SEP] } Keyword[if] operator[SEP] identifier[n] operator[>=] Other[0] operator[&&] identifier[n] operator[<] identifier[coordinates] operator[SEP] identifier[length] operator[SEP] { Keyword[return] identifier[coordinates] operator[SEP] identifier[n] operator[SEP] operator[SEP] } Keyword[return] Other[null] operator[SEP] }
@Override public AFPChain align(Atom[] ca1, Atom[] ca2, Object param) throws StructureException{ if ( ! (param instanceof CECPParameters)) throw new IllegalArgumentException("CE algorithm needs an object of call CeParameters as argument."); CECPParameters cpparams = (CECPParameters) param; this.params = cpparams; boolean duplicateRight; switch( cpparams.getDuplicationHint() ) { case LEFT: duplicateRight = false; break; case RIGHT: duplicateRight = true; break; case SHORTER: duplicateRight = ca1.length >= ca2.length; break; default: duplicateRight = true; } if( duplicateRight ) { return alignRight(ca1, ca2, cpparams); } else { if(debug) { System.out.println("Swapping alignment order."); } AFPChain afpChain = this.alignRight(ca2, ca1, cpparams); return invertAlignment(afpChain); } }
class class_name[name] begin[{] method[align, return_type[type[AFPChain]], modifier[public], parameter[ca1, ca2, param]] begin[{] if[binary_operation[member[.param], instanceof, type[CECPParameters]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="CE algorithm needs an object of call CeParameters as argument.")], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=IllegalArgumentException, sub_type=None)), label=None) else begin[{] None end[}] local_variable[type[CECPParameters], cpparams] assign[THIS[member[None.params]], member[.cpparams]] local_variable[type[boolean], duplicateRight] SwitchStatement(cases=[SwitchStatementCase(case=['LEFT'], statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=duplicateRight, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=false)), label=None), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=['RIGHT'], statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=duplicateRight, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=true)), label=None), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=['SHORTER'], statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=duplicateRight, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=BinaryOperation(operandl=MemberReference(member=length, postfix_operators=[], prefix_operators=[], qualifier=ca1, selectors=[]), operandr=MemberReference(member=length, postfix_operators=[], prefix_operators=[], qualifier=ca2, selectors=[]), operator=>=)), label=None), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[], statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=duplicateRight, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=true)), label=None)])], expression=MethodInvocation(arguments=[], member=getDuplicationHint, postfix_operators=[], prefix_operators=[], qualifier=cpparams, selectors=[], type_arguments=None), label=None) if[member[.duplicateRight]] begin[{] return[call[.alignRight, parameter[member[.ca1], member[.ca2], member[.cpparams]]]] else begin[{] if[member[.debug]] begin[{] call[System.out.println, parameter[literal["Swapping alignment order."]]] else begin[{] None end[}] local_variable[type[AFPChain], afpChain] return[call[.invertAlignment, parameter[member[.afpChain]]]] end[}] end[}] END[}]
annotation[@] identifier[Override] Keyword[public] identifier[AFPChain] identifier[align] operator[SEP] identifier[Atom] operator[SEP] operator[SEP] identifier[ca1] , identifier[Atom] operator[SEP] operator[SEP] identifier[ca2] , identifier[Object] identifier[param] operator[SEP] Keyword[throws] identifier[StructureException] { Keyword[if] operator[SEP] operator[!] operator[SEP] identifier[param] Keyword[instanceof] identifier[CECPParameters] operator[SEP] operator[SEP] Keyword[throw] Keyword[new] identifier[IllegalArgumentException] operator[SEP] literal[String] operator[SEP] operator[SEP] identifier[CECPParameters] identifier[cpparams] operator[=] operator[SEP] identifier[CECPParameters] operator[SEP] identifier[param] operator[SEP] Keyword[this] operator[SEP] identifier[params] operator[=] identifier[cpparams] operator[SEP] Keyword[boolean] identifier[duplicateRight] operator[SEP] Keyword[switch] operator[SEP] identifier[cpparams] operator[SEP] identifier[getDuplicationHint] operator[SEP] operator[SEP] operator[SEP] { Keyword[case] identifier[LEFT] operator[:] identifier[duplicateRight] operator[=] literal[boolean] operator[SEP] Keyword[break] operator[SEP] Keyword[case] identifier[RIGHT] operator[:] identifier[duplicateRight] operator[=] literal[boolean] operator[SEP] Keyword[break] operator[SEP] Keyword[case] identifier[SHORTER] operator[:] identifier[duplicateRight] operator[=] identifier[ca1] operator[SEP] identifier[length] operator[>=] identifier[ca2] operator[SEP] identifier[length] operator[SEP] Keyword[break] operator[SEP] Keyword[default] operator[:] identifier[duplicateRight] operator[=] literal[boolean] operator[SEP] } Keyword[if] operator[SEP] identifier[duplicateRight] operator[SEP] { Keyword[return] identifier[alignRight] operator[SEP] identifier[ca1] , identifier[ca2] , identifier[cpparams] operator[SEP] operator[SEP] } Keyword[else] { Keyword[if] operator[SEP] identifier[debug] operator[SEP] { identifier[System] operator[SEP] identifier[out] operator[SEP] identifier[println] operator[SEP] literal[String] operator[SEP] operator[SEP] } identifier[AFPChain] identifier[afpChain] operator[=] Keyword[this] operator[SEP] identifier[alignRight] operator[SEP] identifier[ca2] , identifier[ca1] , identifier[cpparams] operator[SEP] operator[SEP] Keyword[return] identifier[invertAlignment] operator[SEP] identifier[afpChain] operator[SEP] operator[SEP] } }
public ListUserImportJobsResult withUserImportJobs(UserImportJobType... userImportJobs) { if (this.userImportJobs == null) { setUserImportJobs(new java.util.ArrayList<UserImportJobType>(userImportJobs.length)); } for (UserImportJobType ele : userImportJobs) { this.userImportJobs.add(ele); } return this; }
class class_name[name] begin[{] method[withUserImportJobs, return_type[type[ListUserImportJobsResult]], modifier[public], parameter[userImportJobs]] begin[{] if[binary_operation[THIS[member[None.userImportJobs]], ==, literal[null]]] begin[{] call[.setUserImportJobs, parameter[ClassCreator(arguments=[MemberReference(member=length, postfix_operators=[], prefix_operators=[], qualifier=userImportJobs, selectors=[])], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=java, sub_type=ReferenceType(arguments=None, dimensions=None, name=util, sub_type=ReferenceType(arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=UserImportJobType, sub_type=None))], dimensions=None, name=ArrayList, sub_type=None))))]] else begin[{] None end[}] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=This(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[MemberReference(member=userImportJobs, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None), MethodInvocation(arguments=[MemberReference(member=ele, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=add, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)]), label=None)]), control=EnhancedForControl(iterable=MemberReference(member=userImportJobs, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), var=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=None, name=ele)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=UserImportJobType, sub_type=None))), label=None) return[THIS[]] end[}] END[}]
Keyword[public] identifier[ListUserImportJobsResult] identifier[withUserImportJobs] operator[SEP] identifier[UserImportJobType] operator[...] identifier[userImportJobs] operator[SEP] { Keyword[if] operator[SEP] Keyword[this] operator[SEP] identifier[userImportJobs] operator[==] Other[null] operator[SEP] { identifier[setUserImportJobs] operator[SEP] Keyword[new] identifier[java] operator[SEP] identifier[util] operator[SEP] identifier[ArrayList] operator[<] identifier[UserImportJobType] operator[>] operator[SEP] identifier[userImportJobs] operator[SEP] identifier[length] operator[SEP] operator[SEP] operator[SEP] } Keyword[for] operator[SEP] identifier[UserImportJobType] identifier[ele] operator[:] identifier[userImportJobs] operator[SEP] { Keyword[this] operator[SEP] identifier[userImportJobs] operator[SEP] identifier[add] operator[SEP] identifier[ele] operator[SEP] operator[SEP] } Keyword[return] Keyword[this] operator[SEP] }
public void inherit(DocFinder.Input input, DocFinder.Output output) { Tag[] tags = input.element.tags("return"); if (tags.length > 0) { output.holder = input.element; output.holderTag = tags[0]; output.inlineTags = input.isFirstSentence ? tags[0].firstSentenceTags() : tags[0].inlineTags(); } }
class class_name[name] begin[{] method[inherit, return_type[void], modifier[public], parameter[input, output]] begin[{] local_variable[type[Tag], tags] if[binary_operation[member[tags.length], >, literal[0]]] begin[{] assign[member[output.holder], member[input.element]] assign[member[output.holderTag], member[.tags]] assign[member[output.inlineTags], TernaryExpression(condition=MemberReference(member=isFirstSentence, postfix_operators=[], prefix_operators=[], qualifier=input, selectors=[]), if_false=MemberReference(member=tags, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0)), MethodInvocation(arguments=[], member=inlineTags, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)]), if_true=MemberReference(member=tags, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0)), MethodInvocation(arguments=[], member=firstSentenceTags, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)]))] else begin[{] None end[}] end[}] END[}]
Keyword[public] Keyword[void] identifier[inherit] operator[SEP] identifier[DocFinder] operator[SEP] identifier[Input] identifier[input] , identifier[DocFinder] operator[SEP] identifier[Output] identifier[output] operator[SEP] { identifier[Tag] operator[SEP] operator[SEP] identifier[tags] operator[=] identifier[input] operator[SEP] identifier[element] operator[SEP] identifier[tags] operator[SEP] literal[String] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[tags] operator[SEP] identifier[length] operator[>] Other[0] operator[SEP] { identifier[output] operator[SEP] identifier[holder] operator[=] identifier[input] operator[SEP] identifier[element] operator[SEP] identifier[output] operator[SEP] identifier[holderTag] operator[=] identifier[tags] operator[SEP] Other[0] operator[SEP] operator[SEP] identifier[output] operator[SEP] identifier[inlineTags] operator[=] identifier[input] operator[SEP] identifier[isFirstSentence] operator[?] identifier[tags] operator[SEP] Other[0] operator[SEP] operator[SEP] identifier[firstSentenceTags] operator[SEP] operator[SEP] operator[:] identifier[tags] operator[SEP] Other[0] operator[SEP] operator[SEP] identifier[inlineTags] operator[SEP] operator[SEP] operator[SEP] } }
public static <L, M, R> MutableTriple<L, M, R> of(final L left, final M middle, final R right) { return new MutableTriple<>(left, middle, right); }
class class_name[name] begin[{] method[of, return_type[type[MutableTriple]], modifier[public static], parameter[left, middle, right]] begin[{] return[ClassCreator(arguments=[MemberReference(member=left, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=middle, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=right, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=[], dimensions=None, name=MutableTriple, sub_type=None))] end[}] END[}]
Keyword[public] Keyword[static] operator[<] identifier[L] , identifier[M] , identifier[R] operator[>] identifier[MutableTriple] operator[<] identifier[L] , identifier[M] , identifier[R] operator[>] identifier[of] operator[SEP] Keyword[final] identifier[L] identifier[left] , Keyword[final] identifier[M] identifier[middle] , Keyword[final] identifier[R] identifier[right] operator[SEP] { Keyword[return] Keyword[new] identifier[MutableTriple] operator[<] operator[>] operator[SEP] identifier[left] , identifier[middle] , identifier[right] operator[SEP] operator[SEP] }
protected void updateApp(String itemId) { I_CmsOuTreeType foundType = null; for (I_CmsOuTreeType type : m_app.getTreeTypeProvider().getTreeTypes()) { if (itemId.equals(type.getId())) { foundType = type; break; } } if (foundType != null) { m_app.update(m_parentOu, foundType, null); return; } m_app.update(itemId, CmsOuTreeType.OU, null, ""); }
class class_name[name] begin[{] method[updateApp, return_type[void], modifier[protected], parameter[itemId]] begin[{] local_variable[type[I_CmsOuTreeType], foundType] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=MethodInvocation(arguments=[MethodInvocation(arguments=[], member=getId, postfix_operators=[], prefix_operators=[], qualifier=type, selectors=[], type_arguments=None)], member=equals, postfix_operators=[], prefix_operators=[], qualifier=itemId, selectors=[], type_arguments=None), else_statement=None, label=None, then_statement=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=foundType, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MemberReference(member=type, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])), label=None), BreakStatement(goto=None, label=None)]))]), control=EnhancedForControl(iterable=MethodInvocation(arguments=[], member=getTreeTypeProvider, postfix_operators=[], prefix_operators=[], qualifier=m_app, selectors=[MethodInvocation(arguments=[], member=getTreeTypes, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)], type_arguments=None), var=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=None, name=type)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=I_CmsOuTreeType, sub_type=None))), label=None) if[binary_operation[member[.foundType], !=, literal[null]]] begin[{] call[m_app.update, parameter[member[.m_parentOu], member[.foundType], literal[null]]] return[None] else begin[{] None end[}] call[m_app.update, parameter[member[.itemId], member[CmsOuTreeType.OU], literal[null], literal[""]]] end[}] END[}]
Keyword[protected] Keyword[void] identifier[updateApp] operator[SEP] identifier[String] identifier[itemId] operator[SEP] { identifier[I_CmsOuTreeType] identifier[foundType] operator[=] Other[null] operator[SEP] Keyword[for] operator[SEP] identifier[I_CmsOuTreeType] identifier[type] operator[:] identifier[m_app] operator[SEP] identifier[getTreeTypeProvider] operator[SEP] operator[SEP] operator[SEP] identifier[getTreeTypes] operator[SEP] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[itemId] operator[SEP] identifier[equals] operator[SEP] identifier[type] operator[SEP] identifier[getId] operator[SEP] operator[SEP] operator[SEP] operator[SEP] { identifier[foundType] operator[=] identifier[type] operator[SEP] Keyword[break] operator[SEP] } } Keyword[if] operator[SEP] identifier[foundType] operator[!=] Other[null] operator[SEP] { identifier[m_app] operator[SEP] identifier[update] operator[SEP] identifier[m_parentOu] , identifier[foundType] , Other[null] operator[SEP] operator[SEP] Keyword[return] operator[SEP] } identifier[m_app] operator[SEP] identifier[update] operator[SEP] identifier[itemId] , identifier[CmsOuTreeType] operator[SEP] identifier[OU] , Other[null] , literal[String] operator[SEP] operator[SEP] }
protected EJSDeployedSupport lockSingleton() { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isEntryEnabled()) Tr.entry(tc, "lockSingleton: " + this); EJSHome home; EJSDeployedSupport s = null; try { // Get the currently installed and active home for this timer. home = EJSContainer.getDefaultContainer().getInstalledHome(j2eeName); } catch (EJBNotFoundException ejbnfex) { FFDCFilter.processException(ejbnfex, CLASS_NAME + ".lockSingleton", "305", this); if (isTraceOn && tc.isEntryEnabled()) Tr.exit(tc, "lockSingleton: Failed locating timer bean " + j2eeName + " : " + ejbnfex); throw new TimerServiceException("Failed locating timer bean " + j2eeName, ejbnfex); } // Calling BeanO.preInvoke to obtain a lock is only needed for singleton beans with // container managed concurrency that have been configured to run in a global transaction. if (home.ivSingletonSessionHome && !home.beanMetaData.ivSingletonUsesBeanManagedConcurrency) { EJBMethodInfoImpl[] timerMethodInfos = home.beanMetaData.timedMethodInfos; if (timerMethodInfos != null && methodId < timerMethodInfos.length) { if (runInGlobalTransaction(timerMethodInfos[methodId])) { s = new EJSDeployedSupport(); s.methodId = methodId; s.methodInfo = timerMethodInfos[methodId]; s.beanO = home.createSingletonBeanO(); try { s.beanO.preInvoke(s, null); } catch (Throwable ex) { FFDCFilter.processException(ex, CLASS_NAME + ".lockSingleton", "403", this); if (isTraceOn && tc.isDebugEnabled()) Tr.debug(tc, "Unexpected failure calling beanO.preInvoke: " + ex); try { s.beanO.postInvoke(methodId, s); } catch (Throwable exPost) { FFDCFilter.processException(exPost, CLASS_NAME + ".lockSingleton", "409", this); if (isTraceOn && tc.isDebugEnabled()) Tr.debug(tc, "Unexpected failure calling beanO.postInvoke: " + exPost); } if (isTraceOn && tc.isEntryEnabled()) Tr.exit(tc, "lockSingleton: Failure acquiring lock for bean " + j2eeName + " : " + ex); throw ExceptionUtil.EJBException("Failure acquiring lock for bean " + j2eeName, ex); } } } else { // The run() method will report this as an error later if (isTraceOn && tc.isDebugEnabled()) Tr.debug(tc, "Timer method no longer present on bean??"); } } else { if (isTraceOn && tc.isDebugEnabled()) Tr.debug(tc, "not a container managed concurrency singleton bean"); } if (isTraceOn && tc.isEntryEnabled()) Tr.exit(tc, "lockSingleton: " + s); return s; }
class class_name[name] begin[{] method[lockSingleton, return_type[type[EJSDeployedSupport]], modifier[protected], parameter[]] begin[{] local_variable[type[boolean], isTraceOn] if[binary_operation[member[.isTraceOn], &&, call[tc.isEntryEnabled, parameter[]]]] begin[{] call[Tr.entry, parameter[member[.tc], binary_operation[literal["lockSingleton: "], +, THIS[]]]] else begin[{] None end[}] local_variable[type[EJSHome], home] local_variable[type[EJSDeployedSupport], s] TryStatement(block=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=home, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MethodInvocation(arguments=[], member=getDefaultContainer, postfix_operators=[], prefix_operators=[], qualifier=EJSContainer, selectors=[MethodInvocation(arguments=[MemberReference(member=j2eeName, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=getInstalledHome, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)], type_arguments=None)), label=None)], catches=[CatchClause(block=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=ejbnfex, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), BinaryOperation(operandl=MemberReference(member=CLASS_NAME, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=".lockSingleton"), operator=+), Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="305"), This(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[])], member=processException, postfix_operators=[], prefix_operators=[], qualifier=FFDCFilter, selectors=[], type_arguments=None), label=None), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=isTraceOn, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MethodInvocation(arguments=[], member=isEntryEnabled, postfix_operators=[], prefix_operators=[], qualifier=tc, selectors=[], type_arguments=None), operator=&&), else_statement=None, label=None, then_statement=StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=tc, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), BinaryOperation(operandl=BinaryOperation(operandl=BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="lockSingleton: Failed locating timer bean "), operandr=MemberReference(member=j2eeName, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=+), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=" : "), operator=+), operandr=MemberReference(member=ejbnfex, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=+)], member=exit, postfix_operators=[], prefix_operators=[], qualifier=Tr, selectors=[], type_arguments=None), label=None)), ThrowStatement(expression=ClassCreator(arguments=[BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="Failed locating timer bean "), operandr=MemberReference(member=j2eeName, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=+), MemberReference(member=ejbnfex, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=TimerServiceException, sub_type=None)), label=None)], label=None, parameter=CatchClauseParameter(annotations=None, modifiers=None, name=ejbnfex, types=['EJBNotFoundException']))], finally_block=None, label=None, resources=None) if[binary_operation[member[home.ivSingletonSessionHome], &&, member[home.beanMetaData.ivSingletonUsesBeanManagedConcurrency]]] begin[{] local_variable[type[EJBMethodInfoImpl], timerMethodInfos] if[binary_operation[binary_operation[member[.timerMethodInfos], !=, literal[null]], &&, binary_operation[member[.methodId], <, member[timerMethodInfos.length]]]] begin[{] if[call[.runInGlobalTransaction, parameter[member[.timerMethodInfos]]]] begin[{] assign[member[.s], ClassCreator(arguments=[], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=EJSDeployedSupport, sub_type=None))] assign[member[s.methodId], member[.methodId]] assign[member[s.methodInfo], member[.timerMethodInfos]] assign[member[s.beanO], call[home.createSingletonBeanO, parameter[]]] TryStatement(block=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=s, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=null)], member=preInvoke, postfix_operators=[], prefix_operators=[], qualifier=s.beanO, selectors=[], type_arguments=None), label=None)], catches=[CatchClause(block=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=ex, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), BinaryOperation(operandl=MemberReference(member=CLASS_NAME, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=".lockSingleton"), operator=+), Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="403"), This(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[])], member=processException, postfix_operators=[], prefix_operators=[], qualifier=FFDCFilter, selectors=[], type_arguments=None), label=None), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=isTraceOn, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MethodInvocation(arguments=[], member=isDebugEnabled, postfix_operators=[], prefix_operators=[], qualifier=tc, selectors=[], type_arguments=None), operator=&&), else_statement=None, label=None, then_statement=StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=tc, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="Unexpected failure calling beanO.preInvoke: "), operandr=MemberReference(member=ex, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=+)], member=debug, postfix_operators=[], prefix_operators=[], qualifier=Tr, selectors=[], type_arguments=None), label=None)), TryStatement(block=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=methodId, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=s, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=postInvoke, postfix_operators=[], prefix_operators=[], qualifier=s.beanO, selectors=[], type_arguments=None), label=None)], catches=[CatchClause(block=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=exPost, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), BinaryOperation(operandl=MemberReference(member=CLASS_NAME, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=".lockSingleton"), operator=+), Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="409"), This(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[])], member=processException, postfix_operators=[], prefix_operators=[], qualifier=FFDCFilter, selectors=[], type_arguments=None), label=None), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=isTraceOn, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MethodInvocation(arguments=[], member=isDebugEnabled, postfix_operators=[], prefix_operators=[], qualifier=tc, selectors=[], type_arguments=None), operator=&&), else_statement=None, label=None, then_statement=StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=tc, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="Unexpected failure calling beanO.postInvoke: "), operandr=MemberReference(member=exPost, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=+)], member=debug, postfix_operators=[], prefix_operators=[], qualifier=Tr, selectors=[], type_arguments=None), label=None))], label=None, parameter=CatchClauseParameter(annotations=None, modifiers=None, name=exPost, types=['Throwable']))], finally_block=None, label=None, resources=None), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=isTraceOn, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MethodInvocation(arguments=[], member=isEntryEnabled, postfix_operators=[], prefix_operators=[], qualifier=tc, selectors=[], type_arguments=None), operator=&&), else_statement=None, label=None, then_statement=StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=tc, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), BinaryOperation(operandl=BinaryOperation(operandl=BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="lockSingleton: Failure acquiring lock for bean "), operandr=MemberReference(member=j2eeName, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=+), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=" : "), operator=+), operandr=MemberReference(member=ex, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=+)], member=exit, postfix_operators=[], prefix_operators=[], qualifier=Tr, selectors=[], type_arguments=None), label=None)), ThrowStatement(expression=MethodInvocation(arguments=[BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="Failure acquiring lock for bean "), operandr=MemberReference(member=j2eeName, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=+), MemberReference(member=ex, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=EJBException, postfix_operators=[], prefix_operators=[], qualifier=ExceptionUtil, selectors=[], type_arguments=None), label=None)], label=None, parameter=CatchClauseParameter(annotations=None, modifiers=None, name=ex, types=['Throwable']))], finally_block=None, label=None, resources=None) else begin[{] None end[}] else begin[{] if[binary_operation[member[.isTraceOn], &&, call[tc.isDebugEnabled, parameter[]]]] begin[{] call[Tr.debug, parameter[member[.tc], literal["Timer method no longer present on bean??"]]] else begin[{] None end[}] end[}] else begin[{] if[binary_operation[member[.isTraceOn], &&, call[tc.isDebugEnabled, parameter[]]]] begin[{] call[Tr.debug, parameter[member[.tc], literal["not a container managed concurrency singleton bean"]]] else begin[{] None end[}] end[}] if[binary_operation[member[.isTraceOn], &&, call[tc.isEntryEnabled, parameter[]]]] begin[{] call[Tr.exit, parameter[member[.tc], binary_operation[literal["lockSingleton: "], +, member[.s]]]] else begin[{] None end[}] return[member[.s]] end[}] END[}]
Keyword[protected] identifier[EJSDeployedSupport] identifier[lockSingleton] operator[SEP] operator[SEP] { Keyword[final] Keyword[boolean] identifier[isTraceOn] operator[=] identifier[TraceComponent] operator[SEP] identifier[isAnyTracingEnabled] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[isTraceOn] operator[&&] identifier[tc] operator[SEP] identifier[isEntryEnabled] operator[SEP] operator[SEP] operator[SEP] identifier[Tr] operator[SEP] identifier[entry] operator[SEP] identifier[tc] , literal[String] operator[+] Keyword[this] operator[SEP] operator[SEP] identifier[EJSHome] identifier[home] operator[SEP] identifier[EJSDeployedSupport] identifier[s] operator[=] Other[null] operator[SEP] Keyword[try] { identifier[home] operator[=] identifier[EJSContainer] operator[SEP] identifier[getDefaultContainer] operator[SEP] operator[SEP] operator[SEP] identifier[getInstalledHome] operator[SEP] identifier[j2eeName] operator[SEP] operator[SEP] } Keyword[catch] operator[SEP] identifier[EJBNotFoundException] identifier[ejbnfex] operator[SEP] { identifier[FFDCFilter] operator[SEP] identifier[processException] operator[SEP] identifier[ejbnfex] , identifier[CLASS_NAME] operator[+] literal[String] , literal[String] , Keyword[this] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[isTraceOn] operator[&&] identifier[tc] operator[SEP] identifier[isEntryEnabled] operator[SEP] operator[SEP] operator[SEP] identifier[Tr] operator[SEP] identifier[exit] operator[SEP] identifier[tc] , literal[String] operator[+] identifier[j2eeName] operator[+] literal[String] operator[+] identifier[ejbnfex] operator[SEP] operator[SEP] Keyword[throw] Keyword[new] identifier[TimerServiceException] operator[SEP] literal[String] operator[+] identifier[j2eeName] , identifier[ejbnfex] operator[SEP] operator[SEP] } Keyword[if] operator[SEP] identifier[home] operator[SEP] identifier[ivSingletonSessionHome] operator[&&] operator[!] identifier[home] operator[SEP] identifier[beanMetaData] operator[SEP] identifier[ivSingletonUsesBeanManagedConcurrency] operator[SEP] { identifier[EJBMethodInfoImpl] operator[SEP] operator[SEP] identifier[timerMethodInfos] operator[=] identifier[home] operator[SEP] identifier[beanMetaData] operator[SEP] identifier[timedMethodInfos] operator[SEP] Keyword[if] operator[SEP] identifier[timerMethodInfos] operator[!=] Other[null] operator[&&] identifier[methodId] operator[<] identifier[timerMethodInfos] operator[SEP] identifier[length] operator[SEP] { Keyword[if] operator[SEP] identifier[runInGlobalTransaction] operator[SEP] identifier[timerMethodInfos] operator[SEP] identifier[methodId] operator[SEP] operator[SEP] operator[SEP] { identifier[s] operator[=] Keyword[new] identifier[EJSDeployedSupport] operator[SEP] operator[SEP] operator[SEP] identifier[s] operator[SEP] identifier[methodId] operator[=] identifier[methodId] operator[SEP] identifier[s] operator[SEP] identifier[methodInfo] operator[=] identifier[timerMethodInfos] operator[SEP] identifier[methodId] operator[SEP] operator[SEP] identifier[s] operator[SEP] identifier[beanO] operator[=] identifier[home] operator[SEP] identifier[createSingletonBeanO] operator[SEP] operator[SEP] operator[SEP] Keyword[try] { identifier[s] operator[SEP] identifier[beanO] operator[SEP] identifier[preInvoke] operator[SEP] identifier[s] , Other[null] operator[SEP] operator[SEP] } Keyword[catch] operator[SEP] identifier[Throwable] identifier[ex] operator[SEP] { identifier[FFDCFilter] operator[SEP] identifier[processException] operator[SEP] identifier[ex] , identifier[CLASS_NAME] operator[+] literal[String] , literal[String] , Keyword[this] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[isTraceOn] operator[&&] identifier[tc] operator[SEP] identifier[isDebugEnabled] operator[SEP] operator[SEP] operator[SEP] identifier[Tr] operator[SEP] identifier[debug] operator[SEP] identifier[tc] , literal[String] operator[+] identifier[ex] operator[SEP] operator[SEP] Keyword[try] { identifier[s] operator[SEP] identifier[beanO] operator[SEP] identifier[postInvoke] operator[SEP] identifier[methodId] , identifier[s] operator[SEP] operator[SEP] } Keyword[catch] operator[SEP] identifier[Throwable] identifier[exPost] operator[SEP] { identifier[FFDCFilter] operator[SEP] identifier[processException] operator[SEP] identifier[exPost] , identifier[CLASS_NAME] operator[+] literal[String] , literal[String] , Keyword[this] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[isTraceOn] operator[&&] identifier[tc] operator[SEP] identifier[isDebugEnabled] operator[SEP] operator[SEP] operator[SEP] identifier[Tr] operator[SEP] identifier[debug] operator[SEP] identifier[tc] , literal[String] operator[+] identifier[exPost] operator[SEP] operator[SEP] } Keyword[if] operator[SEP] identifier[isTraceOn] operator[&&] identifier[tc] operator[SEP] identifier[isEntryEnabled] operator[SEP] operator[SEP] operator[SEP] identifier[Tr] operator[SEP] identifier[exit] operator[SEP] identifier[tc] , literal[String] operator[+] identifier[j2eeName] operator[+] literal[String] operator[+] identifier[ex] operator[SEP] operator[SEP] Keyword[throw] identifier[ExceptionUtil] operator[SEP] identifier[EJBException] operator[SEP] literal[String] operator[+] identifier[j2eeName] , identifier[ex] operator[SEP] operator[SEP] } } } Keyword[else] { Keyword[if] operator[SEP] identifier[isTraceOn] operator[&&] identifier[tc] operator[SEP] identifier[isDebugEnabled] operator[SEP] operator[SEP] operator[SEP] identifier[Tr] operator[SEP] identifier[debug] operator[SEP] identifier[tc] , literal[String] operator[SEP] operator[SEP] } } Keyword[else] { Keyword[if] operator[SEP] identifier[isTraceOn] operator[&&] identifier[tc] operator[SEP] identifier[isDebugEnabled] operator[SEP] operator[SEP] operator[SEP] identifier[Tr] operator[SEP] identifier[debug] operator[SEP] identifier[tc] , literal[String] operator[SEP] operator[SEP] } Keyword[if] operator[SEP] identifier[isTraceOn] operator[&&] identifier[tc] operator[SEP] identifier[isEntryEnabled] operator[SEP] operator[SEP] operator[SEP] identifier[Tr] operator[SEP] identifier[exit] operator[SEP] identifier[tc] , literal[String] operator[+] identifier[s] operator[SEP] operator[SEP] Keyword[return] identifier[s] operator[SEP] }
@Path("version") @GET @Produces(MediaType.APPLICATION_JSON) public Response version() { try { InputStream is = getClass().getResourceAsStream("/application.properties"); Properties props = new Properties(); props.load(is); String version = props.get("version").toString(); String buildNumber = props.get("buildNumber").toString(); return Response.ok().entity( "{\"version\":\"" + version + "\",\"build\":\"" + buildNumber + "\"}").build(); } catch (IOException e) { //should never happen throw new RuntimeException(e); } }
class class_name[name] begin[{] method[version, return_type[type[Response]], modifier[public], parameter[]] begin[{] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[], member=getClass, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="/application.properties")], member=getResourceAsStream, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)], type_arguments=None), name=is)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=InputStream, sub_type=None)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=ClassCreator(arguments=[], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=Properties, sub_type=None)), name=props)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=Properties, sub_type=None)), StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=is, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=load, postfix_operators=[], prefix_operators=[], qualifier=props, selectors=[], type_arguments=None), label=None), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="version")], member=get, postfix_operators=[], prefix_operators=[], qualifier=props, selectors=[MethodInvocation(arguments=[], member=toString, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)], type_arguments=None), name=version)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=String, sub_type=None)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="buildNumber")], member=get, postfix_operators=[], prefix_operators=[], qualifier=props, selectors=[MethodInvocation(arguments=[], member=toString, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)], type_arguments=None), name=buildNumber)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=String, sub_type=None)), ReturnStatement(expression=MethodInvocation(arguments=[], member=ok, postfix_operators=[], prefix_operators=[], qualifier=Response, selectors=[MethodInvocation(arguments=[BinaryOperation(operandl=BinaryOperation(operandl=BinaryOperation(operandl=BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="{\"version\":\""), operandr=MemberReference(member=version, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=+), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="\",\"build\":\""), operator=+), operandr=MemberReference(member=buildNumber, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=+), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="\"}"), operator=+)], member=entity, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None), MethodInvocation(arguments=[], member=build, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)], type_arguments=None), label=None)], catches=[CatchClause(block=[ThrowStatement(expression=ClassCreator(arguments=[MemberReference(member=e, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=RuntimeException, sub_type=None)), label=None)], label=None, parameter=CatchClauseParameter(annotations=None, modifiers=None, name=e, types=['IOException']))], finally_block=None, label=None, resources=None) end[}] END[}]
annotation[@] identifier[Path] operator[SEP] literal[String] operator[SEP] annotation[@] identifier[GET] annotation[@] identifier[Produces] operator[SEP] identifier[MediaType] operator[SEP] identifier[APPLICATION_JSON] operator[SEP] Keyword[public] identifier[Response] identifier[version] operator[SEP] operator[SEP] { Keyword[try] { identifier[InputStream] identifier[is] operator[=] identifier[getClass] operator[SEP] operator[SEP] operator[SEP] identifier[getResourceAsStream] operator[SEP] literal[String] operator[SEP] operator[SEP] identifier[Properties] identifier[props] operator[=] Keyword[new] identifier[Properties] operator[SEP] operator[SEP] operator[SEP] identifier[props] operator[SEP] identifier[load] operator[SEP] identifier[is] operator[SEP] operator[SEP] identifier[String] identifier[version] operator[=] identifier[props] operator[SEP] identifier[get] operator[SEP] literal[String] operator[SEP] operator[SEP] identifier[toString] operator[SEP] operator[SEP] operator[SEP] identifier[String] identifier[buildNumber] operator[=] identifier[props] operator[SEP] identifier[get] operator[SEP] literal[String] operator[SEP] operator[SEP] identifier[toString] operator[SEP] operator[SEP] operator[SEP] Keyword[return] identifier[Response] operator[SEP] identifier[ok] operator[SEP] operator[SEP] operator[SEP] identifier[entity] operator[SEP] literal[String] operator[+] identifier[version] operator[+] literal[String] operator[+] identifier[buildNumber] operator[+] literal[String] operator[SEP] operator[SEP] identifier[build] operator[SEP] operator[SEP] operator[SEP] } Keyword[catch] operator[SEP] identifier[IOException] identifier[e] operator[SEP] { Keyword[throw] Keyword[new] identifier[RuntimeException] operator[SEP] identifier[e] operator[SEP] operator[SEP] } }
@Override public Schema getSchema() { if (this.workUnit.contains(ConfigurationKeys.SOURCE_SCHEMA)) { return new Schema.Parser().parse(this.workUnit.getProp(ConfigurationKeys.SOURCE_SCHEMA)); } AvroFsHelper hfsHelper = (AvroFsHelper) this.fsHelper; if (this.filesToPull.isEmpty()) { return null; } try { return hfsHelper.getAvroSchema(this.filesToPull.get(0)); } catch (FileBasedHelperException e) { Throwables.propagate(e); return null; } }
class class_name[name] begin[{] method[getSchema, return_type[type[Schema]], modifier[public], parameter[]] begin[{] if[THIS[member[None.workUnit]call[None.contains, parameter[member[ConfigurationKeys.SOURCE_SCHEMA]]]]] begin[{] return[ClassCreator(arguments=[], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[MethodInvocation(arguments=[This(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[MemberReference(member=workUnit, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None), MethodInvocation(arguments=[MemberReference(member=SOURCE_SCHEMA, postfix_operators=[], prefix_operators=[], qualifier=ConfigurationKeys, selectors=[])], member=getProp, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)])], member=parse, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)], type=ReferenceType(arguments=None, dimensions=None, name=Schema, sub_type=ReferenceType(arguments=None, dimensions=None, name=Parser, sub_type=None)))] else begin[{] None end[}] local_variable[type[AvroFsHelper], hfsHelper] if[THIS[member[None.filesToPull]call[None.isEmpty, parameter[]]]] begin[{] return[literal[null]] else begin[{] None end[}] TryStatement(block=[ReturnStatement(expression=MethodInvocation(arguments=[This(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[MemberReference(member=filesToPull, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None), MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0)], member=get, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)])], member=getAvroSchema, postfix_operators=[], prefix_operators=[], qualifier=hfsHelper, selectors=[], type_arguments=None), label=None)], catches=[CatchClause(block=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=e, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=propagate, postfix_operators=[], prefix_operators=[], qualifier=Throwables, selectors=[], type_arguments=None), label=None), ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=null), label=None)], label=None, parameter=CatchClauseParameter(annotations=None, modifiers=None, name=e, types=['FileBasedHelperException']))], finally_block=None, label=None, resources=None) end[}] END[}]
annotation[@] identifier[Override] Keyword[public] identifier[Schema] identifier[getSchema] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] Keyword[this] operator[SEP] identifier[workUnit] operator[SEP] identifier[contains] operator[SEP] identifier[ConfigurationKeys] operator[SEP] identifier[SOURCE_SCHEMA] operator[SEP] operator[SEP] { Keyword[return] Keyword[new] identifier[Schema] operator[SEP] identifier[Parser] operator[SEP] operator[SEP] operator[SEP] identifier[parse] operator[SEP] Keyword[this] operator[SEP] identifier[workUnit] operator[SEP] identifier[getProp] operator[SEP] identifier[ConfigurationKeys] operator[SEP] identifier[SOURCE_SCHEMA] operator[SEP] operator[SEP] operator[SEP] } identifier[AvroFsHelper] identifier[hfsHelper] operator[=] operator[SEP] identifier[AvroFsHelper] operator[SEP] Keyword[this] operator[SEP] identifier[fsHelper] operator[SEP] Keyword[if] operator[SEP] Keyword[this] operator[SEP] identifier[filesToPull] operator[SEP] identifier[isEmpty] operator[SEP] operator[SEP] operator[SEP] { Keyword[return] Other[null] operator[SEP] } Keyword[try] { Keyword[return] identifier[hfsHelper] operator[SEP] identifier[getAvroSchema] operator[SEP] Keyword[this] operator[SEP] identifier[filesToPull] operator[SEP] identifier[get] operator[SEP] Other[0] operator[SEP] operator[SEP] operator[SEP] } Keyword[catch] operator[SEP] identifier[FileBasedHelperException] identifier[e] operator[SEP] { identifier[Throwables] operator[SEP] identifier[propagate] operator[SEP] identifier[e] operator[SEP] operator[SEP] Keyword[return] Other[null] operator[SEP] } }
@Override public void handlePopups() { /* * try { executeJavaScript("window.alert = function(msg){return true;};" + * "window.confirm = function(msg){return true;};" + * "window.prompt = function(msg){return true;};"); } catch (CrawljaxException e) { * LOGGER.error("Handling of PopUp windows failed", e); } */ /* Workaround: Popups handling currently not supported in PhantomJS. */ if (browser instanceof PhantomJSDriver) { return; } if (ExpectedConditions.alertIsPresent().apply(browser) != null) { try { browser.switchTo().alert().accept(); LOGGER.info("Alert accepted"); } catch (Exception e) { LOGGER.error("Handling of PopUp windows failed"); } } }
class class_name[name] begin[{] method[handlePopups, return_type[void], modifier[public], parameter[]] begin[{] if[binary_operation[member[.browser], instanceof, type[PhantomJSDriver]]] begin[{] return[None] else begin[{] None end[}] if[binary_operation[call[ExpectedConditions.alertIsPresent, parameter[]], !=, literal[null]]] begin[{] TryStatement(block=[StatementExpression(expression=MethodInvocation(arguments=[], member=switchTo, postfix_operators=[], prefix_operators=[], qualifier=browser, selectors=[MethodInvocation(arguments=[], member=alert, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None), MethodInvocation(arguments=[], member=accept, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="Alert accepted")], member=info, postfix_operators=[], prefix_operators=[], qualifier=LOGGER, selectors=[], type_arguments=None), label=None)], catches=[CatchClause(block=[StatementExpression(expression=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="Handling of PopUp windows failed")], member=error, postfix_operators=[], prefix_operators=[], qualifier=LOGGER, selectors=[], type_arguments=None), label=None)], label=None, parameter=CatchClauseParameter(annotations=None, modifiers=None, name=e, types=['Exception']))], finally_block=None, label=None, resources=None) else begin[{] None end[}] end[}] END[}]
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[handlePopups] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[browser] Keyword[instanceof] identifier[PhantomJSDriver] operator[SEP] { Keyword[return] operator[SEP] } Keyword[if] operator[SEP] identifier[ExpectedConditions] operator[SEP] identifier[alertIsPresent] operator[SEP] operator[SEP] operator[SEP] identifier[apply] operator[SEP] identifier[browser] operator[SEP] operator[!=] Other[null] operator[SEP] { Keyword[try] { identifier[browser] operator[SEP] identifier[switchTo] operator[SEP] operator[SEP] operator[SEP] identifier[alert] operator[SEP] operator[SEP] operator[SEP] identifier[accept] operator[SEP] operator[SEP] operator[SEP] identifier[LOGGER] operator[SEP] identifier[info] operator[SEP] literal[String] operator[SEP] operator[SEP] } Keyword[catch] operator[SEP] identifier[Exception] identifier[e] operator[SEP] { identifier[LOGGER] operator[SEP] identifier[error] operator[SEP] literal[String] operator[SEP] operator[SEP] } } }
public final TcpServer doOnBind(Consumer<? super ServerBootstrap> doOnBind) { Objects.requireNonNull(doOnBind, "doOnBind"); return new TcpServerDoOn(this, doOnBind, null, null); }
class class_name[name] begin[{] method[doOnBind, return_type[type[TcpServer]], modifier[final public], parameter[doOnBind]] begin[{] call[Objects.requireNonNull, parameter[member[.doOnBind], literal["doOnBind"]]] return[ClassCreator(arguments=[This(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[]), MemberReference(member=doOnBind, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=null), Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=null)], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=TcpServerDoOn, sub_type=None))] end[}] END[}]
Keyword[public] Keyword[final] identifier[TcpServer] identifier[doOnBind] operator[SEP] identifier[Consumer] operator[<] operator[?] Keyword[super] identifier[ServerBootstrap] operator[>] identifier[doOnBind] operator[SEP] { identifier[Objects] operator[SEP] identifier[requireNonNull] operator[SEP] identifier[doOnBind] , literal[String] operator[SEP] operator[SEP] Keyword[return] Keyword[new] identifier[TcpServerDoOn] operator[SEP] Keyword[this] , identifier[doOnBind] , Other[null] , Other[null] operator[SEP] operator[SEP] }
private Object getImplementationInstance(ClassLoader classLoader, String factoryName, List implementations) throws FacesException { Object result = null; String curImplClass; int len; // step 1. if (null != implementations && (1 < (len = implementations.size()) || 1 == len)) { curImplClass = (String) implementations.remove(len - 1); // since this is the hard coded implementation default, // there is no preceding implementation, so don't bother // with a non-zero-arg ctor. result = getImplGivenPreviousImpl(classLoader, factoryName, curImplClass, null); } // step 2. List<String> fromServices = getImplNameFromServices(classLoader, factoryName); if (fromServices != null) { for (String name : fromServices) { result = getImplGivenPreviousImpl(classLoader, factoryName, name, result); } } // step 3. if (null != implementations) { for (len = (implementations.size() - 1); 0 <= len; len--) { curImplClass = (String) implementations.remove(len); result = getImplGivenPreviousImpl(classLoader, factoryName, curImplClass, result); } } return result; }
class class_name[name] begin[{] method[getImplementationInstance, return_type[type[Object]], modifier[private], parameter[classLoader, factoryName, implementations]] begin[{] local_variable[type[Object], result] local_variable[type[String], curImplClass] local_variable[type[int], len] if[binary_operation[binary_operation[literal[null], !=, member[.implementations]], &&, binary_operation[binary_operation[literal[1], <, assign[member[.len], call[implementations.size, parameter[]]]], ||, binary_operation[literal[1], ==, member[.len]]]]] begin[{] assign[member[.curImplClass], Cast(expression=MethodInvocation(arguments=[BinaryOperation(operandl=MemberReference(member=len, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), operator=-)], member=remove, postfix_operators=[], prefix_operators=[], qualifier=implementations, selectors=[], type_arguments=None), type=ReferenceType(arguments=None, dimensions=[], name=String, sub_type=None))] assign[member[.result], call[.getImplGivenPreviousImpl, parameter[member[.classLoader], member[.factoryName], member[.curImplClass], literal[null]]]] else begin[{] None end[}] local_variable[type[List], fromServices] if[binary_operation[member[.fromServices], !=, literal[null]]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=result, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MethodInvocation(arguments=[MemberReference(member=classLoader, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=factoryName, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=name, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=result, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=getImplGivenPreviousImpl, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None)), label=None)]), control=EnhancedForControl(iterable=MemberReference(member=fromServices, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), var=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=None, name=name)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=String, sub_type=None))), label=None) else begin[{] None end[}] if[binary_operation[literal[null], !=, member[.implementations]]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=curImplClass, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=Cast(expression=MethodInvocation(arguments=[MemberReference(member=len, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=remove, postfix_operators=[], prefix_operators=[], qualifier=implementations, selectors=[], type_arguments=None), type=ReferenceType(arguments=None, dimensions=[], name=String, sub_type=None))), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=result, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MethodInvocation(arguments=[MemberReference(member=classLoader, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=factoryName, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=curImplClass, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=result, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=getImplGivenPreviousImpl, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None)), label=None)]), control=ForControl(condition=BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), operandr=MemberReference(member=len, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=<=), init=[Assignment(expressionl=MemberReference(member=len, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=BinaryOperation(operandl=MethodInvocation(arguments=[], member=size, postfix_operators=[], prefix_operators=[], qualifier=implementations, selectors=[], type_arguments=None), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), operator=-))], update=[MemberReference(member=len, postfix_operators=['--'], prefix_operators=[], qualifier=, selectors=[])]), label=None) else begin[{] None end[}] return[member[.result]] end[}] END[}]
Keyword[private] identifier[Object] identifier[getImplementationInstance] operator[SEP] identifier[ClassLoader] identifier[classLoader] , identifier[String] identifier[factoryName] , identifier[List] identifier[implementations] operator[SEP] Keyword[throws] identifier[FacesException] { identifier[Object] identifier[result] operator[=] Other[null] operator[SEP] identifier[String] identifier[curImplClass] operator[SEP] Keyword[int] identifier[len] operator[SEP] Keyword[if] operator[SEP] Other[null] operator[!=] identifier[implementations] operator[&&] operator[SEP] Other[1] operator[<] operator[SEP] identifier[len] operator[=] identifier[implementations] operator[SEP] identifier[size] operator[SEP] operator[SEP] operator[SEP] operator[||] Other[1] operator[==] identifier[len] operator[SEP] operator[SEP] { identifier[curImplClass] operator[=] operator[SEP] identifier[String] operator[SEP] identifier[implementations] operator[SEP] identifier[remove] operator[SEP] identifier[len] operator[-] Other[1] operator[SEP] operator[SEP] identifier[result] operator[=] identifier[getImplGivenPreviousImpl] operator[SEP] identifier[classLoader] , identifier[factoryName] , identifier[curImplClass] , Other[null] operator[SEP] operator[SEP] } identifier[List] operator[<] identifier[String] operator[>] identifier[fromServices] operator[=] identifier[getImplNameFromServices] operator[SEP] identifier[classLoader] , identifier[factoryName] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[fromServices] operator[!=] Other[null] operator[SEP] { Keyword[for] operator[SEP] identifier[String] identifier[name] operator[:] identifier[fromServices] operator[SEP] { identifier[result] operator[=] identifier[getImplGivenPreviousImpl] operator[SEP] identifier[classLoader] , identifier[factoryName] , identifier[name] , identifier[result] operator[SEP] operator[SEP] } } Keyword[if] operator[SEP] Other[null] operator[!=] identifier[implementations] operator[SEP] { Keyword[for] operator[SEP] identifier[len] operator[=] operator[SEP] identifier[implementations] operator[SEP] identifier[size] operator[SEP] operator[SEP] operator[-] Other[1] operator[SEP] operator[SEP] Other[0] operator[<=] identifier[len] operator[SEP] identifier[len] operator[--] operator[SEP] { identifier[curImplClass] operator[=] operator[SEP] identifier[String] operator[SEP] identifier[implementations] operator[SEP] identifier[remove] operator[SEP] identifier[len] operator[SEP] operator[SEP] identifier[result] operator[=] identifier[getImplGivenPreviousImpl] operator[SEP] identifier[classLoader] , identifier[factoryName] , identifier[curImplClass] , identifier[result] operator[SEP] operator[SEP] } } Keyword[return] identifier[result] operator[SEP] }
@Override public void trimToSize(){ if ( atoms instanceof ArrayList<?>) { ArrayList<Atom> myatoms = (ArrayList<Atom>) atoms; myatoms.trimToSize(); } if ( altLocs instanceof ArrayList<?>){ ArrayList<Group> myAltLocs = (ArrayList<Group>) altLocs; myAltLocs.trimToSize(); } if ( hasAltLoc()) { for (Group alt : getAltLocs()){ alt.trimToSize(); } } // now let's fit the hashmaps to size properties = new HashMap<String, Object>(properties); if ( atomNameLookup != null) atomNameLookup = new HashMap<String,Atom>(atomNameLookup); }
class class_name[name] begin[{] method[trimToSize, return_type[void], modifier[public], parameter[]] begin[{] if[binary_operation[member[.atoms], instanceof, type[ArrayList]]] begin[{] local_variable[type[ArrayList], myatoms] call[myatoms.trimToSize, parameter[]] else begin[{] None end[}] if[binary_operation[member[.altLocs], instanceof, type[ArrayList]]] begin[{] local_variable[type[ArrayList], myAltLocs] call[myAltLocs.trimToSize, parameter[]] else begin[{] None end[}] if[call[.hasAltLoc, parameter[]]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[], member=trimToSize, postfix_operators=[], prefix_operators=[], qualifier=alt, selectors=[], type_arguments=None), label=None)]), control=EnhancedForControl(iterable=MethodInvocation(arguments=[], member=getAltLocs, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), var=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=None, name=alt)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=Group, sub_type=None))), label=None) else begin[{] None end[}] assign[member[.properties], ClassCreator(arguments=[MemberReference(member=properties, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=String, sub_type=None)), TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=Object, sub_type=None))], dimensions=None, name=HashMap, sub_type=None))] if[binary_operation[member[.atomNameLookup], !=, literal[null]]] begin[{] assign[member[.atomNameLookup], ClassCreator(arguments=[MemberReference(member=atomNameLookup, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=String, sub_type=None)), TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=Atom, sub_type=None))], dimensions=None, name=HashMap, sub_type=None))] else begin[{] None end[}] end[}] END[}]
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[trimToSize] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[atoms] Keyword[instanceof] identifier[ArrayList] operator[<] operator[?] operator[>] operator[SEP] { identifier[ArrayList] operator[<] identifier[Atom] operator[>] identifier[myatoms] operator[=] operator[SEP] identifier[ArrayList] operator[<] identifier[Atom] operator[>] operator[SEP] identifier[atoms] operator[SEP] identifier[myatoms] operator[SEP] identifier[trimToSize] operator[SEP] operator[SEP] operator[SEP] } Keyword[if] operator[SEP] identifier[altLocs] Keyword[instanceof] identifier[ArrayList] operator[<] operator[?] operator[>] operator[SEP] { identifier[ArrayList] operator[<] identifier[Group] operator[>] identifier[myAltLocs] operator[=] operator[SEP] identifier[ArrayList] operator[<] identifier[Group] operator[>] operator[SEP] identifier[altLocs] operator[SEP] identifier[myAltLocs] operator[SEP] identifier[trimToSize] operator[SEP] operator[SEP] operator[SEP] } Keyword[if] operator[SEP] identifier[hasAltLoc] operator[SEP] operator[SEP] operator[SEP] { Keyword[for] operator[SEP] identifier[Group] identifier[alt] operator[:] identifier[getAltLocs] operator[SEP] operator[SEP] operator[SEP] { identifier[alt] operator[SEP] identifier[trimToSize] operator[SEP] operator[SEP] operator[SEP] } } identifier[properties] operator[=] Keyword[new] identifier[HashMap] operator[<] identifier[String] , identifier[Object] operator[>] operator[SEP] identifier[properties] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[atomNameLookup] operator[!=] Other[null] operator[SEP] identifier[atomNameLookup] operator[=] Keyword[new] identifier[HashMap] operator[<] identifier[String] , identifier[Atom] operator[>] operator[SEP] identifier[atomNameLookup] operator[SEP] operator[SEP] }
protected void stroke(ZoomableGraphicsContext gc, T element) { final double radius = element.getRadius(); final double diameter = radius * radius; final double minx = element.getX() - radius; final double miny = element.getY() - radius; gc.strokeOval(minx, miny, diameter, diameter); }
class class_name[name] begin[{] method[stroke, return_type[void], modifier[protected], parameter[gc, element]] begin[{] local_variable[type[double], radius] local_variable[type[double], diameter] local_variable[type[double], minx] local_variable[type[double], miny] call[gc.strokeOval, parameter[member[.minx], member[.miny], member[.diameter], member[.diameter]]] end[}] END[}]
Keyword[protected] Keyword[void] identifier[stroke] operator[SEP] identifier[ZoomableGraphicsContext] identifier[gc] , identifier[T] identifier[element] operator[SEP] { Keyword[final] Keyword[double] identifier[radius] operator[=] identifier[element] operator[SEP] identifier[getRadius] operator[SEP] operator[SEP] operator[SEP] Keyword[final] Keyword[double] identifier[diameter] operator[=] identifier[radius] operator[*] identifier[radius] operator[SEP] Keyword[final] Keyword[double] identifier[minx] operator[=] identifier[element] operator[SEP] identifier[getX] operator[SEP] operator[SEP] operator[-] identifier[radius] operator[SEP] Keyword[final] Keyword[double] identifier[miny] operator[=] identifier[element] operator[SEP] identifier[getY] operator[SEP] operator[SEP] operator[-] identifier[radius] operator[SEP] identifier[gc] operator[SEP] identifier[strokeOval] operator[SEP] identifier[minx] , identifier[miny] , identifier[diameter] , identifier[diameter] operator[SEP] operator[SEP] }
public String contentshow(I_CmsXmlContentContainer container, String element, Locale locale) { return CmsJspTagContentShow.contentShowTagAction(container, getJspContext(), element, locale, false); }
class class_name[name] begin[{] method[contentshow, return_type[type[String]], modifier[public], parameter[container, element, locale]] begin[{] return[call[CmsJspTagContentShow.contentShowTagAction, parameter[member[.container], call[.getJspContext, parameter[]], member[.element], member[.locale], literal[false]]]] end[}] END[}]
Keyword[public] identifier[String] identifier[contentshow] operator[SEP] identifier[I_CmsXmlContentContainer] identifier[container] , identifier[String] identifier[element] , identifier[Locale] identifier[locale] operator[SEP] { Keyword[return] identifier[CmsJspTagContentShow] operator[SEP] identifier[contentShowTagAction] operator[SEP] identifier[container] , identifier[getJspContext] operator[SEP] operator[SEP] , identifier[element] , identifier[locale] , literal[boolean] operator[SEP] operator[SEP] }
public void setArchiveStatus(com.google.api.ads.admanager.axis.v201805.ArchiveStatus archiveStatus) { this.archiveStatus = archiveStatus; }
class class_name[name] begin[{] method[setArchiveStatus, return_type[void], modifier[public], parameter[archiveStatus]] begin[{] assign[THIS[member[None.archiveStatus]], member[.archiveStatus]] end[}] END[}]
Keyword[public] Keyword[void] identifier[setArchiveStatus] operator[SEP] identifier[com] operator[SEP] identifier[google] operator[SEP] identifier[api] operator[SEP] identifier[ads] operator[SEP] identifier[admanager] operator[SEP] identifier[axis] operator[SEP] identifier[v201805] operator[SEP] identifier[ArchiveStatus] identifier[archiveStatus] operator[SEP] { Keyword[this] operator[SEP] identifier[archiveStatus] operator[=] identifier[archiveStatus] operator[SEP] }
public void marshall(SetTagsForResourceRequest setTagsForResourceRequest, ProtocolMarshaller protocolMarshaller) { if (setTagsForResourceRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(setTagsForResourceRequest.getResourceArn(), RESOURCEARN_BINDING); protocolMarshaller.marshall(setTagsForResourceRequest.getTags(), TAGS_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }
class class_name[name] begin[{] method[marshall, return_type[void], modifier[public], parameter[setTagsForResourceRequest, protocolMarshaller]] begin[{] if[binary_operation[member[.setTagsForResourceRequest], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="Invalid argument passed to marshall(...)")], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=SdkClientException, sub_type=None)), label=None) else begin[{] None end[}] TryStatement(block=[StatementExpression(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[], member=getResourceArn, postfix_operators=[], prefix_operators=[], qualifier=setTagsForResourceRequest, selectors=[], type_arguments=None), MemberReference(member=RESOURCEARN_BINDING, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=marshall, postfix_operators=[], prefix_operators=[], qualifier=protocolMarshaller, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[], member=getTags, postfix_operators=[], prefix_operators=[], qualifier=setTagsForResourceRequest, selectors=[], type_arguments=None), MemberReference(member=TAGS_BINDING, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=marshall, postfix_operators=[], prefix_operators=[], qualifier=protocolMarshaller, selectors=[], type_arguments=None), label=None)], catches=[CatchClause(block=[ThrowStatement(expression=ClassCreator(arguments=[BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="Unable to marshall request to JSON: "), operandr=MethodInvocation(arguments=[], member=getMessage, postfix_operators=[], prefix_operators=[], qualifier=e, selectors=[], type_arguments=None), operator=+), MemberReference(member=e, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=SdkClientException, sub_type=None)), label=None)], label=None, parameter=CatchClauseParameter(annotations=None, modifiers=None, name=e, types=['Exception']))], finally_block=None, label=None, resources=None) end[}] END[}]
Keyword[public] Keyword[void] identifier[marshall] operator[SEP] identifier[SetTagsForResourceRequest] identifier[setTagsForResourceRequest] , identifier[ProtocolMarshaller] identifier[protocolMarshaller] operator[SEP] { Keyword[if] operator[SEP] identifier[setTagsForResourceRequest] operator[==] Other[null] operator[SEP] { Keyword[throw] Keyword[new] identifier[SdkClientException] operator[SEP] literal[String] operator[SEP] operator[SEP] } Keyword[try] { identifier[protocolMarshaller] operator[SEP] identifier[marshall] operator[SEP] identifier[setTagsForResourceRequest] operator[SEP] identifier[getResourceArn] operator[SEP] operator[SEP] , identifier[RESOURCEARN_BINDING] operator[SEP] operator[SEP] identifier[protocolMarshaller] operator[SEP] identifier[marshall] operator[SEP] identifier[setTagsForResourceRequest] operator[SEP] identifier[getTags] operator[SEP] operator[SEP] , identifier[TAGS_BINDING] operator[SEP] operator[SEP] } Keyword[catch] operator[SEP] identifier[Exception] identifier[e] operator[SEP] { Keyword[throw] Keyword[new] identifier[SdkClientException] operator[SEP] literal[String] operator[+] identifier[e] operator[SEP] identifier[getMessage] operator[SEP] operator[SEP] , identifier[e] operator[SEP] operator[SEP] } }
public Observable<ServiceResponse<ResourceListKeysInner>> regenerateKeysWithServiceResponseAsync(String resourceGroupName, String namespaceName, String authorizationRuleName, String policyKey) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } if (namespaceName == null) { throw new IllegalArgumentException("Parameter namespaceName is required and cannot be null."); } if (authorizationRuleName == null) { throw new IllegalArgumentException("Parameter authorizationRuleName is required and cannot be null."); } if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } PolicykeyResource parameters = new PolicykeyResource(); parameters.withPolicyKey(policyKey); return service.regenerateKeys(resourceGroupName, namespaceName, authorizationRuleName, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), parameters, this.client.userAgent()) .flatMap(new Func1<Response<ResponseBody>, Observable<ServiceResponse<ResourceListKeysInner>>>() { @Override public Observable<ServiceResponse<ResourceListKeysInner>> call(Response<ResponseBody> response) { try { ServiceResponse<ResourceListKeysInner> clientResponse = regenerateKeysDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); } } }); }
class class_name[name] begin[{] method[regenerateKeysWithServiceResponseAsync, return_type[type[Observable]], modifier[public], parameter[resourceGroupName, namespaceName, authorizationRuleName, policyKey]] begin[{] if[binary_operation[member[.resourceGroupName], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="Parameter resourceGroupName is required and cannot be null.")], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=IllegalArgumentException, sub_type=None)), label=None) else begin[{] None end[}] if[binary_operation[member[.namespaceName], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="Parameter namespaceName is required and cannot be null.")], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=IllegalArgumentException, sub_type=None)), label=None) else begin[{] None end[}] if[binary_operation[member[.authorizationRuleName], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="Parameter authorizationRuleName is required and cannot be null.")], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=IllegalArgumentException, sub_type=None)), label=None) else begin[{] None end[}] if[binary_operation[THIS[member[None.client]call[None.subscriptionId, parameter[]]], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="Parameter this.client.subscriptionId() is required and cannot be null.")], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=IllegalArgumentException, sub_type=None)), label=None) else begin[{] None end[}] if[binary_operation[THIS[member[None.client]call[None.apiVersion, parameter[]]], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="Parameter this.client.apiVersion() is required and cannot be null.")], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=IllegalArgumentException, sub_type=None)), label=None) else begin[{] None end[}] local_variable[type[PolicykeyResource], parameters] call[parameters.withPolicyKey, parameter[member[.policyKey]]] return[call[service.regenerateKeys, parameter[member[.resourceGroupName], member[.namespaceName], member[.authorizationRuleName], THIS[member[None.client]call[None.subscriptionId, parameter[]]], THIS[member[None.client]call[None.apiVersion, parameter[]]], THIS[member[None.client]call[None.acceptLanguage, parameter[]]], member[.parameters], THIS[member[None.client]call[None.userAgent, parameter[]]]]]] end[}] END[}]
Keyword[public] identifier[Observable] operator[<] identifier[ServiceResponse] operator[<] identifier[ResourceListKeysInner] operator[>] operator[>] identifier[regenerateKeysWithServiceResponseAsync] operator[SEP] identifier[String] identifier[resourceGroupName] , identifier[String] identifier[namespaceName] , identifier[String] identifier[authorizationRuleName] , identifier[String] identifier[policyKey] operator[SEP] { Keyword[if] operator[SEP] identifier[resourceGroupName] operator[==] Other[null] operator[SEP] { Keyword[throw] Keyword[new] identifier[IllegalArgumentException] operator[SEP] literal[String] operator[SEP] operator[SEP] } Keyword[if] operator[SEP] identifier[namespaceName] operator[==] Other[null] operator[SEP] { Keyword[throw] Keyword[new] identifier[IllegalArgumentException] operator[SEP] literal[String] operator[SEP] operator[SEP] } Keyword[if] operator[SEP] identifier[authorizationRuleName] operator[==] Other[null] operator[SEP] { Keyword[throw] Keyword[new] identifier[IllegalArgumentException] operator[SEP] literal[String] operator[SEP] operator[SEP] } Keyword[if] operator[SEP] Keyword[this] operator[SEP] identifier[client] operator[SEP] identifier[subscriptionId] operator[SEP] operator[SEP] operator[==] Other[null] operator[SEP] { Keyword[throw] Keyword[new] identifier[IllegalArgumentException] operator[SEP] literal[String] operator[SEP] operator[SEP] } Keyword[if] operator[SEP] Keyword[this] operator[SEP] identifier[client] operator[SEP] identifier[apiVersion] operator[SEP] operator[SEP] operator[==] Other[null] operator[SEP] { Keyword[throw] Keyword[new] identifier[IllegalArgumentException] operator[SEP] literal[String] operator[SEP] operator[SEP] } identifier[PolicykeyResource] identifier[parameters] operator[=] Keyword[new] identifier[PolicykeyResource] operator[SEP] operator[SEP] operator[SEP] identifier[parameters] operator[SEP] identifier[withPolicyKey] operator[SEP] identifier[policyKey] operator[SEP] operator[SEP] Keyword[return] identifier[service] operator[SEP] identifier[regenerateKeys] operator[SEP] identifier[resourceGroupName] , identifier[namespaceName] , identifier[authorizationRuleName] , Keyword[this] operator[SEP] identifier[client] operator[SEP] identifier[subscriptionId] operator[SEP] operator[SEP] , Keyword[this] operator[SEP] identifier[client] operator[SEP] identifier[apiVersion] operator[SEP] operator[SEP] , Keyword[this] operator[SEP] identifier[client] operator[SEP] identifier[acceptLanguage] operator[SEP] operator[SEP] , identifier[parameters] , Keyword[this] operator[SEP] identifier[client] operator[SEP] identifier[userAgent] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[flatMap] operator[SEP] Keyword[new] identifier[Func1] operator[<] identifier[Response] operator[<] identifier[ResponseBody] operator[>] , identifier[Observable] operator[<] identifier[ServiceResponse] operator[<] identifier[ResourceListKeysInner] operator[>] operator[>] operator[>] operator[SEP] operator[SEP] { annotation[@] identifier[Override] Keyword[public] identifier[Observable] operator[<] identifier[ServiceResponse] operator[<] identifier[ResourceListKeysInner] operator[>] operator[>] identifier[call] operator[SEP] identifier[Response] operator[<] identifier[ResponseBody] operator[>] identifier[response] operator[SEP] { Keyword[try] { identifier[ServiceResponse] operator[<] identifier[ResourceListKeysInner] operator[>] identifier[clientResponse] operator[=] identifier[regenerateKeysDelegate] operator[SEP] identifier[response] operator[SEP] operator[SEP] Keyword[return] identifier[Observable] operator[SEP] identifier[just] operator[SEP] identifier[clientResponse] operator[SEP] operator[SEP] } Keyword[catch] operator[SEP] identifier[Throwable] identifier[t] operator[SEP] { Keyword[return] identifier[Observable] operator[SEP] identifier[error] operator[SEP] identifier[t] operator[SEP] operator[SEP] } } } operator[SEP] operator[SEP] }
@SuppressWarnings({ "ThrowableInstanceNeverThrown" }) private void handleException(Throwable e, ResultSender<Serializable> resultSender, String queryString) { logger.error("Failed to execute bucket oriented query" + (queryString != null ? ": " + queryString : "."), e); resultSender.sendException(new FunctionException(e.getMessage())); }
class class_name[name] begin[{] method[handleException, return_type[void], modifier[private], parameter[e, resultSender, queryString]] begin[{] call[logger.error, parameter[binary_operation[literal["Failed to execute bucket oriented query"], +, TernaryExpression(condition=BinaryOperation(operandl=MemberReference(member=queryString, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=null), operator=!=), if_false=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="."), if_true=BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=": "), operandr=MemberReference(member=queryString, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=+))], member[.e]]] call[resultSender.sendException, parameter[ClassCreator(arguments=[MethodInvocation(arguments=[], member=getMessage, postfix_operators=[], prefix_operators=[], qualifier=e, selectors=[], type_arguments=None)], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=FunctionException, sub_type=None))]] end[}] END[}]
annotation[@] identifier[SuppressWarnings] operator[SEP] { literal[String] } operator[SEP] Keyword[private] Keyword[void] identifier[handleException] operator[SEP] identifier[Throwable] identifier[e] , identifier[ResultSender] operator[<] identifier[Serializable] operator[>] identifier[resultSender] , identifier[String] identifier[queryString] operator[SEP] { identifier[logger] operator[SEP] identifier[error] operator[SEP] literal[String] operator[+] operator[SEP] identifier[queryString] operator[!=] Other[null] operator[?] literal[String] operator[+] identifier[queryString] operator[:] literal[String] operator[SEP] , identifier[e] operator[SEP] operator[SEP] identifier[resultSender] operator[SEP] identifier[sendException] operator[SEP] Keyword[new] identifier[FunctionException] operator[SEP] identifier[e] operator[SEP] identifier[getMessage] operator[SEP] operator[SEP] operator[SEP] operator[SEP] operator[SEP] }
protected OutputConfiguration getOutputConfiguration() { final Set<OutputConfiguration> outputConfigurations = this.configurationProvider.getOutputConfigurations(getProject()); final String expectedName = ExtraLanguageOutputConfigurations.createOutputConfigurationName(getPreferenceID()); return Iterables.find(outputConfigurations, it -> expectedName.equals(it.getName())); }
class class_name[name] begin[{] method[getOutputConfiguration, return_type[type[OutputConfiguration]], modifier[protected], parameter[]] begin[{] local_variable[type[Set], outputConfigurations] local_variable[type[String], expectedName] return[call[Iterables.find, parameter[member[.outputConfigurations], LambdaExpression(body=MethodInvocation(arguments=[MethodInvocation(arguments=[], member=getName, postfix_operators=[], prefix_operators=[], qualifier=it, selectors=[], type_arguments=None)], member=equals, postfix_operators=[], prefix_operators=[], qualifier=expectedName, selectors=[], type_arguments=None), parameters=[MemberReference(member=it, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])])]]] end[}] END[}]
Keyword[protected] identifier[OutputConfiguration] identifier[getOutputConfiguration] operator[SEP] operator[SEP] { Keyword[final] identifier[Set] operator[<] identifier[OutputConfiguration] operator[>] identifier[outputConfigurations] operator[=] Keyword[this] operator[SEP] identifier[configurationProvider] operator[SEP] identifier[getOutputConfigurations] operator[SEP] identifier[getProject] operator[SEP] operator[SEP] operator[SEP] operator[SEP] Keyword[final] identifier[String] identifier[expectedName] operator[=] identifier[ExtraLanguageOutputConfigurations] operator[SEP] identifier[createOutputConfigurationName] operator[SEP] identifier[getPreferenceID] operator[SEP] operator[SEP] operator[SEP] operator[SEP] Keyword[return] identifier[Iterables] operator[SEP] identifier[find] operator[SEP] identifier[outputConfigurations] , identifier[it] operator[->] identifier[expectedName] operator[SEP] identifier[equals] operator[SEP] identifier[it] operator[SEP] identifier[getName] operator[SEP] operator[SEP] operator[SEP] operator[SEP] operator[SEP] }
private String[] getFilesToCopy(Resource resource) { DirectoryScanner scanner = new DirectoryScanner(); scanner.setBasedir(resource.getDirectory()); if (resource.getIncludes() != null && !resource.getIncludes().isEmpty()) { scanner.setIncludes(resource.getIncludes().toArray(new String[0])); } else { scanner.setIncludes(DEFAULT_INCLUDES); } if (resource.getExcludes() != null && !resource.getExcludes().isEmpty()) { scanner.setExcludes(resource.getExcludes().toArray(new String[0])); } scanner.addDefaultExcludes(); scanner.scan(); return scanner.getIncludedFiles(); }
class class_name[name] begin[{] method[getFilesToCopy, return_type[type[String]], modifier[private], parameter[resource]] begin[{] local_variable[type[DirectoryScanner], scanner] call[scanner.setBasedir, parameter[call[resource.getDirectory, parameter[]]]] if[binary_operation[binary_operation[call[resource.getIncludes, parameter[]], !=, literal[null]], &&, call[resource.getIncludes, parameter[]]]] begin[{] call[scanner.setIncludes, parameter[call[resource.getIncludes, parameter[]]]] else begin[{] call[scanner.setIncludes, parameter[member[.DEFAULT_INCLUDES]]] end[}] if[binary_operation[binary_operation[call[resource.getExcludes, parameter[]], !=, literal[null]], &&, call[resource.getExcludes, parameter[]]]] begin[{] call[scanner.setExcludes, parameter[call[resource.getExcludes, parameter[]]]] else begin[{] None end[}] call[scanner.addDefaultExcludes, parameter[]] call[scanner.scan, parameter[]] return[call[scanner.getIncludedFiles, parameter[]]] end[}] END[}]
Keyword[private] identifier[String] operator[SEP] operator[SEP] identifier[getFilesToCopy] operator[SEP] identifier[Resource] identifier[resource] operator[SEP] { identifier[DirectoryScanner] identifier[scanner] operator[=] Keyword[new] identifier[DirectoryScanner] operator[SEP] operator[SEP] operator[SEP] identifier[scanner] operator[SEP] identifier[setBasedir] operator[SEP] identifier[resource] operator[SEP] identifier[getDirectory] operator[SEP] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[resource] operator[SEP] identifier[getIncludes] operator[SEP] operator[SEP] operator[!=] Other[null] operator[&&] operator[!] identifier[resource] operator[SEP] identifier[getIncludes] operator[SEP] operator[SEP] operator[SEP] identifier[isEmpty] operator[SEP] operator[SEP] operator[SEP] { identifier[scanner] operator[SEP] identifier[setIncludes] operator[SEP] identifier[resource] operator[SEP] identifier[getIncludes] operator[SEP] operator[SEP] operator[SEP] identifier[toArray] operator[SEP] Keyword[new] identifier[String] operator[SEP] Other[0] operator[SEP] operator[SEP] operator[SEP] operator[SEP] } Keyword[else] { identifier[scanner] operator[SEP] identifier[setIncludes] operator[SEP] identifier[DEFAULT_INCLUDES] operator[SEP] operator[SEP] } Keyword[if] operator[SEP] identifier[resource] operator[SEP] identifier[getExcludes] operator[SEP] operator[SEP] operator[!=] Other[null] operator[&&] operator[!] identifier[resource] operator[SEP] identifier[getExcludes] operator[SEP] operator[SEP] operator[SEP] identifier[isEmpty] operator[SEP] operator[SEP] operator[SEP] { identifier[scanner] operator[SEP] identifier[setExcludes] operator[SEP] identifier[resource] operator[SEP] identifier[getExcludes] operator[SEP] operator[SEP] operator[SEP] identifier[toArray] operator[SEP] Keyword[new] identifier[String] operator[SEP] Other[0] operator[SEP] operator[SEP] operator[SEP] operator[SEP] } identifier[scanner] operator[SEP] identifier[addDefaultExcludes] operator[SEP] operator[SEP] operator[SEP] identifier[scanner] operator[SEP] identifier[scan] operator[SEP] operator[SEP] operator[SEP] Keyword[return] identifier[scanner] operator[SEP] identifier[getIncludedFiles] operator[SEP] operator[SEP] operator[SEP] }
public final hqlParser.relationalExpression_return relationalExpression() throws RecognitionException { hqlParser.relationalExpression_return retval = new hqlParser.relationalExpression_return(); retval.start = input.LT(1); CommonTree root_0 = null; Token n=null; Token i=null; Token b=null; Token l=null; Token LT167=null; Token GT168=null; Token LE169=null; Token GE170=null; Token MEMBER176=null; Token OF177=null; ParserRuleReturnScope p =null; ParserRuleReturnScope concatenation166 =null; ParserRuleReturnScope bitwiseNotExpression171 =null; ParserRuleReturnScope inList172 =null; ParserRuleReturnScope betweenList173 =null; ParserRuleReturnScope concatenation174 =null; ParserRuleReturnScope likeEscape175 =null; CommonTree n_tree=null; CommonTree i_tree=null; CommonTree b_tree=null; CommonTree l_tree=null; CommonTree LT167_tree=null; CommonTree GT168_tree=null; CommonTree LE169_tree=null; CommonTree GE170_tree=null; CommonTree MEMBER176_tree=null; CommonTree OF177_tree=null; try { // hql.g:454:2: ( concatenation ( ( ( ( LT ^| GT ^| LE ^| GE ^) bitwiseNotExpression )* ) | (n= NOT !)? ( (i= IN ^ inList ) | (b= BETWEEN ^ betweenList ) | (l= LIKE ^ concatenation likeEscape ) | ( MEMBER ! ( OF !)? p= path !) ) ) ) // hql.g:454:4: concatenation ( ( ( ( LT ^| GT ^| LE ^| GE ^) bitwiseNotExpression )* ) | (n= NOT !)? ( (i= IN ^ inList ) | (b= BETWEEN ^ betweenList ) | (l= LIKE ^ concatenation likeEscape ) | ( MEMBER ! ( OF !)? p= path !) ) ) { root_0 = (CommonTree)adaptor.nil(); pushFollow(FOLLOW_concatenation_in_relationalExpression2059); concatenation166=concatenation(); state._fsp--; adaptor.addChild(root_0, concatenation166.getTree()); // hql.g:454:18: ( ( ( ( LT ^| GT ^| LE ^| GE ^) bitwiseNotExpression )* ) | (n= NOT !)? ( (i= IN ^ inList ) | (b= BETWEEN ^ betweenList ) | (l= LIKE ^ concatenation likeEscape ) | ( MEMBER ! ( OF !)? p= path !) ) ) int alt62=2; int LA62_0 = input.LA(1); if ( (LA62_0==EOF||LA62_0==AND||(LA62_0 >= AS && LA62_0 <= ASCENDING)||(LA62_0 >= CLOSE && LA62_0 <= CLOSE_BRACKET)||LA62_0==COMMA||LA62_0==DESCENDING||LA62_0==ELSE||(LA62_0 >= END && LA62_0 <= EQ)||(LA62_0 >= FROM && LA62_0 <= HAVING)||LA62_0==INNER||LA62_0==IS||(LA62_0 >= JOIN && LA62_0 <= LE)||LA62_0==LEFT||LA62_0==LT||LA62_0==NE||(LA62_0 >= OR && LA62_0 <= ORDER)||LA62_0==RIGHT||LA62_0==SKIP||LA62_0==SQL_NE||(LA62_0 >= TAKE && LA62_0 <= THEN)||LA62_0==UNION||(LA62_0 >= WHEN && LA62_0 <= WHERE)||(LA62_0 >= 133 && LA62_0 <= 134)) ) { alt62=1; } else if ( (LA62_0==BETWEEN||LA62_0==IN||LA62_0==LIKE||LA62_0==MEMBER||LA62_0==NOT) ) { alt62=2; } else { NoViableAltException nvae = new NoViableAltException("", 62, 0, input); throw nvae; } switch (alt62) { case 1 : // hql.g:455:3: ( ( ( LT ^| GT ^| LE ^| GE ^) bitwiseNotExpression )* ) { // hql.g:455:3: ( ( ( LT ^| GT ^| LE ^| GE ^) bitwiseNotExpression )* ) // hql.g:455:5: ( ( LT ^| GT ^| LE ^| GE ^) bitwiseNotExpression )* { // hql.g:455:5: ( ( LT ^| GT ^| LE ^| GE ^) bitwiseNotExpression )* loop58: while (true) { int alt58=2; int LA58_0 = input.LA(1); if ( (LA58_0==GE||LA58_0==GT||LA58_0==LE||LA58_0==LT) ) { alt58=1; } switch (alt58) { case 1 : // hql.g:455:7: ( LT ^| GT ^| LE ^| GE ^) bitwiseNotExpression { // hql.g:455:7: ( LT ^| GT ^| LE ^| GE ^) int alt57=4; switch ( input.LA(1) ) { case LT: { alt57=1; } break; case GT: { alt57=2; } break; case LE: { alt57=3; } break; case GE: { alt57=4; } break; default: NoViableAltException nvae = new NoViableAltException("", 57, 0, input); throw nvae; } switch (alt57) { case 1 : // hql.g:455:9: LT ^ { LT167=(Token)match(input,LT,FOLLOW_LT_in_relationalExpression2071); LT167_tree = (CommonTree)adaptor.create(LT167); root_0 = (CommonTree)adaptor.becomeRoot(LT167_tree, root_0); } break; case 2 : // hql.g:455:15: GT ^ { GT168=(Token)match(input,GT,FOLLOW_GT_in_relationalExpression2076); GT168_tree = (CommonTree)adaptor.create(GT168); root_0 = (CommonTree)adaptor.becomeRoot(GT168_tree, root_0); } break; case 3 : // hql.g:455:21: LE ^ { LE169=(Token)match(input,LE,FOLLOW_LE_in_relationalExpression2081); LE169_tree = (CommonTree)adaptor.create(LE169); root_0 = (CommonTree)adaptor.becomeRoot(LE169_tree, root_0); } break; case 4 : // hql.g:455:27: GE ^ { GE170=(Token)match(input,GE,FOLLOW_GE_in_relationalExpression2086); GE170_tree = (CommonTree)adaptor.create(GE170); root_0 = (CommonTree)adaptor.becomeRoot(GE170_tree, root_0); } break; } pushFollow(FOLLOW_bitwiseNotExpression_in_relationalExpression2091); bitwiseNotExpression171=bitwiseNotExpression(); state._fsp--; adaptor.addChild(root_0, bitwiseNotExpression171.getTree()); } break; default : break loop58; } } } } break; case 2 : // hql.g:457:5: (n= NOT !)? ( (i= IN ^ inList ) | (b= BETWEEN ^ betweenList ) | (l= LIKE ^ concatenation likeEscape ) | ( MEMBER ! ( OF !)? p= path !) ) { // hql.g:457:5: (n= NOT !)? int alt59=2; int LA59_0 = input.LA(1); if ( (LA59_0==NOT) ) { alt59=1; } switch (alt59) { case 1 : // hql.g:457:6: n= NOT ! { n=(Token)match(input,NOT,FOLLOW_NOT_in_relationalExpression2108); } break; } // hql.g:457:15: ( (i= IN ^ inList ) | (b= BETWEEN ^ betweenList ) | (l= LIKE ^ concatenation likeEscape ) | ( MEMBER ! ( OF !)? p= path !) ) int alt61=4; switch ( input.LA(1) ) { case IN: { alt61=1; } break; case BETWEEN: { alt61=2; } break; case LIKE: { alt61=3; } break; case MEMBER: { alt61=4; } break; default: NoViableAltException nvae = new NoViableAltException("", 61, 0, input); throw nvae; } switch (alt61) { case 1 : // hql.g:460:4: (i= IN ^ inList ) { // hql.g:460:4: (i= IN ^ inList ) // hql.g:460:5: i= IN ^ inList { i=(Token)match(input,IN,FOLLOW_IN_in_relationalExpression2129); i_tree = (CommonTree)adaptor.create(i); root_0 = (CommonTree)adaptor.becomeRoot(i_tree, root_0); i.setType( (n == null) ? IN : NOT_IN ); i.setText( (n == null) ? "in" : "not in" ); pushFollow(FOLLOW_inList_in_relationalExpression2138); inList172=inList(); state._fsp--; adaptor.addChild(root_0, inList172.getTree()); } } break; case 2 : // hql.g:465:6: (b= BETWEEN ^ betweenList ) { // hql.g:465:6: (b= BETWEEN ^ betweenList ) // hql.g:465:7: b= BETWEEN ^ betweenList { b=(Token)match(input,BETWEEN,FOLLOW_BETWEEN_in_relationalExpression2149); b_tree = (CommonTree)adaptor.create(b); root_0 = (CommonTree)adaptor.becomeRoot(b_tree, root_0); b.setType( (n == null) ? BETWEEN : NOT_BETWEEN ); b.setText( (n == null) ? "between" : "not between" ); pushFollow(FOLLOW_betweenList_in_relationalExpression2158); betweenList173=betweenList(); state._fsp--; adaptor.addChild(root_0, betweenList173.getTree()); } } break; case 3 : // hql.g:470:6: (l= LIKE ^ concatenation likeEscape ) { // hql.g:470:6: (l= LIKE ^ concatenation likeEscape ) // hql.g:470:7: l= LIKE ^ concatenation likeEscape { l=(Token)match(input,LIKE,FOLLOW_LIKE_in_relationalExpression2170); l_tree = (CommonTree)adaptor.create(l); root_0 = (CommonTree)adaptor.becomeRoot(l_tree, root_0); l.setType( (n == null) ? LIKE : NOT_LIKE ); l.setText( (n == null) ? "like" : "not like" ); pushFollow(FOLLOW_concatenation_in_relationalExpression2179); concatenation174=concatenation(); state._fsp--; adaptor.addChild(root_0, concatenation174.getTree()); pushFollow(FOLLOW_likeEscape_in_relationalExpression2181); likeEscape175=likeEscape(); state._fsp--; adaptor.addChild(root_0, likeEscape175.getTree()); } } break; case 4 : // hql.g:475:6: ( MEMBER ! ( OF !)? p= path !) { // hql.g:475:6: ( MEMBER ! ( OF !)? p= path !) // hql.g:475:7: MEMBER ! ( OF !)? p= path ! { MEMBER176=(Token)match(input,MEMBER,FOLLOW_MEMBER_in_relationalExpression2190); // hql.g:475:15: ( OF !)? int alt60=2; int LA60_0 = input.LA(1); if ( (LA60_0==OF) ) { alt60=1; } switch (alt60) { case 1 : // hql.g:475:16: OF ! { OF177=(Token)match(input,OF,FOLLOW_OF_in_relationalExpression2194); } break; } pushFollow(FOLLOW_path_in_relationalExpression2201); p=path(); state._fsp--; root_0 = ProcessMemberOf(n,(p!=null?((CommonTree)p.getTree()):null), root_0); } } break; } } break; } } retval.stop = input.LT(-1); retval.tree = (CommonTree)adaptor.rulePostProcessing(root_0); adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop); } catch (RecognitionException re) { reportError(re); recover(input,re); retval.tree = (CommonTree)adaptor.errorNode(input, retval.start, input.LT(-1), re); } finally { // do for sure before leaving } return retval; }
class class_name[name] begin[{] method[relationalExpression, return_type[type[hqlParser]], modifier[final public], parameter[]] begin[{] local_variable[type[hqlParser], retval] assign[member[retval.start], call[input.LT, parameter[literal[1]]]] local_variable[type[CommonTree], root_0] local_variable[type[Token], n] local_variable[type[Token], i] local_variable[type[Token], b] local_variable[type[Token], l] local_variable[type[Token], LT167] local_variable[type[Token], GT168] local_variable[type[Token], LE169] local_variable[type[Token], GE170] local_variable[type[Token], MEMBER176] local_variable[type[Token], OF177] local_variable[type[ParserRuleReturnScope], p] local_variable[type[ParserRuleReturnScope], concatenation166] local_variable[type[ParserRuleReturnScope], bitwiseNotExpression171] local_variable[type[ParserRuleReturnScope], inList172] local_variable[type[ParserRuleReturnScope], betweenList173] local_variable[type[ParserRuleReturnScope], concatenation174] local_variable[type[ParserRuleReturnScope], likeEscape175] local_variable[type[CommonTree], n_tree] local_variable[type[CommonTree], i_tree] local_variable[type[CommonTree], b_tree] local_variable[type[CommonTree], l_tree] local_variable[type[CommonTree], LT167_tree] local_variable[type[CommonTree], GT168_tree] local_variable[type[CommonTree], LE169_tree] local_variable[type[CommonTree], GE170_tree] local_variable[type[CommonTree], MEMBER176_tree] local_variable[type[CommonTree], OF177_tree] TryStatement(block=[BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=root_0, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=Cast(expression=MethodInvocation(arguments=[], member=nil, postfix_operators=[], prefix_operators=[], qualifier=adaptor, selectors=[], type_arguments=None), type=ReferenceType(arguments=None, dimensions=[], name=CommonTree, sub_type=None))), label=None), StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=FOLLOW_concatenation_in_relationalExpression2059, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=pushFollow, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=concatenation166, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MethodInvocation(arguments=[], member=concatenation, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None)), label=None), StatementExpression(expression=MemberReference(member=_fsp, postfix_operators=['--'], prefix_operators=[], qualifier=state, selectors=[]), label=None), StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=root_0, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MethodInvocation(arguments=[], member=getTree, postfix_operators=[], prefix_operators=[], qualifier=concatenation166, selectors=[], type_arguments=None)], member=addChild, postfix_operators=[], prefix_operators=[], qualifier=adaptor, selectors=[], type_arguments=None), label=None), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=2), name=alt62)], modifiers=set(), type=BasicType(dimensions=[], name=int)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1)], member=LA, postfix_operators=[], prefix_operators=[], qualifier=input, selectors=[], type_arguments=None), name=LA62_0)], modifiers=set(), type=BasicType(dimensions=[], name=int)), IfStatement(condition=BinaryOperation(operandl=BinaryOperation(operandl=BinaryOperation(operandl=BinaryOperation(operandl=BinaryOperation(operandl=BinaryOperation(operandl=BinaryOperation(operandl=BinaryOperation(operandl=BinaryOperation(operandl=BinaryOperation(operandl=BinaryOperation(operandl=BinaryOperation(operandl=BinaryOperation(operandl=BinaryOperation(operandl=BinaryOperation(operandl=BinaryOperation(operandl=BinaryOperation(operandl=BinaryOperation(operandl=BinaryOperation(operandl=BinaryOperation(operandl=BinaryOperation(operandl=BinaryOperation(operandl=BinaryOperation(operandl=MemberReference(member=LA62_0, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=EOF, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator===), operandr=BinaryOperation(operandl=MemberReference(member=LA62_0, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=AND, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator===), operator=||), operandr=BinaryOperation(operandl=BinaryOperation(operandl=MemberReference(member=LA62_0, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=AS, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=>=), operandr=BinaryOperation(operandl=MemberReference(member=LA62_0, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=ASCENDING, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=<=), operator=&&), operator=||), operandr=BinaryOperation(operandl=BinaryOperation(operandl=MemberReference(member=LA62_0, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=CLOSE, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=>=), operandr=BinaryOperation(operandl=MemberReference(member=LA62_0, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=CLOSE_BRACKET, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=<=), operator=&&), operator=||), operandr=BinaryOperation(operandl=MemberReference(member=LA62_0, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=COMMA, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator===), operator=||), operandr=BinaryOperation(operandl=MemberReference(member=LA62_0, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=DESCENDING, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator===), operator=||), operandr=BinaryOperation(operandl=MemberReference(member=LA62_0, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=ELSE, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator===), operator=||), operandr=BinaryOperation(operandl=BinaryOperation(operandl=MemberReference(member=LA62_0, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=END, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=>=), operandr=BinaryOperation(operandl=MemberReference(member=LA62_0, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=EQ, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=<=), operator=&&), operator=||), operandr=BinaryOperation(operandl=BinaryOperation(operandl=MemberReference(member=LA62_0, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=FROM, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=>=), operandr=BinaryOperation(operandl=MemberReference(member=LA62_0, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=HAVING, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=<=), operator=&&), operator=||), operandr=BinaryOperation(operandl=MemberReference(member=LA62_0, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=INNER, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator===), operator=||), operandr=BinaryOperation(operandl=MemberReference(member=LA62_0, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=IS, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator===), operator=||), operandr=BinaryOperation(operandl=BinaryOperation(operandl=MemberReference(member=LA62_0, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=JOIN, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=>=), operandr=BinaryOperation(operandl=MemberReference(member=LA62_0, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=LE, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=<=), operator=&&), operator=||), operandr=BinaryOperation(operandl=MemberReference(member=LA62_0, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=LEFT, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator===), operator=||), operandr=BinaryOperation(operandl=MemberReference(member=LA62_0, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=LT, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator===), operator=||), operandr=BinaryOperation(operandl=MemberReference(member=LA62_0, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=NE, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator===), operator=||), operandr=BinaryOperation(operandl=BinaryOperation(operandl=MemberReference(member=LA62_0, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=OR, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=>=), operandr=BinaryOperation(operandl=MemberReference(member=LA62_0, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=ORDER, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=<=), operator=&&), operator=||), operandr=BinaryOperation(operandl=MemberReference(member=LA62_0, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=RIGHT, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator===), operator=||), operandr=BinaryOperation(operandl=MemberReference(member=LA62_0, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=SKIP, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator===), operator=||), operandr=BinaryOperation(operandl=MemberReference(member=LA62_0, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=SQL_NE, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator===), operator=||), operandr=BinaryOperation(operandl=BinaryOperation(operandl=MemberReference(member=LA62_0, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=TAKE, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=>=), operandr=BinaryOperation(operandl=MemberReference(member=LA62_0, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=THEN, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=<=), operator=&&), operator=||), operandr=BinaryOperation(operandl=MemberReference(member=LA62_0, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=UNION, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator===), operator=||), operandr=BinaryOperation(operandl=BinaryOperation(operandl=MemberReference(member=LA62_0, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=WHEN, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=>=), operandr=BinaryOperation(operandl=MemberReference(member=LA62_0, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=WHERE, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=<=), operator=&&), operator=||), operandr=BinaryOperation(operandl=BinaryOperation(operandl=MemberReference(member=LA62_0, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=133), operator=>=), operandr=BinaryOperation(operandl=MemberReference(member=LA62_0, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=134), operator=<=), operator=&&), operator=||), else_statement=IfStatement(condition=BinaryOperation(operandl=BinaryOperation(operandl=BinaryOperation(operandl=BinaryOperation(operandl=BinaryOperation(operandl=MemberReference(member=LA62_0, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=BETWEEN, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator===), operandr=BinaryOperation(operandl=MemberReference(member=LA62_0, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=IN, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator===), operator=||), operandr=BinaryOperation(operandl=MemberReference(member=LA62_0, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=LIKE, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator===), operator=||), operandr=BinaryOperation(operandl=MemberReference(member=LA62_0, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=MEMBER, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator===), operator=||), operandr=BinaryOperation(operandl=MemberReference(member=LA62_0, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=NOT, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator===), operator=||), else_statement=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=""), Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=62), Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), MemberReference(member=input, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=NoViableAltException, sub_type=None)), name=nvae)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=NoViableAltException, sub_type=None)), ThrowStatement(expression=MemberReference(member=nvae, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), label=None)]), label=None, then_statement=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=alt62, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=2)), label=None)])), label=None, then_statement=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=alt62, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1)), label=None)])), SwitchStatement(cases=[SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1)], statements=[BlockStatement(label=None, statements=[BlockStatement(label=None, statements=[WhileStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=2), name=alt58)], modifiers=set(), type=BasicType(dimensions=[], name=int)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1)], member=LA, postfix_operators=[], prefix_operators=[], qualifier=input, selectors=[], type_arguments=None), name=LA58_0)], modifiers=set(), type=BasicType(dimensions=[], name=int)), IfStatement(condition=BinaryOperation(operandl=BinaryOperation(operandl=BinaryOperation(operandl=BinaryOperation(operandl=MemberReference(member=LA58_0, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=GE, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator===), operandr=BinaryOperation(operandl=MemberReference(member=LA58_0, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=GT, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator===), operator=||), operandr=BinaryOperation(operandl=MemberReference(member=LA58_0, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=LE, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator===), operator=||), operandr=BinaryOperation(operandl=MemberReference(member=LA58_0, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=LT, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator===), operator=||), else_statement=None, label=None, then_statement=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=alt58, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1)), label=None)])), SwitchStatement(cases=[SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1)], statements=[BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=4), name=alt57)], modifiers=set(), type=BasicType(dimensions=[], name=int)), SwitchStatement(cases=[SwitchStatementCase(case=['LT'], statements=[BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=alt57, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1)), label=None)]), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=['GT'], statements=[BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=alt57, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=2)), label=None)]), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=['LE'], statements=[BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=alt57, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=3)), label=None)]), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=['GE'], statements=[BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=alt57, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=4)), label=None)]), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[], statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=""), Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=57), Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), MemberReference(member=input, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=NoViableAltException, sub_type=None)), name=nvae)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=NoViableAltException, sub_type=None)), ThrowStatement(expression=MemberReference(member=nvae, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), label=None)])], expression=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1)], member=LA, postfix_operators=[], prefix_operators=[], qualifier=input, selectors=[], type_arguments=None), label=None), SwitchStatement(cases=[SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1)], statements=[BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=LT167, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=Cast(expression=MethodInvocation(arguments=[MemberReference(member=input, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=LT, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=FOLLOW_LT_in_relationalExpression2071, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=match, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), type=ReferenceType(arguments=None, dimensions=[], name=Token, sub_type=None))), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=LT167_tree, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=Cast(expression=MethodInvocation(arguments=[MemberReference(member=LT167, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=create, postfix_operators=[], prefix_operators=[], qualifier=adaptor, selectors=[], type_arguments=None), type=ReferenceType(arguments=None, dimensions=[], name=CommonTree, sub_type=None))), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=root_0, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=Cast(expression=MethodInvocation(arguments=[MemberReference(member=LT167_tree, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=root_0, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=becomeRoot, postfix_operators=[], prefix_operators=[], qualifier=adaptor, selectors=[], type_arguments=None), type=ReferenceType(arguments=None, dimensions=[], name=CommonTree, sub_type=None))), label=None)]), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=2)], statements=[BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=GT168, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=Cast(expression=MethodInvocation(arguments=[MemberReference(member=input, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=GT, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=FOLLOW_GT_in_relationalExpression2076, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=match, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), type=ReferenceType(arguments=None, dimensions=[], name=Token, sub_type=None))), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=GT168_tree, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=Cast(expression=MethodInvocation(arguments=[MemberReference(member=GT168, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=create, postfix_operators=[], prefix_operators=[], qualifier=adaptor, selectors=[], type_arguments=None), type=ReferenceType(arguments=None, dimensions=[], name=CommonTree, sub_type=None))), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=root_0, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=Cast(expression=MethodInvocation(arguments=[MemberReference(member=GT168_tree, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=root_0, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=becomeRoot, postfix_operators=[], prefix_operators=[], qualifier=adaptor, selectors=[], type_arguments=None), type=ReferenceType(arguments=None, dimensions=[], name=CommonTree, sub_type=None))), label=None)]), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=3)], statements=[BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=LE169, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=Cast(expression=MethodInvocation(arguments=[MemberReference(member=input, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=LE, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=FOLLOW_LE_in_relationalExpression2081, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=match, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), type=ReferenceType(arguments=None, dimensions=[], name=Token, sub_type=None))), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=LE169_tree, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=Cast(expression=MethodInvocation(arguments=[MemberReference(member=LE169, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=create, postfix_operators=[], prefix_operators=[], qualifier=adaptor, selectors=[], type_arguments=None), type=ReferenceType(arguments=None, dimensions=[], name=CommonTree, sub_type=None))), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=root_0, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=Cast(expression=MethodInvocation(arguments=[MemberReference(member=LE169_tree, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=root_0, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=becomeRoot, postfix_operators=[], prefix_operators=[], qualifier=adaptor, selectors=[], type_arguments=None), type=ReferenceType(arguments=None, dimensions=[], name=CommonTree, sub_type=None))), label=None)]), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=4)], statements=[BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=GE170, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=Cast(expression=MethodInvocation(arguments=[MemberReference(member=input, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=GE, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=FOLLOW_GE_in_relationalExpression2086, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=match, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), type=ReferenceType(arguments=None, dimensions=[], name=Token, sub_type=None))), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=GE170_tree, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=Cast(expression=MethodInvocation(arguments=[MemberReference(member=GE170, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=create, postfix_operators=[], prefix_operators=[], qualifier=adaptor, selectors=[], type_arguments=None), type=ReferenceType(arguments=None, dimensions=[], name=CommonTree, sub_type=None))), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=root_0, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=Cast(expression=MethodInvocation(arguments=[MemberReference(member=GE170_tree, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=root_0, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=becomeRoot, postfix_operators=[], prefix_operators=[], qualifier=adaptor, selectors=[], type_arguments=None), type=ReferenceType(arguments=None, dimensions=[], name=CommonTree, sub_type=None))), label=None)]), BreakStatement(goto=None, label=None)])], expression=MemberReference(member=alt57, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), label=None), StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=FOLLOW_bitwiseNotExpression_in_relationalExpression2091, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=pushFollow, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=bitwiseNotExpression171, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MethodInvocation(arguments=[], member=bitwiseNotExpression, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None)), label=None), StatementExpression(expression=MemberReference(member=_fsp, postfix_operators=['--'], prefix_operators=[], qualifier=state, selectors=[]), label=None), StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=root_0, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MethodInvocation(arguments=[], member=getTree, postfix_operators=[], prefix_operators=[], qualifier=bitwiseNotExpression171, selectors=[], type_arguments=None)], member=addChild, postfix_operators=[], prefix_operators=[], qualifier=adaptor, selectors=[], type_arguments=None), label=None)]), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[], statements=[BreakStatement(goto=loop58, label=None)])], expression=MemberReference(member=alt58, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), label=None)]), condition=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=true), label=loop58)])]), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=2)], statements=[BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=2), name=alt59)], modifiers=set(), type=BasicType(dimensions=[], name=int)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1)], member=LA, postfix_operators=[], prefix_operators=[], qualifier=input, selectors=[], type_arguments=None), name=LA59_0)], modifiers=set(), type=BasicType(dimensions=[], name=int)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=LA59_0, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=NOT, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator===), else_statement=None, label=None, then_statement=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=alt59, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1)), label=None)])), SwitchStatement(cases=[SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1)], statements=[BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=n, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=Cast(expression=MethodInvocation(arguments=[MemberReference(member=input, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=NOT, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=FOLLOW_NOT_in_relationalExpression2108, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=match, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), type=ReferenceType(arguments=None, dimensions=[], name=Token, sub_type=None))), label=None)]), BreakStatement(goto=None, label=None)])], expression=MemberReference(member=alt59, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), label=None), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=4), name=alt61)], modifiers=set(), type=BasicType(dimensions=[], name=int)), SwitchStatement(cases=[SwitchStatementCase(case=['IN'], statements=[BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=alt61, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1)), label=None)]), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=['BETWEEN'], statements=[BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=alt61, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=2)), label=None)]), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=['LIKE'], statements=[BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=alt61, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=3)), label=None)]), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=['MEMBER'], statements=[BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=alt61, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=4)), label=None)]), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[], statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=""), Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=61), Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), MemberReference(member=input, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=NoViableAltException, sub_type=None)), name=nvae)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=NoViableAltException, sub_type=None)), ThrowStatement(expression=MemberReference(member=nvae, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), label=None)])], expression=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1)], member=LA, postfix_operators=[], prefix_operators=[], qualifier=input, selectors=[], type_arguments=None), label=None), SwitchStatement(cases=[SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1)], statements=[BlockStatement(label=None, statements=[BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=Cast(expression=MethodInvocation(arguments=[MemberReference(member=input, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=IN, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=FOLLOW_IN_in_relationalExpression2129, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=match, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), type=ReferenceType(arguments=None, dimensions=[], name=Token, sub_type=None))), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=i_tree, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=Cast(expression=MethodInvocation(arguments=[MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=create, postfix_operators=[], prefix_operators=[], qualifier=adaptor, selectors=[], type_arguments=None), type=ReferenceType(arguments=None, dimensions=[], name=CommonTree, sub_type=None))), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=root_0, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=Cast(expression=MethodInvocation(arguments=[MemberReference(member=i_tree, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=root_0, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=becomeRoot, postfix_operators=[], prefix_operators=[], qualifier=adaptor, selectors=[], type_arguments=None), type=ReferenceType(arguments=None, dimensions=[], name=CommonTree, sub_type=None))), label=None), StatementExpression(expression=MethodInvocation(arguments=[TernaryExpression(condition=BinaryOperation(operandl=MemberReference(member=n, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=null), operator===), if_false=MemberReference(member=NOT_IN, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), if_true=MemberReference(member=IN, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]))], member=setType, postfix_operators=[], prefix_operators=[], qualifier=i, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[TernaryExpression(condition=BinaryOperation(operandl=MemberReference(member=n, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=null), operator===), if_false=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="not in"), if_true=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="in"))], member=setText, postfix_operators=[], prefix_operators=[], qualifier=i, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=FOLLOW_inList_in_relationalExpression2138, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=pushFollow, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=inList172, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MethodInvocation(arguments=[], member=inList, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None)), label=None), StatementExpression(expression=MemberReference(member=_fsp, postfix_operators=['--'], prefix_operators=[], qualifier=state, selectors=[]), label=None), StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=root_0, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MethodInvocation(arguments=[], member=getTree, postfix_operators=[], prefix_operators=[], qualifier=inList172, selectors=[], type_arguments=None)], member=addChild, postfix_operators=[], prefix_operators=[], qualifier=adaptor, selectors=[], type_arguments=None), label=None)])]), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=2)], statements=[BlockStatement(label=None, statements=[BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=b, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=Cast(expression=MethodInvocation(arguments=[MemberReference(member=input, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=BETWEEN, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=FOLLOW_BETWEEN_in_relationalExpression2149, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=match, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), type=ReferenceType(arguments=None, dimensions=[], name=Token, sub_type=None))), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=b_tree, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=Cast(expression=MethodInvocation(arguments=[MemberReference(member=b, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=create, postfix_operators=[], prefix_operators=[], qualifier=adaptor, selectors=[], type_arguments=None), type=ReferenceType(arguments=None, dimensions=[], name=CommonTree, sub_type=None))), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=root_0, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=Cast(expression=MethodInvocation(arguments=[MemberReference(member=b_tree, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=root_0, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=becomeRoot, postfix_operators=[], prefix_operators=[], qualifier=adaptor, selectors=[], type_arguments=None), type=ReferenceType(arguments=None, dimensions=[], name=CommonTree, sub_type=None))), label=None), StatementExpression(expression=MethodInvocation(arguments=[TernaryExpression(condition=BinaryOperation(operandl=MemberReference(member=n, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=null), operator===), if_false=MemberReference(member=NOT_BETWEEN, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), if_true=MemberReference(member=BETWEEN, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]))], member=setType, postfix_operators=[], prefix_operators=[], qualifier=b, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[TernaryExpression(condition=BinaryOperation(operandl=MemberReference(member=n, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=null), operator===), if_false=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="not between"), if_true=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="between"))], member=setText, postfix_operators=[], prefix_operators=[], qualifier=b, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=FOLLOW_betweenList_in_relationalExpression2158, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=pushFollow, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=betweenList173, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MethodInvocation(arguments=[], member=betweenList, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None)), label=None), StatementExpression(expression=MemberReference(member=_fsp, postfix_operators=['--'], prefix_operators=[], qualifier=state, selectors=[]), label=None), StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=root_0, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MethodInvocation(arguments=[], member=getTree, postfix_operators=[], prefix_operators=[], qualifier=betweenList173, selectors=[], type_arguments=None)], member=addChild, postfix_operators=[], prefix_operators=[], qualifier=adaptor, selectors=[], type_arguments=None), label=None)])]), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=3)], statements=[BlockStatement(label=None, statements=[BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=l, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=Cast(expression=MethodInvocation(arguments=[MemberReference(member=input, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=LIKE, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=FOLLOW_LIKE_in_relationalExpression2170, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=match, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), type=ReferenceType(arguments=None, dimensions=[], name=Token, sub_type=None))), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=l_tree, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=Cast(expression=MethodInvocation(arguments=[MemberReference(member=l, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=create, postfix_operators=[], prefix_operators=[], qualifier=adaptor, selectors=[], type_arguments=None), type=ReferenceType(arguments=None, dimensions=[], name=CommonTree, sub_type=None))), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=root_0, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=Cast(expression=MethodInvocation(arguments=[MemberReference(member=l_tree, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=root_0, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=becomeRoot, postfix_operators=[], prefix_operators=[], qualifier=adaptor, selectors=[], type_arguments=None), type=ReferenceType(arguments=None, dimensions=[], name=CommonTree, sub_type=None))), label=None), StatementExpression(expression=MethodInvocation(arguments=[TernaryExpression(condition=BinaryOperation(operandl=MemberReference(member=n, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=null), operator===), if_false=MemberReference(member=NOT_LIKE, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), if_true=MemberReference(member=LIKE, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]))], member=setType, postfix_operators=[], prefix_operators=[], qualifier=l, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[TernaryExpression(condition=BinaryOperation(operandl=MemberReference(member=n, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=null), operator===), if_false=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="not like"), if_true=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="like"))], member=setText, postfix_operators=[], prefix_operators=[], qualifier=l, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=FOLLOW_concatenation_in_relationalExpression2179, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=pushFollow, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=concatenation174, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MethodInvocation(arguments=[], member=concatenation, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None)), label=None), StatementExpression(expression=MemberReference(member=_fsp, postfix_operators=['--'], prefix_operators=[], qualifier=state, selectors=[]), label=None), StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=root_0, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MethodInvocation(arguments=[], member=getTree, postfix_operators=[], prefix_operators=[], qualifier=concatenation174, selectors=[], type_arguments=None)], member=addChild, postfix_operators=[], prefix_operators=[], qualifier=adaptor, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=FOLLOW_likeEscape_in_relationalExpression2181, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=pushFollow, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=likeEscape175, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MethodInvocation(arguments=[], member=likeEscape, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None)), label=None), StatementExpression(expression=MemberReference(member=_fsp, postfix_operators=['--'], prefix_operators=[], qualifier=state, selectors=[]), label=None), StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=root_0, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MethodInvocation(arguments=[], member=getTree, postfix_operators=[], prefix_operators=[], qualifier=likeEscape175, selectors=[], type_arguments=None)], member=addChild, postfix_operators=[], prefix_operators=[], qualifier=adaptor, selectors=[], type_arguments=None), label=None)])]), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=4)], statements=[BlockStatement(label=None, statements=[BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=MEMBER176, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=Cast(expression=MethodInvocation(arguments=[MemberReference(member=input, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=MEMBER, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=FOLLOW_MEMBER_in_relationalExpression2190, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=match, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), type=ReferenceType(arguments=None, dimensions=[], name=Token, sub_type=None))), label=None), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=2), name=alt60)], modifiers=set(), type=BasicType(dimensions=[], name=int)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1)], member=LA, postfix_operators=[], prefix_operators=[], qualifier=input, selectors=[], type_arguments=None), name=LA60_0)], modifiers=set(), type=BasicType(dimensions=[], name=int)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=LA60_0, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=OF, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator===), else_statement=None, label=None, then_statement=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=alt60, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1)), label=None)])), SwitchStatement(cases=[SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1)], statements=[BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=OF177, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=Cast(expression=MethodInvocation(arguments=[MemberReference(member=input, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=OF, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=FOLLOW_OF_in_relationalExpression2194, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=match, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), type=ReferenceType(arguments=None, dimensions=[], name=Token, sub_type=None))), label=None)]), BreakStatement(goto=None, label=None)])], expression=MemberReference(member=alt60, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), label=None), StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=FOLLOW_path_in_relationalExpression2201, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=pushFollow, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=p, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MethodInvocation(arguments=[], member=path, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None)), label=None), StatementExpression(expression=MemberReference(member=_fsp, postfix_operators=['--'], prefix_operators=[], qualifier=state, selectors=[]), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=root_0, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MethodInvocation(arguments=[MemberReference(member=n, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), TernaryExpression(condition=BinaryOperation(operandl=MemberReference(member=p, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=null), operator=!=), if_false=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=null), if_true=Cast(expression=MethodInvocation(arguments=[], member=getTree, postfix_operators=[], prefix_operators=[], qualifier=p, selectors=[], type_arguments=None), type=ReferenceType(arguments=None, dimensions=[], name=CommonTree, sub_type=None))), MemberReference(member=root_0, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=ProcessMemberOf, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None)), label=None)])]), BreakStatement(goto=None, label=None)])], expression=MemberReference(member=alt61, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), label=None)]), BreakStatement(goto=None, label=None)])], expression=MemberReference(member=alt62, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), label=None)]), StatementExpression(expression=Assignment(expressionl=MemberReference(member=stop, postfix_operators=[], prefix_operators=[], qualifier=retval, selectors=[]), type==, value=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=['-'], qualifier=None, selectors=[], value=1)], member=LT, postfix_operators=[], prefix_operators=[], qualifier=input, selectors=[], type_arguments=None)), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=tree, postfix_operators=[], prefix_operators=[], qualifier=retval, selectors=[]), type==, value=Cast(expression=MethodInvocation(arguments=[MemberReference(member=root_0, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=rulePostProcessing, postfix_operators=[], prefix_operators=[], qualifier=adaptor, selectors=[], type_arguments=None), type=ReferenceType(arguments=None, dimensions=[], name=CommonTree, sub_type=None))), label=None), StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=tree, postfix_operators=[], prefix_operators=[], qualifier=retval, selectors=[]), MemberReference(member=start, postfix_operators=[], prefix_operators=[], qualifier=retval, selectors=[]), MemberReference(member=stop, postfix_operators=[], prefix_operators=[], qualifier=retval, selectors=[])], member=setTokenBoundaries, postfix_operators=[], prefix_operators=[], qualifier=adaptor, selectors=[], type_arguments=None), label=None)], catches=[CatchClause(block=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=re, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=reportError, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=input, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=re, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=recover, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=tree, postfix_operators=[], prefix_operators=[], qualifier=retval, selectors=[]), type==, value=Cast(expression=MethodInvocation(arguments=[MemberReference(member=input, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=start, postfix_operators=[], prefix_operators=[], qualifier=retval, selectors=[]), MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=['-'], qualifier=None, selectors=[], value=1)], member=LT, postfix_operators=[], prefix_operators=[], qualifier=input, selectors=[], type_arguments=None), MemberReference(member=re, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=errorNode, postfix_operators=[], prefix_operators=[], qualifier=adaptor, selectors=[], type_arguments=None), type=ReferenceType(arguments=None, dimensions=[], name=CommonTree, sub_type=None))), label=None)], label=None, parameter=CatchClauseParameter(annotations=None, modifiers=None, name=re, types=['RecognitionException']))], finally_block=[], label=None, resources=None) return[member[.retval]] end[}] END[}]
Keyword[public] Keyword[final] identifier[hqlParser] operator[SEP] identifier[relationalExpression_return] identifier[relationalExpression] operator[SEP] operator[SEP] Keyword[throws] identifier[RecognitionException] { identifier[hqlParser] operator[SEP] identifier[relationalExpression_return] identifier[retval] operator[=] Keyword[new] identifier[hqlParser] operator[SEP] identifier[relationalExpression_return] operator[SEP] operator[SEP] operator[SEP] identifier[retval] operator[SEP] identifier[start] operator[=] identifier[input] operator[SEP] identifier[LT] operator[SEP] Other[1] operator[SEP] operator[SEP] identifier[CommonTree] identifier[root_0] operator[=] Other[null] operator[SEP] identifier[Token] identifier[n] operator[=] Other[null] operator[SEP] identifier[Token] identifier[i] operator[=] Other[null] operator[SEP] identifier[Token] identifier[b] operator[=] Other[null] operator[SEP] identifier[Token] identifier[l] operator[=] Other[null] operator[SEP] identifier[Token] identifier[LT167] operator[=] Other[null] operator[SEP] identifier[Token] identifier[GT168] operator[=] Other[null] operator[SEP] identifier[Token] identifier[LE169] operator[=] Other[null] operator[SEP] identifier[Token] identifier[GE170] operator[=] Other[null] operator[SEP] identifier[Token] identifier[MEMBER176] operator[=] Other[null] operator[SEP] identifier[Token] identifier[OF177] operator[=] Other[null] operator[SEP] identifier[ParserRuleReturnScope] identifier[p] operator[=] Other[null] operator[SEP] identifier[ParserRuleReturnScope] identifier[concatenation166] operator[=] Other[null] operator[SEP] identifier[ParserRuleReturnScope] identifier[bitwiseNotExpression171] operator[=] Other[null] operator[SEP] identifier[ParserRuleReturnScope] identifier[inList172] operator[=] Other[null] operator[SEP] identifier[ParserRuleReturnScope] identifier[betweenList173] operator[=] Other[null] operator[SEP] identifier[ParserRuleReturnScope] identifier[concatenation174] operator[=] Other[null] operator[SEP] identifier[ParserRuleReturnScope] identifier[likeEscape175] operator[=] Other[null] operator[SEP] identifier[CommonTree] identifier[n_tree] operator[=] Other[null] operator[SEP] identifier[CommonTree] identifier[i_tree] operator[=] Other[null] operator[SEP] identifier[CommonTree] identifier[b_tree] operator[=] Other[null] operator[SEP] identifier[CommonTree] identifier[l_tree] operator[=] Other[null] operator[SEP] identifier[CommonTree] identifier[LT167_tree] operator[=] Other[null] operator[SEP] identifier[CommonTree] identifier[GT168_tree] operator[=] Other[null] operator[SEP] identifier[CommonTree] identifier[LE169_tree] operator[=] Other[null] operator[SEP] identifier[CommonTree] identifier[GE170_tree] operator[=] Other[null] operator[SEP] identifier[CommonTree] identifier[MEMBER176_tree] operator[=] Other[null] operator[SEP] identifier[CommonTree] identifier[OF177_tree] operator[=] Other[null] operator[SEP] Keyword[try] { { identifier[root_0] operator[=] operator[SEP] identifier[CommonTree] operator[SEP] identifier[adaptor] operator[SEP] identifier[nil] operator[SEP] operator[SEP] operator[SEP] identifier[pushFollow] operator[SEP] identifier[FOLLOW_concatenation_in_relationalExpression2059] operator[SEP] operator[SEP] identifier[concatenation166] operator[=] identifier[concatenation] operator[SEP] operator[SEP] operator[SEP] identifier[state] operator[SEP] identifier[_fsp] operator[--] operator[SEP] identifier[adaptor] operator[SEP] identifier[addChild] operator[SEP] identifier[root_0] , identifier[concatenation166] operator[SEP] identifier[getTree] operator[SEP] operator[SEP] operator[SEP] operator[SEP] Keyword[int] identifier[alt62] operator[=] Other[2] operator[SEP] Keyword[int] identifier[LA62_0] operator[=] identifier[input] operator[SEP] identifier[LA] operator[SEP] Other[1] operator[SEP] operator[SEP] Keyword[if] operator[SEP] operator[SEP] identifier[LA62_0] operator[==] identifier[EOF] operator[||] identifier[LA62_0] operator[==] identifier[AND] operator[||] operator[SEP] identifier[LA62_0] operator[>=] identifier[AS] operator[&&] identifier[LA62_0] operator[<=] identifier[ASCENDING] operator[SEP] operator[||] operator[SEP] identifier[LA62_0] operator[>=] identifier[CLOSE] operator[&&] identifier[LA62_0] operator[<=] identifier[CLOSE_BRACKET] operator[SEP] operator[||] identifier[LA62_0] operator[==] identifier[COMMA] operator[||] identifier[LA62_0] operator[==] identifier[DESCENDING] operator[||] identifier[LA62_0] operator[==] identifier[ELSE] operator[||] operator[SEP] identifier[LA62_0] operator[>=] identifier[END] operator[&&] identifier[LA62_0] operator[<=] identifier[EQ] operator[SEP] operator[||] operator[SEP] identifier[LA62_0] operator[>=] identifier[FROM] operator[&&] identifier[LA62_0] operator[<=] identifier[HAVING] operator[SEP] operator[||] identifier[LA62_0] operator[==] identifier[INNER] operator[||] identifier[LA62_0] operator[==] identifier[IS] operator[||] operator[SEP] identifier[LA62_0] operator[>=] identifier[JOIN] operator[&&] identifier[LA62_0] operator[<=] identifier[LE] operator[SEP] operator[||] identifier[LA62_0] operator[==] identifier[LEFT] operator[||] identifier[LA62_0] operator[==] identifier[LT] operator[||] identifier[LA62_0] operator[==] identifier[NE] operator[||] operator[SEP] identifier[LA62_0] operator[>=] identifier[OR] operator[&&] identifier[LA62_0] operator[<=] identifier[ORDER] operator[SEP] operator[||] identifier[LA62_0] operator[==] identifier[RIGHT] operator[||] identifier[LA62_0] operator[==] identifier[SKIP] operator[||] identifier[LA62_0] operator[==] identifier[SQL_NE] operator[||] operator[SEP] identifier[LA62_0] operator[>=] identifier[TAKE] operator[&&] identifier[LA62_0] operator[<=] identifier[THEN] operator[SEP] operator[||] identifier[LA62_0] operator[==] identifier[UNION] operator[||] operator[SEP] identifier[LA62_0] operator[>=] identifier[WHEN] operator[&&] identifier[LA62_0] operator[<=] identifier[WHERE] operator[SEP] operator[||] operator[SEP] identifier[LA62_0] operator[>=] Other[133] operator[&&] identifier[LA62_0] operator[<=] Other[134] operator[SEP] operator[SEP] operator[SEP] { identifier[alt62] operator[=] Other[1] operator[SEP] } Keyword[else] Keyword[if] operator[SEP] operator[SEP] identifier[LA62_0] operator[==] identifier[BETWEEN] operator[||] identifier[LA62_0] operator[==] identifier[IN] operator[||] identifier[LA62_0] operator[==] identifier[LIKE] operator[||] identifier[LA62_0] operator[==] identifier[MEMBER] operator[||] identifier[LA62_0] operator[==] identifier[NOT] operator[SEP] operator[SEP] { identifier[alt62] operator[=] Other[2] operator[SEP] } Keyword[else] { identifier[NoViableAltException] identifier[nvae] operator[=] Keyword[new] identifier[NoViableAltException] operator[SEP] literal[String] , Other[62] , Other[0] , identifier[input] operator[SEP] operator[SEP] Keyword[throw] identifier[nvae] operator[SEP] } Keyword[switch] operator[SEP] identifier[alt62] operator[SEP] { Keyword[case] Other[1] operator[:] { { identifier[loop58] operator[:] Keyword[while] operator[SEP] literal[boolean] operator[SEP] { Keyword[int] identifier[alt58] operator[=] Other[2] operator[SEP] Keyword[int] identifier[LA58_0] operator[=] identifier[input] operator[SEP] identifier[LA] operator[SEP] Other[1] operator[SEP] operator[SEP] Keyword[if] operator[SEP] operator[SEP] identifier[LA58_0] operator[==] identifier[GE] operator[||] identifier[LA58_0] operator[==] identifier[GT] operator[||] identifier[LA58_0] operator[==] identifier[LE] operator[||] identifier[LA58_0] operator[==] identifier[LT] operator[SEP] operator[SEP] { identifier[alt58] operator[=] Other[1] operator[SEP] } Keyword[switch] operator[SEP] identifier[alt58] operator[SEP] { Keyword[case] Other[1] operator[:] { Keyword[int] identifier[alt57] operator[=] Other[4] operator[SEP] Keyword[switch] operator[SEP] identifier[input] operator[SEP] identifier[LA] operator[SEP] Other[1] operator[SEP] operator[SEP] { Keyword[case] identifier[LT] operator[:] { identifier[alt57] operator[=] Other[1] operator[SEP] } Keyword[break] operator[SEP] Keyword[case] identifier[GT] operator[:] { identifier[alt57] operator[=] Other[2] operator[SEP] } Keyword[break] operator[SEP] Keyword[case] identifier[LE] operator[:] { identifier[alt57] operator[=] Other[3] operator[SEP] } Keyword[break] operator[SEP] Keyword[case] identifier[GE] operator[:] { identifier[alt57] operator[=] Other[4] operator[SEP] } Keyword[break] operator[SEP] Keyword[default] operator[:] identifier[NoViableAltException] identifier[nvae] operator[=] Keyword[new] identifier[NoViableAltException] operator[SEP] literal[String] , Other[57] , Other[0] , identifier[input] operator[SEP] operator[SEP] Keyword[throw] identifier[nvae] operator[SEP] } Keyword[switch] operator[SEP] identifier[alt57] operator[SEP] { Keyword[case] Other[1] operator[:] { identifier[LT167] operator[=] operator[SEP] identifier[Token] operator[SEP] identifier[match] operator[SEP] identifier[input] , identifier[LT] , identifier[FOLLOW_LT_in_relationalExpression2071] operator[SEP] operator[SEP] identifier[LT167_tree] operator[=] operator[SEP] identifier[CommonTree] operator[SEP] identifier[adaptor] operator[SEP] identifier[create] operator[SEP] identifier[LT167] operator[SEP] operator[SEP] identifier[root_0] operator[=] operator[SEP] identifier[CommonTree] operator[SEP] identifier[adaptor] operator[SEP] identifier[becomeRoot] operator[SEP] identifier[LT167_tree] , identifier[root_0] operator[SEP] operator[SEP] } Keyword[break] operator[SEP] Keyword[case] Other[2] operator[:] { identifier[GT168] operator[=] operator[SEP] identifier[Token] operator[SEP] identifier[match] operator[SEP] identifier[input] , identifier[GT] , identifier[FOLLOW_GT_in_relationalExpression2076] operator[SEP] operator[SEP] identifier[GT168_tree] operator[=] operator[SEP] identifier[CommonTree] operator[SEP] identifier[adaptor] operator[SEP] identifier[create] operator[SEP] identifier[GT168] operator[SEP] operator[SEP] identifier[root_0] operator[=] operator[SEP] identifier[CommonTree] operator[SEP] identifier[adaptor] operator[SEP] identifier[becomeRoot] operator[SEP] identifier[GT168_tree] , identifier[root_0] operator[SEP] operator[SEP] } Keyword[break] operator[SEP] Keyword[case] Other[3] operator[:] { identifier[LE169] operator[=] operator[SEP] identifier[Token] operator[SEP] identifier[match] operator[SEP] identifier[input] , identifier[LE] , identifier[FOLLOW_LE_in_relationalExpression2081] operator[SEP] operator[SEP] identifier[LE169_tree] operator[=] operator[SEP] identifier[CommonTree] operator[SEP] identifier[adaptor] operator[SEP] identifier[create] operator[SEP] identifier[LE169] operator[SEP] operator[SEP] identifier[root_0] operator[=] operator[SEP] identifier[CommonTree] operator[SEP] identifier[adaptor] operator[SEP] identifier[becomeRoot] operator[SEP] identifier[LE169_tree] , identifier[root_0] operator[SEP] operator[SEP] } Keyword[break] operator[SEP] Keyword[case] Other[4] operator[:] { identifier[GE170] operator[=] operator[SEP] identifier[Token] operator[SEP] identifier[match] operator[SEP] identifier[input] , identifier[GE] , identifier[FOLLOW_GE_in_relationalExpression2086] operator[SEP] operator[SEP] identifier[GE170_tree] operator[=] operator[SEP] identifier[CommonTree] operator[SEP] identifier[adaptor] operator[SEP] identifier[create] operator[SEP] identifier[GE170] operator[SEP] operator[SEP] identifier[root_0] operator[=] operator[SEP] identifier[CommonTree] operator[SEP] identifier[adaptor] operator[SEP] identifier[becomeRoot] operator[SEP] identifier[GE170_tree] , identifier[root_0] operator[SEP] operator[SEP] } Keyword[break] operator[SEP] } identifier[pushFollow] operator[SEP] identifier[FOLLOW_bitwiseNotExpression_in_relationalExpression2091] operator[SEP] operator[SEP] identifier[bitwiseNotExpression171] operator[=] identifier[bitwiseNotExpression] operator[SEP] operator[SEP] operator[SEP] identifier[state] operator[SEP] identifier[_fsp] operator[--] operator[SEP] identifier[adaptor] operator[SEP] identifier[addChild] operator[SEP] identifier[root_0] , identifier[bitwiseNotExpression171] operator[SEP] identifier[getTree] operator[SEP] operator[SEP] operator[SEP] operator[SEP] } Keyword[break] operator[SEP] Keyword[default] operator[:] Keyword[break] identifier[loop58] operator[SEP] } } } } Keyword[break] operator[SEP] Keyword[case] Other[2] operator[:] { Keyword[int] identifier[alt59] operator[=] Other[2] operator[SEP] Keyword[int] identifier[LA59_0] operator[=] identifier[input] operator[SEP] identifier[LA] operator[SEP] Other[1] operator[SEP] operator[SEP] Keyword[if] operator[SEP] operator[SEP] identifier[LA59_0] operator[==] identifier[NOT] operator[SEP] operator[SEP] { identifier[alt59] operator[=] Other[1] operator[SEP] } Keyword[switch] operator[SEP] identifier[alt59] operator[SEP] { Keyword[case] Other[1] operator[:] { identifier[n] operator[=] operator[SEP] identifier[Token] operator[SEP] identifier[match] operator[SEP] identifier[input] , identifier[NOT] , identifier[FOLLOW_NOT_in_relationalExpression2108] operator[SEP] operator[SEP] } Keyword[break] operator[SEP] } Keyword[int] identifier[alt61] operator[=] Other[4] operator[SEP] Keyword[switch] operator[SEP] identifier[input] operator[SEP] identifier[LA] operator[SEP] Other[1] operator[SEP] operator[SEP] { Keyword[case] identifier[IN] operator[:] { identifier[alt61] operator[=] Other[1] operator[SEP] } Keyword[break] operator[SEP] Keyword[case] identifier[BETWEEN] operator[:] { identifier[alt61] operator[=] Other[2] operator[SEP] } Keyword[break] operator[SEP] Keyword[case] identifier[LIKE] operator[:] { identifier[alt61] operator[=] Other[3] operator[SEP] } Keyword[break] operator[SEP] Keyword[case] identifier[MEMBER] operator[:] { identifier[alt61] operator[=] Other[4] operator[SEP] } Keyword[break] operator[SEP] Keyword[default] operator[:] identifier[NoViableAltException] identifier[nvae] operator[=] Keyword[new] identifier[NoViableAltException] operator[SEP] literal[String] , Other[61] , Other[0] , identifier[input] operator[SEP] operator[SEP] Keyword[throw] identifier[nvae] operator[SEP] } Keyword[switch] operator[SEP] identifier[alt61] operator[SEP] { Keyword[case] Other[1] operator[:] { { identifier[i] operator[=] operator[SEP] identifier[Token] operator[SEP] identifier[match] operator[SEP] identifier[input] , identifier[IN] , identifier[FOLLOW_IN_in_relationalExpression2129] operator[SEP] operator[SEP] identifier[i_tree] operator[=] operator[SEP] identifier[CommonTree] operator[SEP] identifier[adaptor] operator[SEP] identifier[create] operator[SEP] identifier[i] operator[SEP] operator[SEP] identifier[root_0] operator[=] operator[SEP] identifier[CommonTree] operator[SEP] identifier[adaptor] operator[SEP] identifier[becomeRoot] operator[SEP] identifier[i_tree] , identifier[root_0] operator[SEP] operator[SEP] identifier[i] operator[SEP] identifier[setType] operator[SEP] operator[SEP] identifier[n] operator[==] Other[null] operator[SEP] operator[?] identifier[IN] operator[:] identifier[NOT_IN] operator[SEP] operator[SEP] identifier[i] operator[SEP] identifier[setText] operator[SEP] operator[SEP] identifier[n] operator[==] Other[null] operator[SEP] operator[?] literal[String] operator[:] literal[String] operator[SEP] operator[SEP] identifier[pushFollow] operator[SEP] identifier[FOLLOW_inList_in_relationalExpression2138] operator[SEP] operator[SEP] identifier[inList172] operator[=] identifier[inList] operator[SEP] operator[SEP] operator[SEP] identifier[state] operator[SEP] identifier[_fsp] operator[--] operator[SEP] identifier[adaptor] operator[SEP] identifier[addChild] operator[SEP] identifier[root_0] , identifier[inList172] operator[SEP] identifier[getTree] operator[SEP] operator[SEP] operator[SEP] operator[SEP] } } Keyword[break] operator[SEP] Keyword[case] Other[2] operator[:] { { identifier[b] operator[=] operator[SEP] identifier[Token] operator[SEP] identifier[match] operator[SEP] identifier[input] , identifier[BETWEEN] , identifier[FOLLOW_BETWEEN_in_relationalExpression2149] operator[SEP] operator[SEP] identifier[b_tree] operator[=] operator[SEP] identifier[CommonTree] operator[SEP] identifier[adaptor] operator[SEP] identifier[create] operator[SEP] identifier[b] operator[SEP] operator[SEP] identifier[root_0] operator[=] operator[SEP] identifier[CommonTree] operator[SEP] identifier[adaptor] operator[SEP] identifier[becomeRoot] operator[SEP] identifier[b_tree] , identifier[root_0] operator[SEP] operator[SEP] identifier[b] operator[SEP] identifier[setType] operator[SEP] operator[SEP] identifier[n] operator[==] Other[null] operator[SEP] operator[?] identifier[BETWEEN] operator[:] identifier[NOT_BETWEEN] operator[SEP] operator[SEP] identifier[b] operator[SEP] identifier[setText] operator[SEP] operator[SEP] identifier[n] operator[==] Other[null] operator[SEP] operator[?] literal[String] operator[:] literal[String] operator[SEP] operator[SEP] identifier[pushFollow] operator[SEP] identifier[FOLLOW_betweenList_in_relationalExpression2158] operator[SEP] operator[SEP] identifier[betweenList173] operator[=] identifier[betweenList] operator[SEP] operator[SEP] operator[SEP] identifier[state] operator[SEP] identifier[_fsp] operator[--] operator[SEP] identifier[adaptor] operator[SEP] identifier[addChild] operator[SEP] identifier[root_0] , identifier[betweenList173] operator[SEP] identifier[getTree] operator[SEP] operator[SEP] operator[SEP] operator[SEP] } } Keyword[break] operator[SEP] Keyword[case] Other[3] operator[:] { { identifier[l] operator[=] operator[SEP] identifier[Token] operator[SEP] identifier[match] operator[SEP] identifier[input] , identifier[LIKE] , identifier[FOLLOW_LIKE_in_relationalExpression2170] operator[SEP] operator[SEP] identifier[l_tree] operator[=] operator[SEP] identifier[CommonTree] operator[SEP] identifier[adaptor] operator[SEP] identifier[create] operator[SEP] identifier[l] operator[SEP] operator[SEP] identifier[root_0] operator[=] operator[SEP] identifier[CommonTree] operator[SEP] identifier[adaptor] operator[SEP] identifier[becomeRoot] operator[SEP] identifier[l_tree] , identifier[root_0] operator[SEP] operator[SEP] identifier[l] operator[SEP] identifier[setType] operator[SEP] operator[SEP] identifier[n] operator[==] Other[null] operator[SEP] operator[?] identifier[LIKE] operator[:] identifier[NOT_LIKE] operator[SEP] operator[SEP] identifier[l] operator[SEP] identifier[setText] operator[SEP] operator[SEP] identifier[n] operator[==] Other[null] operator[SEP] operator[?] literal[String] operator[:] literal[String] operator[SEP] operator[SEP] identifier[pushFollow] operator[SEP] identifier[FOLLOW_concatenation_in_relationalExpression2179] operator[SEP] operator[SEP] identifier[concatenation174] operator[=] identifier[concatenation] operator[SEP] operator[SEP] operator[SEP] identifier[state] operator[SEP] identifier[_fsp] operator[--] operator[SEP] identifier[adaptor] operator[SEP] identifier[addChild] operator[SEP] identifier[root_0] , identifier[concatenation174] operator[SEP] identifier[getTree] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[pushFollow] operator[SEP] identifier[FOLLOW_likeEscape_in_relationalExpression2181] operator[SEP] operator[SEP] identifier[likeEscape175] operator[=] identifier[likeEscape] operator[SEP] operator[SEP] operator[SEP] identifier[state] operator[SEP] identifier[_fsp] operator[--] operator[SEP] identifier[adaptor] operator[SEP] identifier[addChild] operator[SEP] identifier[root_0] , identifier[likeEscape175] operator[SEP] identifier[getTree] operator[SEP] operator[SEP] operator[SEP] operator[SEP] } } Keyword[break] operator[SEP] Keyword[case] Other[4] operator[:] { { identifier[MEMBER176] operator[=] operator[SEP] identifier[Token] operator[SEP] identifier[match] operator[SEP] identifier[input] , identifier[MEMBER] , identifier[FOLLOW_MEMBER_in_relationalExpression2190] operator[SEP] operator[SEP] Keyword[int] identifier[alt60] operator[=] Other[2] operator[SEP] Keyword[int] identifier[LA60_0] operator[=] identifier[input] operator[SEP] identifier[LA] operator[SEP] Other[1] operator[SEP] operator[SEP] Keyword[if] operator[SEP] operator[SEP] identifier[LA60_0] operator[==] identifier[OF] operator[SEP] operator[SEP] { identifier[alt60] operator[=] Other[1] operator[SEP] } Keyword[switch] operator[SEP] identifier[alt60] operator[SEP] { Keyword[case] Other[1] operator[:] { identifier[OF177] operator[=] operator[SEP] identifier[Token] operator[SEP] identifier[match] operator[SEP] identifier[input] , identifier[OF] , identifier[FOLLOW_OF_in_relationalExpression2194] operator[SEP] operator[SEP] } Keyword[break] operator[SEP] } identifier[pushFollow] operator[SEP] identifier[FOLLOW_path_in_relationalExpression2201] operator[SEP] operator[SEP] identifier[p] operator[=] identifier[path] operator[SEP] operator[SEP] operator[SEP] identifier[state] operator[SEP] identifier[_fsp] operator[--] operator[SEP] identifier[root_0] operator[=] identifier[ProcessMemberOf] operator[SEP] identifier[n] , operator[SEP] identifier[p] operator[!=] Other[null] operator[?] operator[SEP] operator[SEP] identifier[CommonTree] operator[SEP] identifier[p] operator[SEP] identifier[getTree] operator[SEP] operator[SEP] operator[SEP] operator[:] Other[null] operator[SEP] , identifier[root_0] operator[SEP] operator[SEP] } } Keyword[break] operator[SEP] } } Keyword[break] operator[SEP] } } identifier[retval] operator[SEP] identifier[stop] operator[=] identifier[input] operator[SEP] identifier[LT] operator[SEP] operator[-] Other[1] operator[SEP] operator[SEP] identifier[retval] operator[SEP] identifier[tree] operator[=] operator[SEP] identifier[CommonTree] operator[SEP] identifier[adaptor] operator[SEP] identifier[rulePostProcessing] operator[SEP] identifier[root_0] operator[SEP] operator[SEP] identifier[adaptor] operator[SEP] identifier[setTokenBoundaries] operator[SEP] identifier[retval] operator[SEP] identifier[tree] , identifier[retval] operator[SEP] identifier[start] , identifier[retval] operator[SEP] identifier[stop] operator[SEP] operator[SEP] } Keyword[catch] operator[SEP] identifier[RecognitionException] identifier[re] operator[SEP] { identifier[reportError] operator[SEP] identifier[re] operator[SEP] operator[SEP] identifier[recover] operator[SEP] identifier[input] , identifier[re] operator[SEP] operator[SEP] identifier[retval] operator[SEP] identifier[tree] operator[=] operator[SEP] identifier[CommonTree] operator[SEP] identifier[adaptor] operator[SEP] identifier[errorNode] operator[SEP] identifier[input] , identifier[retval] operator[SEP] identifier[start] , identifier[input] operator[SEP] identifier[LT] operator[SEP] operator[-] Other[1] operator[SEP] , identifier[re] operator[SEP] operator[SEP] } Keyword[finally] { } Keyword[return] identifier[retval] operator[SEP] }
public void setMMPName(String newMMPName) { String oldMMPName = mmpName; mmpName = newMMPName; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, AfplibPackage.IMM__MMP_NAME, oldMMPName, mmpName)); }
class class_name[name] begin[{] method[setMMPName, return_type[void], modifier[public], parameter[newMMPName]] begin[{] local_variable[type[String], oldMMPName] assign[member[.mmpName], member[.newMMPName]] if[call[.eNotificationRequired, parameter[]]] begin[{] call[.eNotify, parameter[ClassCreator(arguments=[This(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[]), MemberReference(member=SET, postfix_operators=[], prefix_operators=[], qualifier=Notification, selectors=[]), MemberReference(member=IMM__MMP_NAME, postfix_operators=[], prefix_operators=[], qualifier=AfplibPackage, selectors=[]), MemberReference(member=oldMMPName, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=mmpName, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=ENotificationImpl, sub_type=None))]] else begin[{] None end[}] end[}] END[}]
Keyword[public] Keyword[void] identifier[setMMPName] operator[SEP] identifier[String] identifier[newMMPName] operator[SEP] { identifier[String] identifier[oldMMPName] operator[=] identifier[mmpName] operator[SEP] identifier[mmpName] operator[=] identifier[newMMPName] operator[SEP] Keyword[if] operator[SEP] identifier[eNotificationRequired] operator[SEP] operator[SEP] operator[SEP] identifier[eNotify] operator[SEP] Keyword[new] identifier[ENotificationImpl] operator[SEP] Keyword[this] , identifier[Notification] operator[SEP] identifier[SET] , identifier[AfplibPackage] operator[SEP] identifier[IMM__MMP_NAME] , identifier[oldMMPName] , identifier[mmpName] operator[SEP] operator[SEP] operator[SEP] }
private List<SyndPerson> parsePersons(final String baseURI, final List<Element> ePersons, final Locale locale) { final List<SyndPerson> persons = new ArrayList<SyndPerson>(); for (final Element ePerson : ePersons) { persons.add(parsePerson(baseURI, ePerson, locale)); } return Lists.emptyToNull(persons); }
class class_name[name] begin[{] method[parsePersons, return_type[type[List]], modifier[private], parameter[baseURI, ePersons, locale]] begin[{] local_variable[type[List], persons] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[MemberReference(member=baseURI, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=ePerson, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=locale, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=parsePerson, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None)], member=add, postfix_operators=[], prefix_operators=[], qualifier=persons, selectors=[], type_arguments=None), label=None)]), control=EnhancedForControl(iterable=MemberReference(member=ePersons, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), var=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=None, name=ePerson)], modifiers={'final'}, type=ReferenceType(arguments=None, dimensions=[], name=Element, sub_type=None))), label=None) return[call[Lists.emptyToNull, parameter[member[.persons]]]] end[}] END[}]
Keyword[private] identifier[List] operator[<] identifier[SyndPerson] operator[>] identifier[parsePersons] operator[SEP] Keyword[final] identifier[String] identifier[baseURI] , Keyword[final] identifier[List] operator[<] identifier[Element] operator[>] identifier[ePersons] , Keyword[final] identifier[Locale] identifier[locale] operator[SEP] { Keyword[final] identifier[List] operator[<] identifier[SyndPerson] operator[>] identifier[persons] operator[=] Keyword[new] identifier[ArrayList] operator[<] identifier[SyndPerson] operator[>] operator[SEP] operator[SEP] operator[SEP] Keyword[for] operator[SEP] Keyword[final] identifier[Element] identifier[ePerson] operator[:] identifier[ePersons] operator[SEP] { identifier[persons] operator[SEP] identifier[add] operator[SEP] identifier[parsePerson] operator[SEP] identifier[baseURI] , identifier[ePerson] , identifier[locale] operator[SEP] operator[SEP] operator[SEP] } Keyword[return] identifier[Lists] operator[SEP] identifier[emptyToNull] operator[SEP] identifier[persons] operator[SEP] operator[SEP] }
public static INDArray reverseTimeSeries(INDArray in){ if(in == null){ return null; } if(in.ordering() != 'f' || in.isView() || !Shape.strideDescendingCAscendingF(in)){ in = in.dup('f'); } // FIXME: int cast int[] idxs = new int[(int) in.size(2)]; int j=0; for( int i=idxs.length-1; i>=0; i--){ idxs[j++] = i; } INDArray inReshape = in.reshape('f', in.size(0)*in.size(1), in.size(2)); INDArray outReshape = Nd4j.pullRows(inReshape, 0, idxs, 'f'); return outReshape.reshape('f', in.size(0), in.size(1), in.size(2)); }
class class_name[name] begin[{] method[reverseTimeSeries, return_type[type[INDArray]], modifier[public static], parameter[in]] begin[{] if[binary_operation[member[.in], ==, literal[null]]] begin[{] return[literal[null]] else begin[{] None end[}] if[binary_operation[binary_operation[binary_operation[call[in.ordering, parameter[]], !=, literal['f']], ||, call[in.isView, parameter[]]], ||, call[Shape.strideDescendingCAscendingF, parameter[member[.in]]]]] begin[{] assign[member[.in], call[in.dup, parameter[literal['f']]]] else begin[{] None end[}] local_variable[type[int], idxs] local_variable[type[int], j] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=idxs, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=MemberReference(member=j, postfix_operators=['++'], prefix_operators=[], qualifier=, selectors=[]))]), type==, value=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])), label=None)]), control=ForControl(condition=BinaryOperation(operandl=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), operator=>=), init=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=BinaryOperation(operandl=MemberReference(member=length, postfix_operators=[], prefix_operators=[], qualifier=idxs, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), operator=-), name=i)], modifiers=set(), type=BasicType(dimensions=[], name=int)), update=[MemberReference(member=i, postfix_operators=['--'], prefix_operators=[], qualifier=, selectors=[])]), label=None) local_variable[type[INDArray], inReshape] local_variable[type[INDArray], outReshape] return[call[outReshape.reshape, parameter[literal['f'], call[in.size, parameter[literal[0]]], call[in.size, parameter[literal[1]]], call[in.size, parameter[literal[2]]]]]] end[}] END[}]
Keyword[public] Keyword[static] identifier[INDArray] identifier[reverseTimeSeries] operator[SEP] identifier[INDArray] identifier[in] operator[SEP] { Keyword[if] operator[SEP] identifier[in] operator[==] Other[null] operator[SEP] { Keyword[return] Other[null] operator[SEP] } Keyword[if] operator[SEP] identifier[in] operator[SEP] identifier[ordering] operator[SEP] operator[SEP] operator[!=] literal[String] operator[||] identifier[in] operator[SEP] identifier[isView] operator[SEP] operator[SEP] operator[||] operator[!] identifier[Shape] operator[SEP] identifier[strideDescendingCAscendingF] operator[SEP] identifier[in] operator[SEP] operator[SEP] { identifier[in] operator[=] identifier[in] operator[SEP] identifier[dup] operator[SEP] literal[String] operator[SEP] operator[SEP] } Keyword[int] operator[SEP] operator[SEP] identifier[idxs] operator[=] Keyword[new] Keyword[int] operator[SEP] operator[SEP] Keyword[int] operator[SEP] identifier[in] operator[SEP] identifier[size] operator[SEP] Other[2] operator[SEP] operator[SEP] operator[SEP] Keyword[int] identifier[j] operator[=] Other[0] operator[SEP] Keyword[for] operator[SEP] Keyword[int] identifier[i] operator[=] identifier[idxs] operator[SEP] identifier[length] operator[-] Other[1] operator[SEP] identifier[i] operator[>=] Other[0] operator[SEP] identifier[i] operator[--] operator[SEP] { identifier[idxs] operator[SEP] identifier[j] operator[++] operator[SEP] operator[=] identifier[i] operator[SEP] } identifier[INDArray] identifier[inReshape] operator[=] identifier[in] operator[SEP] identifier[reshape] operator[SEP] literal[String] , identifier[in] operator[SEP] identifier[size] operator[SEP] Other[0] operator[SEP] operator[*] identifier[in] operator[SEP] identifier[size] operator[SEP] Other[1] operator[SEP] , identifier[in] operator[SEP] identifier[size] operator[SEP] Other[2] operator[SEP] operator[SEP] operator[SEP] identifier[INDArray] identifier[outReshape] operator[=] identifier[Nd4j] operator[SEP] identifier[pullRows] operator[SEP] identifier[inReshape] , Other[0] , identifier[idxs] , literal[String] operator[SEP] operator[SEP] Keyword[return] identifier[outReshape] operator[SEP] identifier[reshape] operator[SEP] literal[String] , identifier[in] operator[SEP] identifier[size] operator[SEP] Other[0] operator[SEP] , identifier[in] operator[SEP] identifier[size] operator[SEP] Other[1] operator[SEP] , identifier[in] operator[SEP] identifier[size] operator[SEP] Other[2] operator[SEP] operator[SEP] operator[SEP] }
public static XAException createXAException(String key, Object args, int xaErrorCode) { XAException xaX = new XAException( args == null ? getNLSMessage(key) : getNLSMessage(key, args)); xaX.errorCode = xaErrorCode; return xaX; }
class class_name[name] begin[{] method[createXAException, return_type[type[XAException]], modifier[public static], parameter[key, args, xaErrorCode]] begin[{] local_variable[type[XAException], xaX] assign[member[xaX.errorCode], member[.xaErrorCode]] return[member[.xaX]] end[}] END[}]
Keyword[public] Keyword[static] identifier[XAException] identifier[createXAException] operator[SEP] identifier[String] identifier[key] , identifier[Object] identifier[args] , Keyword[int] identifier[xaErrorCode] operator[SEP] { identifier[XAException] identifier[xaX] operator[=] Keyword[new] identifier[XAException] operator[SEP] identifier[args] operator[==] Other[null] operator[?] identifier[getNLSMessage] operator[SEP] identifier[key] operator[SEP] operator[:] identifier[getNLSMessage] operator[SEP] identifier[key] , identifier[args] operator[SEP] operator[SEP] operator[SEP] identifier[xaX] operator[SEP] identifier[errorCode] operator[=] identifier[xaErrorCode] operator[SEP] Keyword[return] identifier[xaX] operator[SEP] }
@Override public void readHeader(RandomAccessFile file) throws IOException { super.readHeader(file); this.min_fanout = file.readInt(); this.num_elements = file.readLong(); this.dimensionality = file.readInt(); this.max_overlap = file.readFloat(); this.supernode_offset = file.readLong(); }
class class_name[name] begin[{] method[readHeader, return_type[void], modifier[public], parameter[file]] begin[{] SuperMethodInvocation(arguments=[MemberReference(member=file, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=readHeader, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type_arguments=None) assign[THIS[member[None.min_fanout]], call[file.readInt, parameter[]]] assign[THIS[member[None.num_elements]], call[file.readLong, parameter[]]] assign[THIS[member[None.dimensionality]], call[file.readInt, parameter[]]] assign[THIS[member[None.max_overlap]], call[file.readFloat, parameter[]]] assign[THIS[member[None.supernode_offset]], call[file.readLong, parameter[]]] end[}] END[}]
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[readHeader] operator[SEP] identifier[RandomAccessFile] identifier[file] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[super] operator[SEP] identifier[readHeader] operator[SEP] identifier[file] operator[SEP] operator[SEP] Keyword[this] operator[SEP] identifier[min_fanout] operator[=] identifier[file] operator[SEP] identifier[readInt] operator[SEP] operator[SEP] operator[SEP] Keyword[this] operator[SEP] identifier[num_elements] operator[=] identifier[file] operator[SEP] identifier[readLong] operator[SEP] operator[SEP] operator[SEP] Keyword[this] operator[SEP] identifier[dimensionality] operator[=] identifier[file] operator[SEP] identifier[readInt] operator[SEP] operator[SEP] operator[SEP] Keyword[this] operator[SEP] identifier[max_overlap] operator[=] identifier[file] operator[SEP] identifier[readFloat] operator[SEP] operator[SEP] operator[SEP] Keyword[this] operator[SEP] identifier[supernode_offset] operator[=] identifier[file] operator[SEP] identifier[readLong] operator[SEP] operator[SEP] operator[SEP] }
@Pure public static boolean propertyArraysEquals (Property<?>[] array, Property<?> [] array2) { if(array.length==array2.length) { for(int i=0; i<array.length; i++) { if(array[i]==null) { if(array2[i]!=null) return false; } else if(array2[i]==null) { return false; } else if(!array[i].getValue().equals(array2[i].getValue())) { return false; } } return true; } return false; }
class class_name[name] begin[{] method[propertyArraysEquals, return_type[type[boolean]], modifier[public static], parameter[array, array2]] begin[{] if[binary_operation[member[array.length], ==, member[array2.length]]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=array, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]))]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=null), operator===), else_statement=IfStatement(condition=BinaryOperation(operandl=MemberReference(member=array2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]))]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=null), operator===), else_statement=IfStatement(condition=MemberReference(member=array, postfix_operators=[], prefix_operators=['!'], qualifier=, selectors=[ArraySelector(index=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])), MethodInvocation(arguments=[], member=getValue, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None), MethodInvocation(arguments=[MemberReference(member=array2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])), MethodInvocation(arguments=[], member=getValue, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)])], member=equals, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)]), else_statement=None, label=None, then_statement=BlockStatement(label=None, statements=[ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=false), label=None)])), label=None, then_statement=BlockStatement(label=None, statements=[ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=false), label=None)])), label=None, then_statement=BlockStatement(label=None, statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=array2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]))]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=null), operator=!=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=false), label=None))]))]), control=ForControl(condition=BinaryOperation(operandl=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=length, postfix_operators=[], prefix_operators=[], qualifier=array, selectors=[]), operator=<), init=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), name=i)], modifiers=set(), type=BasicType(dimensions=[], name=int)), update=[MemberReference(member=i, postfix_operators=['++'], prefix_operators=[], qualifier=, selectors=[])]), label=None) return[literal[true]] else begin[{] None end[}] return[literal[false]] end[}] END[}]
annotation[@] identifier[Pure] Keyword[public] Keyword[static] Keyword[boolean] identifier[propertyArraysEquals] operator[SEP] identifier[Property] operator[<] operator[?] operator[>] operator[SEP] operator[SEP] identifier[array] , identifier[Property] operator[<] operator[?] operator[>] operator[SEP] operator[SEP] identifier[array2] operator[SEP] { Keyword[if] operator[SEP] identifier[array] operator[SEP] identifier[length] operator[==] identifier[array2] operator[SEP] identifier[length] operator[SEP] { Keyword[for] operator[SEP] Keyword[int] identifier[i] operator[=] Other[0] operator[SEP] identifier[i] operator[<] identifier[array] operator[SEP] identifier[length] operator[SEP] identifier[i] operator[++] operator[SEP] { Keyword[if] operator[SEP] identifier[array] operator[SEP] identifier[i] operator[SEP] operator[==] Other[null] operator[SEP] { Keyword[if] operator[SEP] identifier[array2] operator[SEP] identifier[i] operator[SEP] operator[!=] Other[null] operator[SEP] Keyword[return] literal[boolean] operator[SEP] } Keyword[else] Keyword[if] operator[SEP] identifier[array2] operator[SEP] identifier[i] operator[SEP] operator[==] Other[null] operator[SEP] { Keyword[return] literal[boolean] operator[SEP] } Keyword[else] Keyword[if] operator[SEP] operator[!] identifier[array] operator[SEP] identifier[i] operator[SEP] operator[SEP] identifier[getValue] operator[SEP] operator[SEP] operator[SEP] identifier[equals] operator[SEP] identifier[array2] operator[SEP] identifier[i] operator[SEP] operator[SEP] identifier[getValue] operator[SEP] operator[SEP] operator[SEP] operator[SEP] { Keyword[return] literal[boolean] operator[SEP] } } Keyword[return] literal[boolean] operator[SEP] } Keyword[return] literal[boolean] operator[SEP] }
public StartBuildRequest withSecondarySourcesOverride(ProjectSource... secondarySourcesOverride) { if (this.secondarySourcesOverride == null) { setSecondarySourcesOverride(new java.util.ArrayList<ProjectSource>(secondarySourcesOverride.length)); } for (ProjectSource ele : secondarySourcesOverride) { this.secondarySourcesOverride.add(ele); } return this; }
class class_name[name] begin[{] method[withSecondarySourcesOverride, return_type[type[StartBuildRequest]], modifier[public], parameter[secondarySourcesOverride]] begin[{] if[binary_operation[THIS[member[None.secondarySourcesOverride]], ==, literal[null]]] begin[{] call[.setSecondarySourcesOverride, parameter[ClassCreator(arguments=[MemberReference(member=length, postfix_operators=[], prefix_operators=[], qualifier=secondarySourcesOverride, selectors=[])], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=java, sub_type=ReferenceType(arguments=None, dimensions=None, name=util, sub_type=ReferenceType(arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=ProjectSource, sub_type=None))], dimensions=None, name=ArrayList, sub_type=None))))]] else begin[{] None end[}] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=This(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[MemberReference(member=secondarySourcesOverride, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None), MethodInvocation(arguments=[MemberReference(member=ele, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=add, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)]), label=None)]), control=EnhancedForControl(iterable=MemberReference(member=secondarySourcesOverride, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), var=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=None, name=ele)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=ProjectSource, sub_type=None))), label=None) return[THIS[]] end[}] END[}]
Keyword[public] identifier[StartBuildRequest] identifier[withSecondarySourcesOverride] operator[SEP] identifier[ProjectSource] operator[...] identifier[secondarySourcesOverride] operator[SEP] { Keyword[if] operator[SEP] Keyword[this] operator[SEP] identifier[secondarySourcesOverride] operator[==] Other[null] operator[SEP] { identifier[setSecondarySourcesOverride] operator[SEP] Keyword[new] identifier[java] operator[SEP] identifier[util] operator[SEP] identifier[ArrayList] operator[<] identifier[ProjectSource] operator[>] operator[SEP] identifier[secondarySourcesOverride] operator[SEP] identifier[length] operator[SEP] operator[SEP] operator[SEP] } Keyword[for] operator[SEP] identifier[ProjectSource] identifier[ele] operator[:] identifier[secondarySourcesOverride] operator[SEP] { Keyword[this] operator[SEP] identifier[secondarySourcesOverride] operator[SEP] identifier[add] operator[SEP] identifier[ele] operator[SEP] operator[SEP] } Keyword[return] Keyword[this] operator[SEP] }
public static void addThemedCSSResource(String resource) { Map<String, Object> viewMap = FacesContext.getCurrentInstance().getViewRoot().getViewMap(); @SuppressWarnings("unchecked") List<String> resourceList = (List<String>) viewMap.get(THEME_RESOURCE_KEY); if (null == resourceList) { resourceList = new ArrayList<String>(); viewMap.put(THEME_RESOURCE_KEY, resourceList); } if (!resourceList.contains(resource)) { resourceList.add(resource); } }
class class_name[name] begin[{] method[addThemedCSSResource, return_type[void], modifier[public static], parameter[resource]] begin[{] local_variable[type[Map], viewMap] local_variable[type[List], resourceList] if[binary_operation[literal[null], ==, member[.resourceList]]] begin[{] assign[member[.resourceList], ClassCreator(arguments=[], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=String, sub_type=None))], dimensions=None, name=ArrayList, sub_type=None))] call[viewMap.put, parameter[member[.THEME_RESOURCE_KEY], member[.resourceList]]] else begin[{] None end[}] if[call[resourceList.contains, parameter[member[.resource]]]] begin[{] call[resourceList.add, parameter[member[.resource]]] else begin[{] None end[}] end[}] END[}]
Keyword[public] Keyword[static] Keyword[void] identifier[addThemedCSSResource] operator[SEP] identifier[String] identifier[resource] operator[SEP] { identifier[Map] operator[<] identifier[String] , identifier[Object] operator[>] identifier[viewMap] operator[=] identifier[FacesContext] operator[SEP] identifier[getCurrentInstance] operator[SEP] operator[SEP] operator[SEP] identifier[getViewRoot] operator[SEP] operator[SEP] operator[SEP] identifier[getViewMap] operator[SEP] operator[SEP] operator[SEP] annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] identifier[List] operator[<] identifier[String] operator[>] identifier[resourceList] operator[=] operator[SEP] identifier[List] operator[<] identifier[String] operator[>] operator[SEP] identifier[viewMap] operator[SEP] identifier[get] operator[SEP] identifier[THEME_RESOURCE_KEY] operator[SEP] operator[SEP] Keyword[if] operator[SEP] Other[null] operator[==] identifier[resourceList] operator[SEP] { identifier[resourceList] operator[=] Keyword[new] identifier[ArrayList] operator[<] identifier[String] operator[>] operator[SEP] operator[SEP] operator[SEP] identifier[viewMap] operator[SEP] identifier[put] operator[SEP] identifier[THEME_RESOURCE_KEY] , identifier[resourceList] operator[SEP] operator[SEP] } Keyword[if] operator[SEP] operator[!] identifier[resourceList] operator[SEP] identifier[contains] operator[SEP] identifier[resource] operator[SEP] operator[SEP] { identifier[resourceList] operator[SEP] identifier[add] operator[SEP] identifier[resource] operator[SEP] operator[SEP] } }
private static String longestCommonSubstring(String strA, String strB) { char[] chars_strA = strA.toCharArray(); char[] chars_strB = strB.toCharArray(); int m = chars_strA.length; int n = chars_strB.length; // 初始化矩阵数据,matrix[0][0]的值为0, 如果字符数组chars_strA和chars_strB的对应位相同,则matrix[i][j]的值为左上角的值加1, 否则,matrix[i][j]的值等于左上方最近两个位置的较大值, 矩阵中其余各点的值为0. int[][] matrix = new int[m + 1][n + 1]; for (int i = 1; i <= m; i++) { for (int j = 1; j <= n; j++) { if (chars_strA[i - 1] == chars_strB[j - 1]) { matrix[i][j] = matrix[i - 1][j - 1] + 1; } else { matrix[i][j] = Math.max(matrix[i][j - 1], matrix[i - 1][j]); } } } // 矩阵中,如果matrix[m][n]的值不等于matrix[m-1][n]的值也不等于matrix[m][n-1]的值, 则matrix[m][n]对应的字符为相似字符元,并将其存入result数组中。 char[] result = new char[matrix[m][n]]; int currentIndex = result.length - 1; while (matrix[m][n] != 0) { if (matrix[m][n] == matrix[m][n - 1]) { n--; } else if (matrix[m][n] == matrix[m - 1][n]) { m--; } else { result[currentIndex] = chars_strA[m - 1]; currentIndex--; n--; m--; } } return new String(result); }
class class_name[name] begin[{] method[longestCommonSubstring, return_type[type[String]], modifier[private static], parameter[strA, strB]] begin[{] local_variable[type[char], chars_strA] local_variable[type[char], chars_strB] local_variable[type[int], m] local_variable[type[int], n] local_variable[type[int], matrix] ForStatement(body=BlockStatement(label=None, statements=[ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=chars_strA, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=BinaryOperation(operandl=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), operator=-))]), operandr=MemberReference(member=chars_strB, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=BinaryOperation(operandl=MemberReference(member=j, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), operator=-))]), operator===), else_statement=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=matrix, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])), ArraySelector(index=MemberReference(member=j, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]))]), type==, value=MethodInvocation(arguments=[MemberReference(member=matrix, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])), ArraySelector(index=BinaryOperation(operandl=MemberReference(member=j, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), operator=-))]), MemberReference(member=matrix, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=BinaryOperation(operandl=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), operator=-)), ArraySelector(index=MemberReference(member=j, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]))])], member=max, postfix_operators=[], prefix_operators=[], qualifier=Math, selectors=[], type_arguments=None)), label=None)]), label=None, then_statement=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=matrix, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])), ArraySelector(index=MemberReference(member=j, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]))]), type==, value=BinaryOperation(operandl=MemberReference(member=matrix, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=BinaryOperation(operandl=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), operator=-)), ArraySelector(index=BinaryOperation(operandl=MemberReference(member=j, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), operator=-))]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), operator=+)), label=None)]))]), control=ForControl(condition=BinaryOperation(operandl=MemberReference(member=j, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=n, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=<=), init=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), name=j)], modifiers=set(), type=BasicType(dimensions=[], name=int)), update=[MemberReference(member=j, postfix_operators=['++'], prefix_operators=[], qualifier=, selectors=[])]), label=None)]), control=ForControl(condition=BinaryOperation(operandl=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=m, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=<=), init=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), name=i)], modifiers=set(), type=BasicType(dimensions=[], name=int)), update=[MemberReference(member=i, postfix_operators=['++'], prefix_operators=[], qualifier=, selectors=[])]), label=None) local_variable[type[char], result] local_variable[type[int], currentIndex] while[binary_operation[member[.matrix], !=, literal[0]]] begin[{] if[binary_operation[member[.matrix], ==, member[.matrix]]] begin[{] member[.n] else begin[{] if[binary_operation[member[.matrix], ==, member[.matrix]]] begin[{] member[.m] else begin[{] assign[member[.result], member[.chars_strA]] member[.currentIndex] member[.n] member[.m] end[}] end[}] end[}] return[ClassCreator(arguments=[MemberReference(member=result, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=String, sub_type=None))] end[}] END[}]
Keyword[private] Keyword[static] identifier[String] identifier[longestCommonSubstring] operator[SEP] identifier[String] identifier[strA] , identifier[String] identifier[strB] operator[SEP] { Keyword[char] operator[SEP] operator[SEP] identifier[chars_strA] operator[=] identifier[strA] operator[SEP] identifier[toCharArray] operator[SEP] operator[SEP] operator[SEP] Keyword[char] operator[SEP] operator[SEP] identifier[chars_strB] operator[=] identifier[strB] operator[SEP] identifier[toCharArray] operator[SEP] operator[SEP] operator[SEP] Keyword[int] identifier[m] operator[=] identifier[chars_strA] operator[SEP] identifier[length] operator[SEP] Keyword[int] identifier[n] operator[=] identifier[chars_strB] operator[SEP] identifier[length] operator[SEP] Keyword[int] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[matrix] operator[=] Keyword[new] Keyword[int] operator[SEP] identifier[m] operator[+] Other[1] operator[SEP] operator[SEP] identifier[n] operator[+] Other[1] operator[SEP] operator[SEP] Keyword[for] operator[SEP] Keyword[int] identifier[i] operator[=] Other[1] operator[SEP] identifier[i] operator[<=] identifier[m] operator[SEP] identifier[i] operator[++] operator[SEP] { Keyword[for] operator[SEP] Keyword[int] identifier[j] operator[=] Other[1] operator[SEP] identifier[j] operator[<=] identifier[n] operator[SEP] identifier[j] operator[++] operator[SEP] { Keyword[if] operator[SEP] identifier[chars_strA] operator[SEP] identifier[i] operator[-] Other[1] operator[SEP] operator[==] identifier[chars_strB] operator[SEP] identifier[j] operator[-] Other[1] operator[SEP] operator[SEP] { identifier[matrix] operator[SEP] identifier[i] operator[SEP] operator[SEP] identifier[j] operator[SEP] operator[=] identifier[matrix] operator[SEP] identifier[i] operator[-] Other[1] operator[SEP] operator[SEP] identifier[j] operator[-] Other[1] operator[SEP] operator[+] Other[1] operator[SEP] } Keyword[else] { identifier[matrix] operator[SEP] identifier[i] operator[SEP] operator[SEP] identifier[j] operator[SEP] operator[=] identifier[Math] operator[SEP] identifier[max] operator[SEP] identifier[matrix] operator[SEP] identifier[i] operator[SEP] operator[SEP] identifier[j] operator[-] Other[1] operator[SEP] , identifier[matrix] operator[SEP] identifier[i] operator[-] Other[1] operator[SEP] operator[SEP] identifier[j] operator[SEP] operator[SEP] operator[SEP] } } } Keyword[char] operator[SEP] operator[SEP] identifier[result] operator[=] Keyword[new] Keyword[char] operator[SEP] identifier[matrix] operator[SEP] identifier[m] operator[SEP] operator[SEP] identifier[n] operator[SEP] operator[SEP] operator[SEP] Keyword[int] identifier[currentIndex] operator[=] identifier[result] operator[SEP] identifier[length] operator[-] Other[1] operator[SEP] Keyword[while] operator[SEP] identifier[matrix] operator[SEP] identifier[m] operator[SEP] operator[SEP] identifier[n] operator[SEP] operator[!=] Other[0] operator[SEP] { Keyword[if] operator[SEP] identifier[matrix] operator[SEP] identifier[m] operator[SEP] operator[SEP] identifier[n] operator[SEP] operator[==] identifier[matrix] operator[SEP] identifier[m] operator[SEP] operator[SEP] identifier[n] operator[-] Other[1] operator[SEP] operator[SEP] { identifier[n] operator[--] operator[SEP] } Keyword[else] Keyword[if] operator[SEP] identifier[matrix] operator[SEP] identifier[m] operator[SEP] operator[SEP] identifier[n] operator[SEP] operator[==] identifier[matrix] operator[SEP] identifier[m] operator[-] Other[1] operator[SEP] operator[SEP] identifier[n] operator[SEP] operator[SEP] { identifier[m] operator[--] operator[SEP] } Keyword[else] { identifier[result] operator[SEP] identifier[currentIndex] operator[SEP] operator[=] identifier[chars_strA] operator[SEP] identifier[m] operator[-] Other[1] operator[SEP] operator[SEP] identifier[currentIndex] operator[--] operator[SEP] identifier[n] operator[--] operator[SEP] identifier[m] operator[--] operator[SEP] } } Keyword[return] Keyword[new] identifier[String] operator[SEP] identifier[result] operator[SEP] operator[SEP] }
private String readDocumentation() { String result = null; while (true) { skipWhitespace(false); if (pos == data.length || data[pos] != '/') { return result != null ? result : ""; } String comment = readComment(); result = (result == null) ? comment : (result + "\n" + comment); } }
class class_name[name] begin[{] method[readDocumentation, return_type[type[String]], modifier[private], parameter[]] begin[{] local_variable[type[String], result] while[literal[true]] begin[{] call[.skipWhitespace, parameter[literal[false]]] if[binary_operation[binary_operation[member[.pos], ==, member[data.length]], ||, binary_operation[member[.data], !=, literal['/']]]] begin[{] return[TernaryExpression(condition=BinaryOperation(operandl=MemberReference(member=result, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=null), operator=!=), if_false=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=""), if_true=MemberReference(member=result, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]))] else begin[{] None end[}] local_variable[type[String], comment] assign[member[.result], TernaryExpression(condition=BinaryOperation(operandl=MemberReference(member=result, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=null), operator===), if_false=BinaryOperation(operandl=BinaryOperation(operandl=MemberReference(member=result, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="\n"), operator=+), operandr=MemberReference(member=comment, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=+), if_true=MemberReference(member=comment, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]))] end[}] end[}] END[}]
Keyword[private] identifier[String] identifier[readDocumentation] operator[SEP] operator[SEP] { identifier[String] identifier[result] operator[=] Other[null] operator[SEP] Keyword[while] operator[SEP] literal[boolean] operator[SEP] { identifier[skipWhitespace] operator[SEP] literal[boolean] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[pos] operator[==] identifier[data] operator[SEP] identifier[length] operator[||] identifier[data] operator[SEP] identifier[pos] operator[SEP] operator[!=] literal[String] operator[SEP] { Keyword[return] identifier[result] operator[!=] Other[null] operator[?] identifier[result] operator[:] literal[String] operator[SEP] } identifier[String] identifier[comment] operator[=] identifier[readComment] operator[SEP] operator[SEP] operator[SEP] identifier[result] operator[=] operator[SEP] identifier[result] operator[==] Other[null] operator[SEP] operator[?] identifier[comment] operator[:] operator[SEP] identifier[result] operator[+] literal[String] operator[+] identifier[comment] operator[SEP] operator[SEP] } }
public DescribeInputResult withDestinations(InputDestination... destinations) { if (this.destinations == null) { setDestinations(new java.util.ArrayList<InputDestination>(destinations.length)); } for (InputDestination ele : destinations) { this.destinations.add(ele); } return this; }
class class_name[name] begin[{] method[withDestinations, return_type[type[DescribeInputResult]], modifier[public], parameter[destinations]] begin[{] if[binary_operation[THIS[member[None.destinations]], ==, literal[null]]] begin[{] call[.setDestinations, parameter[ClassCreator(arguments=[MemberReference(member=length, postfix_operators=[], prefix_operators=[], qualifier=destinations, selectors=[])], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=java, sub_type=ReferenceType(arguments=None, dimensions=None, name=util, sub_type=ReferenceType(arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=InputDestination, sub_type=None))], dimensions=None, name=ArrayList, sub_type=None))))]] else begin[{] None end[}] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=This(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[MemberReference(member=destinations, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None), MethodInvocation(arguments=[MemberReference(member=ele, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=add, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)]), label=None)]), control=EnhancedForControl(iterable=MemberReference(member=destinations, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), var=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=None, name=ele)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=InputDestination, sub_type=None))), label=None) return[THIS[]] end[}] END[}]
Keyword[public] identifier[DescribeInputResult] identifier[withDestinations] operator[SEP] identifier[InputDestination] operator[...] identifier[destinations] operator[SEP] { Keyword[if] operator[SEP] Keyword[this] operator[SEP] identifier[destinations] operator[==] Other[null] operator[SEP] { identifier[setDestinations] operator[SEP] Keyword[new] identifier[java] operator[SEP] identifier[util] operator[SEP] identifier[ArrayList] operator[<] identifier[InputDestination] operator[>] operator[SEP] identifier[destinations] operator[SEP] identifier[length] operator[SEP] operator[SEP] operator[SEP] } Keyword[for] operator[SEP] identifier[InputDestination] identifier[ele] operator[:] identifier[destinations] operator[SEP] { Keyword[this] operator[SEP] identifier[destinations] operator[SEP] identifier[add] operator[SEP] identifier[ele] operator[SEP] operator[SEP] } Keyword[return] Keyword[this] operator[SEP] }
public static <T> List<T> dropWhile(List<T> self, @ClosureParams(FirstParam.FirstGenericType.class) Closure<?> condition) { int num = 0; BooleanClosureWrapper bcw = new BooleanClosureWrapper(condition); for (T value : self) { if (bcw.call(value)) { num += 1; } else { break; } } return drop(self, num); }
class class_name[name] begin[{] method[dropWhile, return_type[type[List]], modifier[public static], parameter[self, condition]] begin[{] local_variable[type[int], num] local_variable[type[BooleanClosureWrapper], bcw] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=MethodInvocation(arguments=[MemberReference(member=value, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=call, postfix_operators=[], prefix_operators=[], qualifier=bcw, selectors=[], type_arguments=None), else_statement=BlockStatement(label=None, statements=[BreakStatement(goto=None, label=None)]), label=None, then_statement=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=num, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type=+=, value=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1)), label=None)]))]), control=EnhancedForControl(iterable=MemberReference(member=self, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), var=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=None, name=value)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=T, sub_type=None))), label=None) return[call[.drop, parameter[member[.self], member[.num]]]] end[}] END[}]
Keyword[public] Keyword[static] operator[<] identifier[T] operator[>] identifier[List] operator[<] identifier[T] operator[>] identifier[dropWhile] operator[SEP] identifier[List] operator[<] identifier[T] operator[>] identifier[self] , annotation[@] identifier[ClosureParams] operator[SEP] identifier[FirstParam] operator[SEP] identifier[FirstGenericType] operator[SEP] Keyword[class] operator[SEP] identifier[Closure] operator[<] operator[?] operator[>] identifier[condition] operator[SEP] { Keyword[int] identifier[num] operator[=] Other[0] operator[SEP] identifier[BooleanClosureWrapper] identifier[bcw] operator[=] Keyword[new] identifier[BooleanClosureWrapper] operator[SEP] identifier[condition] operator[SEP] operator[SEP] Keyword[for] operator[SEP] identifier[T] identifier[value] operator[:] identifier[self] operator[SEP] { Keyword[if] operator[SEP] identifier[bcw] operator[SEP] identifier[call] operator[SEP] identifier[value] operator[SEP] operator[SEP] { identifier[num] operator[+=] Other[1] operator[SEP] } Keyword[else] { Keyword[break] operator[SEP] } } Keyword[return] identifier[drop] operator[SEP] identifier[self] , identifier[num] operator[SEP] operator[SEP] }
public com.google.privacy.dlp.v2.TimePartConfig getTimePartConfig() { if (transformationCase_ == 8) { return (com.google.privacy.dlp.v2.TimePartConfig) transformation_; } return com.google.privacy.dlp.v2.TimePartConfig.getDefaultInstance(); }
class class_name[name] begin[{] method[getTimePartConfig, return_type[type[com]], modifier[public], parameter[]] begin[{] if[binary_operation[member[.transformationCase_], ==, literal[8]]] begin[{] return[Cast(expression=MemberReference(member=transformation_, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type=ReferenceType(arguments=None, dimensions=[], name=com, sub_type=ReferenceType(arguments=None, dimensions=None, name=google, sub_type=ReferenceType(arguments=None, dimensions=None, name=privacy, sub_type=ReferenceType(arguments=None, dimensions=None, name=dlp, sub_type=ReferenceType(arguments=None, dimensions=None, name=v2, sub_type=ReferenceType(arguments=None, dimensions=None, name=TimePartConfig, sub_type=None)))))))] else begin[{] None end[}] return[call[com.google.privacy.dlp.v2.TimePartConfig.getDefaultInstance, parameter[]]] end[}] END[}]
Keyword[public] identifier[com] operator[SEP] identifier[google] operator[SEP] identifier[privacy] operator[SEP] identifier[dlp] operator[SEP] identifier[v2] operator[SEP] identifier[TimePartConfig] identifier[getTimePartConfig] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[transformationCase_] operator[==] Other[8] operator[SEP] { Keyword[return] operator[SEP] identifier[com] operator[SEP] identifier[google] operator[SEP] identifier[privacy] operator[SEP] identifier[dlp] operator[SEP] identifier[v2] operator[SEP] identifier[TimePartConfig] operator[SEP] identifier[transformation_] operator[SEP] } Keyword[return] identifier[com] operator[SEP] identifier[google] operator[SEP] identifier[privacy] operator[SEP] identifier[dlp] operator[SEP] identifier[v2] operator[SEP] identifier[TimePartConfig] operator[SEP] identifier[getDefaultInstance] operator[SEP] operator[SEP] operator[SEP] }
public void setClientVariant(String context, String variant, CmsClientVariantInfo info) { if (!m_clientVariantInfo.containsKey(context)) { Map<String, CmsClientVariantInfo> variants = new LinkedHashMap<String, CmsClientVariantInfo>(); m_clientVariantInfo.put(context, variants); } m_clientVariantInfo.get(context).put(variant, info); }
class class_name[name] begin[{] method[setClientVariant, return_type[void], modifier[public], parameter[context, variant, info]] begin[{] if[call[m_clientVariantInfo.containsKey, parameter[member[.context]]]] begin[{] local_variable[type[Map], variants] call[m_clientVariantInfo.put, parameter[member[.context], member[.variants]]] else begin[{] None end[}] call[m_clientVariantInfo.get, parameter[member[.context]]] end[}] END[}]
Keyword[public] Keyword[void] identifier[setClientVariant] operator[SEP] identifier[String] identifier[context] , identifier[String] identifier[variant] , identifier[CmsClientVariantInfo] identifier[info] operator[SEP] { Keyword[if] operator[SEP] operator[!] identifier[m_clientVariantInfo] operator[SEP] identifier[containsKey] operator[SEP] identifier[context] operator[SEP] operator[SEP] { identifier[Map] operator[<] identifier[String] , identifier[CmsClientVariantInfo] operator[>] identifier[variants] operator[=] Keyword[new] identifier[LinkedHashMap] operator[<] identifier[String] , identifier[CmsClientVariantInfo] operator[>] operator[SEP] operator[SEP] operator[SEP] identifier[m_clientVariantInfo] operator[SEP] identifier[put] operator[SEP] identifier[context] , identifier[variants] operator[SEP] operator[SEP] } identifier[m_clientVariantInfo] operator[SEP] identifier[get] operator[SEP] identifier[context] operator[SEP] operator[SEP] identifier[put] operator[SEP] identifier[variant] , identifier[info] operator[SEP] operator[SEP] }
public SwitchBlock<T, R> Case(T ca, R res) { return Case(ca, () -> res); }
class class_name[name] begin[{] method[Case, return_type[type[SwitchBlock]], modifier[public], parameter[ca, res]] begin[{] return[call[.Case, parameter[member[.ca], LambdaExpression(body=MemberReference(member=res, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), parameters=[])]]] end[}] END[}]
Keyword[public] identifier[SwitchBlock] operator[<] identifier[T] , identifier[R] operator[>] identifier[Case] operator[SEP] identifier[T] identifier[ca] , identifier[R] identifier[res] operator[SEP] { Keyword[return] identifier[Case] operator[SEP] identifier[ca] , operator[SEP] operator[SEP] operator[->] identifier[res] operator[SEP] operator[SEP] }
public static void createFile(File file) throws Exception { File dir = new File(file.getAbsolutePath().replace(File.separator + file.getName(), "")); if(!dir.exists()) { if(!dir.mkdirs()) { throw new Exception("Can't create dirs "+dir); } } file.createNewFile(); }
class class_name[name] begin[{] method[createFile, return_type[void], modifier[public static], parameter[file]] begin[{] local_variable[type[File], dir] if[call[dir.exists, parameter[]]] begin[{] if[call[dir.mkdirs, parameter[]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="Can't create dirs "), operandr=MemberReference(member=dir, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=+)], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=Exception, sub_type=None)), label=None) else begin[{] None end[}] else begin[{] None end[}] call[file.createNewFile, parameter[]] end[}] END[}]
Keyword[public] Keyword[static] Keyword[void] identifier[createFile] operator[SEP] identifier[File] identifier[file] operator[SEP] Keyword[throws] identifier[Exception] { identifier[File] identifier[dir] operator[=] Keyword[new] identifier[File] operator[SEP] identifier[file] operator[SEP] identifier[getAbsolutePath] operator[SEP] operator[SEP] operator[SEP] identifier[replace] operator[SEP] identifier[File] operator[SEP] identifier[separator] operator[+] identifier[file] operator[SEP] identifier[getName] operator[SEP] operator[SEP] , literal[String] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] operator[!] identifier[dir] operator[SEP] identifier[exists] operator[SEP] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] operator[!] identifier[dir] operator[SEP] identifier[mkdirs] operator[SEP] operator[SEP] operator[SEP] { Keyword[throw] Keyword[new] identifier[Exception] operator[SEP] literal[String] operator[+] identifier[dir] operator[SEP] operator[SEP] } } identifier[file] operator[SEP] identifier[createNewFile] operator[SEP] operator[SEP] operator[SEP] }
public static String requiredStringAttribute( final XMLStreamReader reader, final String namespace, final String localName) throws XMLStreamException { final String value = reader.getAttributeValue(namespace, localName); if (value != null) { return value.toString(); } throw new XMLStreamException( MessageFormat.format("Attribute {0}:{1} is required", namespace, localName)); }
class class_name[name] begin[{] method[requiredStringAttribute, return_type[type[String]], modifier[public static], parameter[reader, namespace, localName]] begin[{] local_variable[type[String], value] if[binary_operation[member[.value], !=, literal[null]]] begin[{] return[call[value.toString, parameter[]]] else begin[{] None end[}] ThrowStatement(expression=ClassCreator(arguments=[MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="Attribute {0}:{1} is required"), MemberReference(member=namespace, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=localName, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=format, postfix_operators=[], prefix_operators=[], qualifier=MessageFormat, selectors=[], type_arguments=None)], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=XMLStreamException, sub_type=None)), label=None) end[}] END[}]
Keyword[public] Keyword[static] identifier[String] identifier[requiredStringAttribute] operator[SEP] Keyword[final] identifier[XMLStreamReader] identifier[reader] , Keyword[final] identifier[String] identifier[namespace] , Keyword[final] identifier[String] identifier[localName] operator[SEP] Keyword[throws] identifier[XMLStreamException] { Keyword[final] identifier[String] identifier[value] operator[=] identifier[reader] operator[SEP] identifier[getAttributeValue] operator[SEP] identifier[namespace] , identifier[localName] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[value] operator[!=] Other[null] operator[SEP] { Keyword[return] identifier[value] operator[SEP] identifier[toString] operator[SEP] operator[SEP] operator[SEP] } Keyword[throw] Keyword[new] identifier[XMLStreamException] operator[SEP] identifier[MessageFormat] operator[SEP] identifier[format] operator[SEP] literal[String] , identifier[namespace] , identifier[localName] operator[SEP] operator[SEP] operator[SEP] }
boolean expiringSoon(TokenInfo info) { // TODO(jasonhall): Consider varying the definition of "soon" based on the // original expires_in value (e.g., "soon" = 1/10th of the total time before // it's expired). return Double.valueOf(info.getExpires()) < (clock.now() + TEN_MINUTES); }
class class_name[name] begin[{] method[expiringSoon, return_type[type[boolean]], modifier[default], parameter[info]] begin[{] return[binary_operation[call[Double.valueOf, parameter[call[info.getExpires, parameter[]]]], <, binary_operation[call[clock.now, parameter[]], +, member[.TEN_MINUTES]]]] end[}] END[}]
Keyword[boolean] identifier[expiringSoon] operator[SEP] identifier[TokenInfo] identifier[info] operator[SEP] { Keyword[return] identifier[Double] operator[SEP] identifier[valueOf] operator[SEP] identifier[info] operator[SEP] identifier[getExpires] operator[SEP] operator[SEP] operator[SEP] operator[<] operator[SEP] identifier[clock] operator[SEP] identifier[now] operator[SEP] operator[SEP] operator[+] identifier[TEN_MINUTES] operator[SEP] operator[SEP] }
private static void disableHandler(final LogContextConfiguration configuration, final String handlerName) { final HandlerConfiguration handlerConfiguration = configuration.getHandlerConfiguration(handlerName); try { handlerConfiguration.setPropertyValueString("enabled", "false"); return; } catch (IllegalArgumentException e) { // do nothing } final Logger root = configuration.getLogContext().getLogger(CommonAttributes.ROOT_LOGGER_NAME); Map<String, String> disableHandlers = root.getAttachment(DISABLED_HANDLERS_KEY); synchronized (HANDLER_LOCK) { if (disableHandlers == null) { disableHandlers = new HashMap<String, String>(); final Map<String, String> current = root.attachIfAbsent(DISABLED_HANDLERS_KEY, disableHandlers); if (current != null) { disableHandlers = current; } } if (!disableHandlers.containsKey(handlerName)) { disableHandlers.put(handlerName, handlerConfiguration.getFilter()); handlerConfiguration.setFilter(CommonAttributes.DENY.getName()); } } }
class class_name[name] begin[{] method[disableHandler, return_type[void], modifier[private static], parameter[configuration, handlerName]] begin[{] local_variable[type[HandlerConfiguration], handlerConfiguration] TryStatement(block=[StatementExpression(expression=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="enabled"), Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="false")], member=setPropertyValueString, postfix_operators=[], prefix_operators=[], qualifier=handlerConfiguration, selectors=[], type_arguments=None), label=None), ReturnStatement(expression=None, label=None)], catches=[CatchClause(block=[], label=None, parameter=CatchClauseParameter(annotations=None, modifiers=None, name=e, types=['IllegalArgumentException']))], finally_block=None, label=None, resources=None) local_variable[type[Logger], root] local_variable[type[Map], disableHandlers] SYNCHRONIZED[member[.HANDLER_LOCK]] BEGIN[{] if[binary_operation[member[.disableHandlers], ==, literal[null]]] begin[{] assign[member[.disableHandlers], ClassCreator(arguments=[], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=String, sub_type=None)), TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=String, sub_type=None))], dimensions=None, name=HashMap, sub_type=None))] local_variable[type[Map], current] if[binary_operation[member[.current], !=, literal[null]]] begin[{] assign[member[.disableHandlers], member[.current]] else begin[{] None end[}] else begin[{] None end[}] if[call[disableHandlers.containsKey, parameter[member[.handlerName]]]] begin[{] call[disableHandlers.put, parameter[member[.handlerName], call[handlerConfiguration.getFilter, parameter[]]]] call[handlerConfiguration.setFilter, parameter[call[CommonAttributes.DENY.getName, parameter[]]]] else begin[{] None end[}] END[}] end[}] END[}]
Keyword[private] Keyword[static] Keyword[void] identifier[disableHandler] operator[SEP] Keyword[final] identifier[LogContextConfiguration] identifier[configuration] , Keyword[final] identifier[String] identifier[handlerName] operator[SEP] { Keyword[final] identifier[HandlerConfiguration] identifier[handlerConfiguration] operator[=] identifier[configuration] operator[SEP] identifier[getHandlerConfiguration] operator[SEP] identifier[handlerName] operator[SEP] operator[SEP] Keyword[try] { identifier[handlerConfiguration] operator[SEP] identifier[setPropertyValueString] operator[SEP] literal[String] , literal[String] operator[SEP] operator[SEP] Keyword[return] operator[SEP] } Keyword[catch] operator[SEP] identifier[IllegalArgumentException] identifier[e] operator[SEP] { } Keyword[final] identifier[Logger] identifier[root] operator[=] identifier[configuration] operator[SEP] identifier[getLogContext] operator[SEP] operator[SEP] operator[SEP] identifier[getLogger] operator[SEP] identifier[CommonAttributes] operator[SEP] identifier[ROOT_LOGGER_NAME] operator[SEP] operator[SEP] identifier[Map] operator[<] identifier[String] , identifier[String] operator[>] identifier[disableHandlers] operator[=] identifier[root] operator[SEP] identifier[getAttachment] operator[SEP] identifier[DISABLED_HANDLERS_KEY] operator[SEP] operator[SEP] Keyword[synchronized] operator[SEP] identifier[HANDLER_LOCK] operator[SEP] { Keyword[if] operator[SEP] identifier[disableHandlers] operator[==] Other[null] operator[SEP] { identifier[disableHandlers] operator[=] Keyword[new] identifier[HashMap] operator[<] identifier[String] , identifier[String] operator[>] operator[SEP] operator[SEP] operator[SEP] Keyword[final] identifier[Map] operator[<] identifier[String] , identifier[String] operator[>] identifier[current] operator[=] identifier[root] operator[SEP] identifier[attachIfAbsent] operator[SEP] identifier[DISABLED_HANDLERS_KEY] , identifier[disableHandlers] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[current] operator[!=] Other[null] operator[SEP] { identifier[disableHandlers] operator[=] identifier[current] operator[SEP] } } Keyword[if] operator[SEP] operator[!] identifier[disableHandlers] operator[SEP] identifier[containsKey] operator[SEP] identifier[handlerName] operator[SEP] operator[SEP] { identifier[disableHandlers] operator[SEP] identifier[put] operator[SEP] identifier[handlerName] , identifier[handlerConfiguration] operator[SEP] identifier[getFilter] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[handlerConfiguration] operator[SEP] identifier[setFilter] operator[SEP] identifier[CommonAttributes] operator[SEP] identifier[DENY] operator[SEP] identifier[getName] operator[SEP] operator[SEP] operator[SEP] operator[SEP] } } }
public DataSetIterator getTrainIterator() { return new DataSetIterator() { @Override public DataSet next(int i) { throw new UnsupportedOperationException(); } @Override public List<String> getLabels() { return backedIterator.getLabels(); } @Override public int inputColumns() { return backedIterator.inputColumns(); } @Override public void remove() { throw new UnsupportedOperationException(); } @Override public int totalOutcomes() { return backedIterator.totalOutcomes(); } @Override public boolean resetSupported() { return backedIterator.resetSupported(); } @Override public boolean asyncSupported() { return backedIterator.asyncSupported(); } @Override public void reset() { resetPending.set(true); } @Override public int batch() { return backedIterator.batch(); } @Override public void setPreProcessor(DataSetPreProcessor dataSetPreProcessor) { backedIterator.setPreProcessor(dataSetPreProcessor); } @Override public DataSetPreProcessor getPreProcessor() { return backedIterator.getPreProcessor(); } @Override public boolean hasNext() { if (resetPending.get()) { if (resetSupported()) { backedIterator.reset(); counter.set(0); resetPending.set(false); } else throw new UnsupportedOperationException("Reset isn't supported by underlying iterator"); } val state = backedIterator.hasNext(); if (state && counter.get() < numTrain) return true; else return false; } @Override public DataSet next() { counter.incrementAndGet(); val p = backedIterator.next(); if (counter.get() == 1 && firstTrain == null) { // first epoch ever, we'll save first dataset and will use it to check for equality later firstTrain = p.copy(); firstTrain.detach(); } else if (counter.get() == 1) { // epoch > 1, comparing first dataset to previously stored dataset. they should be equal int cnt = 0; if (!p.getFeatures().equalsWithEps(firstTrain.getFeatures(), 1e-5)) throw new ND4JIllegalStateException("First examples do not match. Randomization was used?"); } return p; } }; }
class class_name[name] begin[{] method[getTrainIterator, return_type[type[DataSetIterator]], modifier[public], parameter[]] begin[{] return[ClassCreator(arguments=[], body=[MethodDeclaration(annotations=[Annotation(element=None, name=Override)], body=[ThrowStatement(expression=ClassCreator(arguments=[], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=UnsupportedOperationException, sub_type=None)), label=None)], documentation=None, modifiers={'public'}, name=next, parameters=[FormalParameter(annotations=[], modifiers=set(), name=i, type=BasicType(dimensions=[], name=int), varargs=False)], return_type=ReferenceType(arguments=None, dimensions=[], name=DataSet, sub_type=None), throws=None, type_parameters=None), MethodDeclaration(annotations=[Annotation(element=None, name=Override)], body=[ReturnStatement(expression=MethodInvocation(arguments=[], member=getLabels, postfix_operators=[], prefix_operators=[], qualifier=backedIterator, selectors=[], type_arguments=None), label=None)], documentation=None, modifiers={'public'}, name=getLabels, parameters=[], return_type=ReferenceType(arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=String, sub_type=None))], dimensions=[], name=List, sub_type=None), throws=None, type_parameters=None), MethodDeclaration(annotations=[Annotation(element=None, name=Override)], body=[ReturnStatement(expression=MethodInvocation(arguments=[], member=inputColumns, postfix_operators=[], prefix_operators=[], qualifier=backedIterator, selectors=[], type_arguments=None), label=None)], documentation=None, modifiers={'public'}, name=inputColumns, parameters=[], return_type=BasicType(dimensions=[], name=int), throws=None, type_parameters=None), MethodDeclaration(annotations=[Annotation(element=None, name=Override)], body=[ThrowStatement(expression=ClassCreator(arguments=[], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=UnsupportedOperationException, sub_type=None)), label=None)], documentation=None, modifiers={'public'}, name=remove, parameters=[], return_type=None, throws=None, type_parameters=None), MethodDeclaration(annotations=[Annotation(element=None, name=Override)], body=[ReturnStatement(expression=MethodInvocation(arguments=[], member=totalOutcomes, postfix_operators=[], prefix_operators=[], qualifier=backedIterator, selectors=[], type_arguments=None), label=None)], documentation=None, modifiers={'public'}, name=totalOutcomes, parameters=[], return_type=BasicType(dimensions=[], name=int), throws=None, type_parameters=None), MethodDeclaration(annotations=[Annotation(element=None, name=Override)], body=[ReturnStatement(expression=MethodInvocation(arguments=[], member=resetSupported, postfix_operators=[], prefix_operators=[], qualifier=backedIterator, selectors=[], type_arguments=None), label=None)], documentation=None, modifiers={'public'}, name=resetSupported, parameters=[], return_type=BasicType(dimensions=[], name=boolean), throws=None, type_parameters=None), MethodDeclaration(annotations=[Annotation(element=None, name=Override)], body=[ReturnStatement(expression=MethodInvocation(arguments=[], member=asyncSupported, postfix_operators=[], prefix_operators=[], qualifier=backedIterator, selectors=[], type_arguments=None), label=None)], documentation=None, modifiers={'public'}, name=asyncSupported, parameters=[], return_type=BasicType(dimensions=[], name=boolean), throws=None, type_parameters=None), MethodDeclaration(annotations=[Annotation(element=None, name=Override)], body=[StatementExpression(expression=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=true)], member=set, postfix_operators=[], prefix_operators=[], qualifier=resetPending, selectors=[], type_arguments=None), label=None)], documentation=None, modifiers={'public'}, name=reset, parameters=[], return_type=None, throws=None, type_parameters=None), MethodDeclaration(annotations=[Annotation(element=None, name=Override)], body=[ReturnStatement(expression=MethodInvocation(arguments=[], member=batch, postfix_operators=[], prefix_operators=[], qualifier=backedIterator, selectors=[], type_arguments=None), label=None)], documentation=None, modifiers={'public'}, name=batch, parameters=[], return_type=BasicType(dimensions=[], name=int), throws=None, type_parameters=None), MethodDeclaration(annotations=[Annotation(element=None, name=Override)], body=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=dataSetPreProcessor, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=setPreProcessor, postfix_operators=[], prefix_operators=[], qualifier=backedIterator, selectors=[], type_arguments=None), label=None)], documentation=None, modifiers={'public'}, name=setPreProcessor, parameters=[FormalParameter(annotations=[], modifiers=set(), name=dataSetPreProcessor, type=ReferenceType(arguments=None, dimensions=[], name=DataSetPreProcessor, sub_type=None), varargs=False)], return_type=None, throws=None, type_parameters=None), MethodDeclaration(annotations=[Annotation(element=None, name=Override)], body=[ReturnStatement(expression=MethodInvocation(arguments=[], member=getPreProcessor, postfix_operators=[], prefix_operators=[], qualifier=backedIterator, selectors=[], type_arguments=None), label=None)], documentation=None, modifiers={'public'}, name=getPreProcessor, parameters=[], return_type=ReferenceType(arguments=None, dimensions=[], name=DataSetPreProcessor, sub_type=None), throws=None, type_parameters=None), MethodDeclaration(annotations=[Annotation(element=None, name=Override)], body=[IfStatement(condition=MethodInvocation(arguments=[], member=get, postfix_operators=[], prefix_operators=[], qualifier=resetPending, selectors=[], type_arguments=None), else_statement=None, label=None, then_statement=BlockStatement(label=None, statements=[IfStatement(condition=MethodInvocation(arguments=[], member=resetSupported, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), else_statement=ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="Reset isn't supported by underlying iterator")], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=UnsupportedOperationException, sub_type=None)), label=None), label=None, then_statement=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[], member=reset, postfix_operators=[], prefix_operators=[], qualifier=backedIterator, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0)], member=set, postfix_operators=[], prefix_operators=[], qualifier=counter, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=false)], member=set, postfix_operators=[], prefix_operators=[], qualifier=resetPending, selectors=[], type_arguments=None), label=None)]))])), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[], member=hasNext, postfix_operators=[], prefix_operators=[], qualifier=backedIterator, selectors=[], type_arguments=None), name=state)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=val, sub_type=None)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=state, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=BinaryOperation(operandl=MethodInvocation(arguments=[], member=get, postfix_operators=[], prefix_operators=[], qualifier=counter, selectors=[], type_arguments=None), operandr=MemberReference(member=numTrain, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=<), operator=&&), else_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=false), label=None), label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=true), label=None))], documentation=None, modifiers={'public'}, name=hasNext, parameters=[], return_type=BasicType(dimensions=[], name=boolean), throws=None, type_parameters=None), MethodDeclaration(annotations=[Annotation(element=None, name=Override)], body=[StatementExpression(expression=MethodInvocation(arguments=[], member=incrementAndGet, postfix_operators=[], prefix_operators=[], qualifier=counter, selectors=[], type_arguments=None), label=None), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[], member=next, postfix_operators=[], prefix_operators=[], qualifier=backedIterator, selectors=[], type_arguments=None), name=p)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=val, sub_type=None)), IfStatement(condition=BinaryOperation(operandl=BinaryOperation(operandl=MethodInvocation(arguments=[], member=get, postfix_operators=[], prefix_operators=[], qualifier=counter, selectors=[], type_arguments=None), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), operator===), operandr=BinaryOperation(operandl=MemberReference(member=firstTrain, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=null), operator===), operator=&&), else_statement=IfStatement(condition=BinaryOperation(operandl=MethodInvocation(arguments=[], member=get, postfix_operators=[], prefix_operators=[], qualifier=counter, selectors=[], type_arguments=None), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), operator===), else_statement=None, label=None, then_statement=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), name=cnt)], modifiers=set(), type=BasicType(dimensions=[], name=int)), IfStatement(condition=MethodInvocation(arguments=[], member=getFeatures, postfix_operators=[], prefix_operators=['!'], qualifier=p, selectors=[MethodInvocation(arguments=[MethodInvocation(arguments=[], member=getFeatures, postfix_operators=[], prefix_operators=[], qualifier=firstTrain, selectors=[], type_arguments=None), Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1e-5)], member=equalsWithEps, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)], type_arguments=None), else_statement=None, label=None, then_statement=ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="First examples do not match. Randomization was used?")], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=ND4JIllegalStateException, sub_type=None)), label=None))])), label=None, then_statement=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=firstTrain, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MethodInvocation(arguments=[], member=copy, postfix_operators=[], prefix_operators=[], qualifier=p, selectors=[], type_arguments=None)), label=None), StatementExpression(expression=MethodInvocation(arguments=[], member=detach, postfix_operators=[], prefix_operators=[], qualifier=firstTrain, selectors=[], type_arguments=None), label=None)])), ReturnStatement(expression=MemberReference(member=p, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), label=None)], documentation=None, modifiers={'public'}, name=next, parameters=[], return_type=ReferenceType(arguments=None, dimensions=[], name=DataSet, sub_type=None), throws=None, type_parameters=None)], constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=DataSetIterator, sub_type=None))] end[}] END[}]
Keyword[public] identifier[DataSetIterator] identifier[getTrainIterator] operator[SEP] operator[SEP] { Keyword[return] Keyword[new] identifier[DataSetIterator] operator[SEP] operator[SEP] { annotation[@] identifier[Override] Keyword[public] identifier[DataSet] identifier[next] operator[SEP] Keyword[int] identifier[i] operator[SEP] { Keyword[throw] Keyword[new] identifier[UnsupportedOperationException] operator[SEP] operator[SEP] operator[SEP] } annotation[@] identifier[Override] Keyword[public] identifier[List] operator[<] identifier[String] operator[>] identifier[getLabels] operator[SEP] operator[SEP] { Keyword[return] identifier[backedIterator] operator[SEP] identifier[getLabels] operator[SEP] operator[SEP] operator[SEP] } annotation[@] identifier[Override] Keyword[public] Keyword[int] identifier[inputColumns] operator[SEP] operator[SEP] { Keyword[return] identifier[backedIterator] operator[SEP] identifier[inputColumns] operator[SEP] operator[SEP] operator[SEP] } annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[remove] operator[SEP] operator[SEP] { Keyword[throw] Keyword[new] identifier[UnsupportedOperationException] operator[SEP] operator[SEP] operator[SEP] } annotation[@] identifier[Override] Keyword[public] Keyword[int] identifier[totalOutcomes] operator[SEP] operator[SEP] { Keyword[return] identifier[backedIterator] operator[SEP] identifier[totalOutcomes] operator[SEP] operator[SEP] operator[SEP] } annotation[@] identifier[Override] Keyword[public] Keyword[boolean] identifier[resetSupported] operator[SEP] operator[SEP] { Keyword[return] identifier[backedIterator] operator[SEP] identifier[resetSupported] operator[SEP] operator[SEP] operator[SEP] } annotation[@] identifier[Override] Keyword[public] Keyword[boolean] identifier[asyncSupported] operator[SEP] operator[SEP] { Keyword[return] identifier[backedIterator] operator[SEP] identifier[asyncSupported] operator[SEP] operator[SEP] operator[SEP] } annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[reset] operator[SEP] operator[SEP] { identifier[resetPending] operator[SEP] identifier[set] operator[SEP] literal[boolean] operator[SEP] operator[SEP] } annotation[@] identifier[Override] Keyword[public] Keyword[int] identifier[batch] operator[SEP] operator[SEP] { Keyword[return] identifier[backedIterator] operator[SEP] identifier[batch] operator[SEP] operator[SEP] operator[SEP] } annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[setPreProcessor] operator[SEP] identifier[DataSetPreProcessor] identifier[dataSetPreProcessor] operator[SEP] { identifier[backedIterator] operator[SEP] identifier[setPreProcessor] operator[SEP] identifier[dataSetPreProcessor] operator[SEP] operator[SEP] } annotation[@] identifier[Override] Keyword[public] identifier[DataSetPreProcessor] identifier[getPreProcessor] operator[SEP] operator[SEP] { Keyword[return] identifier[backedIterator] operator[SEP] identifier[getPreProcessor] operator[SEP] operator[SEP] operator[SEP] } annotation[@] identifier[Override] Keyword[public] Keyword[boolean] identifier[hasNext] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[resetPending] operator[SEP] identifier[get] operator[SEP] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[resetSupported] operator[SEP] operator[SEP] operator[SEP] { identifier[backedIterator] operator[SEP] identifier[reset] operator[SEP] operator[SEP] operator[SEP] identifier[counter] operator[SEP] identifier[set] operator[SEP] Other[0] operator[SEP] operator[SEP] identifier[resetPending] operator[SEP] identifier[set] operator[SEP] literal[boolean] operator[SEP] operator[SEP] } Keyword[else] Keyword[throw] Keyword[new] identifier[UnsupportedOperationException] operator[SEP] literal[String] operator[SEP] operator[SEP] } identifier[val] identifier[state] operator[=] identifier[backedIterator] operator[SEP] identifier[hasNext] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[state] operator[&&] identifier[counter] operator[SEP] identifier[get] operator[SEP] operator[SEP] operator[<] identifier[numTrain] operator[SEP] Keyword[return] literal[boolean] operator[SEP] Keyword[else] Keyword[return] literal[boolean] operator[SEP] } annotation[@] identifier[Override] Keyword[public] identifier[DataSet] identifier[next] operator[SEP] operator[SEP] { identifier[counter] operator[SEP] identifier[incrementAndGet] operator[SEP] operator[SEP] operator[SEP] identifier[val] identifier[p] operator[=] identifier[backedIterator] operator[SEP] identifier[next] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[counter] operator[SEP] identifier[get] operator[SEP] operator[SEP] operator[==] Other[1] operator[&&] identifier[firstTrain] operator[==] Other[null] operator[SEP] { identifier[firstTrain] operator[=] identifier[p] operator[SEP] identifier[copy] operator[SEP] operator[SEP] operator[SEP] identifier[firstTrain] operator[SEP] identifier[detach] operator[SEP] operator[SEP] operator[SEP] } Keyword[else] Keyword[if] operator[SEP] identifier[counter] operator[SEP] identifier[get] operator[SEP] operator[SEP] operator[==] Other[1] operator[SEP] { Keyword[int] identifier[cnt] operator[=] Other[0] operator[SEP] Keyword[if] operator[SEP] operator[!] identifier[p] operator[SEP] identifier[getFeatures] operator[SEP] operator[SEP] operator[SEP] identifier[equalsWithEps] operator[SEP] identifier[firstTrain] operator[SEP] identifier[getFeatures] operator[SEP] operator[SEP] , literal[Float] operator[SEP] operator[SEP] Keyword[throw] Keyword[new] identifier[ND4JIllegalStateException] operator[SEP] literal[String] operator[SEP] operator[SEP] } Keyword[return] identifier[p] operator[SEP] } } operator[SEP] }
static boolean essentiallyEqualsTo(RedisClusterNode o1, RedisClusterNode o2) { if (o2 == null) { return false; } if (!sameFlags(o1, o2, RedisClusterNode.NodeFlag.MASTER)) { return false; } if (!sameFlags(o1, o2, RedisClusterNode.NodeFlag.SLAVE)) { return false; } if (!o1.hasSameSlotsAs(o2)) { return false; } return true; }
class class_name[name] begin[{] method[essentiallyEqualsTo, return_type[type[boolean]], modifier[static], parameter[o1, o2]] begin[{] if[binary_operation[member[.o2], ==, literal[null]]] begin[{] return[literal[false]] else begin[{] None end[}] if[call[.sameFlags, parameter[member[.o1], member[.o2], member[RedisClusterNode.NodeFlag.MASTER]]]] begin[{] return[literal[false]] else begin[{] None end[}] if[call[.sameFlags, parameter[member[.o1], member[.o2], member[RedisClusterNode.NodeFlag.SLAVE]]]] begin[{] return[literal[false]] else begin[{] None end[}] if[call[o1.hasSameSlotsAs, parameter[member[.o2]]]] begin[{] return[literal[false]] else begin[{] None end[}] return[literal[true]] end[}] END[}]
Keyword[static] Keyword[boolean] identifier[essentiallyEqualsTo] operator[SEP] identifier[RedisClusterNode] identifier[o1] , identifier[RedisClusterNode] identifier[o2] operator[SEP] { Keyword[if] operator[SEP] identifier[o2] operator[==] Other[null] operator[SEP] { Keyword[return] literal[boolean] operator[SEP] } Keyword[if] operator[SEP] operator[!] identifier[sameFlags] operator[SEP] identifier[o1] , identifier[o2] , identifier[RedisClusterNode] operator[SEP] identifier[NodeFlag] operator[SEP] identifier[MASTER] operator[SEP] operator[SEP] { Keyword[return] literal[boolean] operator[SEP] } Keyword[if] operator[SEP] operator[!] identifier[sameFlags] operator[SEP] identifier[o1] , identifier[o2] , identifier[RedisClusterNode] operator[SEP] identifier[NodeFlag] operator[SEP] identifier[SLAVE] operator[SEP] operator[SEP] { Keyword[return] literal[boolean] operator[SEP] } Keyword[if] operator[SEP] operator[!] identifier[o1] operator[SEP] identifier[hasSameSlotsAs] operator[SEP] identifier[o2] operator[SEP] operator[SEP] { Keyword[return] literal[boolean] operator[SEP] } Keyword[return] literal[boolean] operator[SEP] }