code
stringlengths
63
466k
code_sememe
stringlengths
141
3.79M
token_type
stringlengths
274
1.23M
private static final boolean nowAllSet(int before, int after, int mask) { return ((before & mask) != mask) && ((after & mask) == mask); }
class class_name[name] begin[{] method[nowAllSet, return_type[type[boolean]], modifier[final private static], parameter[before, after, mask]] begin[{] return[binary_operation[binary_operation[binary_operation[member[.before], &, member[.mask]], !=, member[.mask]], &&, binary_operation[binary_operation[member[.after], &, member[.mask]], ==, member[.mask]]]] end[}] END[}]
Keyword[private] Keyword[static] Keyword[final] Keyword[boolean] identifier[nowAllSet] operator[SEP] Keyword[int] identifier[before] , Keyword[int] identifier[after] , Keyword[int] identifier[mask] operator[SEP] { Keyword[return] operator[SEP] operator[SEP] identifier[before] operator[&] identifier[mask] operator[SEP] operator[!=] identifier[mask] operator[SEP] operator[&&] operator[SEP] operator[SEP] identifier[after] operator[&] identifier[mask] operator[SEP] operator[==] identifier[mask] operator[SEP] operator[SEP] }
public static synchronized Statistics getStatistics(String scheme, Class<? extends FileSystem> cls) { Statistics result = statisticsTable.get(cls); if (result == null) { result = new Statistics(scheme); statisticsTable.put(cls, result); } return result; }
class class_name[name] begin[{] method[getStatistics, return_type[type[Statistics]], modifier[synchronized public static], parameter[scheme, cls]] begin[{] local_variable[type[Statistics], result] if[binary_operation[member[.result], ==, literal[null]]] begin[{] assign[member[.result], ClassCreator(arguments=[MemberReference(member=scheme, 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=Statistics, sub_type=None))] call[statisticsTable.put, parameter[member[.cls], member[.result]]] else begin[{] None end[}] return[member[.result]] end[}] END[}]
Keyword[public] Keyword[static] Keyword[synchronized] identifier[Statistics] identifier[getStatistics] operator[SEP] identifier[String] identifier[scheme] , identifier[Class] operator[<] operator[?] Keyword[extends] identifier[FileSystem] operator[>] identifier[cls] operator[SEP] { identifier[Statistics] identifier[result] operator[=] identifier[statisticsTable] operator[SEP] identifier[get] operator[SEP] identifier[cls] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[result] operator[==] Other[null] operator[SEP] { identifier[result] operator[=] Keyword[new] identifier[Statistics] operator[SEP] identifier[scheme] operator[SEP] operator[SEP] identifier[statisticsTable] operator[SEP] identifier[put] operator[SEP] identifier[cls] , identifier[result] operator[SEP] operator[SEP] } Keyword[return] identifier[result] operator[SEP] }
public void serviceName_sharepoint_PUT(String serviceName, OvhSharepointService body) throws IOException { String qPath = "/msServices/{serviceName}/sharepoint"; StringBuilder sb = path(qPath, serviceName); exec(qPath, "PUT", sb.toString(), body); }
class class_name[name] begin[{] method[serviceName_sharepoint_PUT, return_type[void], modifier[public], parameter[serviceName, body]] begin[{] local_variable[type[String], qPath] local_variable[type[StringBuilder], sb] call[.exec, parameter[member[.qPath], literal["PUT"], call[sb.toString, parameter[]], member[.body]]] end[}] END[}]
Keyword[public] Keyword[void] identifier[serviceName_sharepoint_PUT] operator[SEP] identifier[String] identifier[serviceName] , identifier[OvhSharepointService] identifier[body] 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] operator[SEP] operator[SEP] identifier[exec] operator[SEP] identifier[qPath] , literal[String] , identifier[sb] operator[SEP] identifier[toString] operator[SEP] operator[SEP] , identifier[body] operator[SEP] operator[SEP] }
public final Set<Entry<String, L[]>> getEntries() { return (this.map != null) ? this.map.entrySet() : Collections.<Entry<String, L[]>>emptySet(); }
class class_name[name] begin[{] method[getEntries, return_type[type[Set]], modifier[final public], parameter[]] begin[{] return[TernaryExpression(condition=BinaryOperation(operandl=This(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[MemberReference(member=map, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None)]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=null), operator=!=), if_false=MethodInvocation(arguments=[], member=Collections, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=[TypeArgument(pattern_type=None, 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=[None], name=L, sub_type=None))], dimensions=[], name=Entry, sub_type=None))]), if_true=This(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[MemberReference(member=map, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None), MethodInvocation(arguments=[], member=entrySet, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)]))] end[}] END[}]
Keyword[public] Keyword[final] identifier[Set] operator[<] identifier[Entry] operator[<] identifier[String] , identifier[L] operator[SEP] operator[SEP] operator[>] operator[>] identifier[getEntries] operator[SEP] operator[SEP] { Keyword[return] operator[SEP] Keyword[this] operator[SEP] identifier[map] operator[!=] Other[null] operator[SEP] operator[?] Keyword[this] operator[SEP] identifier[map] operator[SEP] identifier[entrySet] operator[SEP] operator[SEP] operator[:] identifier[Collections] operator[SEP] operator[<] identifier[Entry] operator[<] identifier[String] , identifier[L] operator[SEP] operator[SEP] operator[>] operator[>] identifier[emptySet] operator[SEP] operator[SEP] operator[SEP] }
protected void flushSessions () { List<PresentsSession> victims = Lists.newArrayList(); long now = System.currentTimeMillis(); // first build a list of our victims synchronized (_usermap) { for (PresentsSession session : _usermap.values()) { if (session.checkExpired(now)) { victims.add(session); } } } // now end their sessions for (PresentsSession session : victims) { try { log.info("Session expired, ending session", "session", session, "dtime", (now-session.getNetworkStamp()) + "ms]."); session.endSession(); } catch (Exception e) { log.warning("Choke while flushing session", "victim", session, e); } } }
class class_name[name] begin[{] method[flushSessions, return_type[void], modifier[protected], parameter[]] begin[{] local_variable[type[List], victims] local_variable[type[long], now] SYNCHRONIZED[member[._usermap]] BEGIN[{] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=MethodInvocation(arguments=[MemberReference(member=now, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=checkExpired, postfix_operators=[], prefix_operators=[], qualifier=session, selectors=[], type_arguments=None), else_statement=None, label=None, then_statement=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=session, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=add, postfix_operators=[], prefix_operators=[], qualifier=victims, selectors=[], type_arguments=None), label=None)]))]), control=EnhancedForControl(iterable=MethodInvocation(arguments=[], member=values, postfix_operators=[], prefix_operators=[], qualifier=_usermap, selectors=[], type_arguments=None), var=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=None, name=session)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=PresentsSession, sub_type=None))), label=None) END[}] ForStatement(body=BlockStatement(label=None, statements=[TryStatement(block=[StatementExpression(expression=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="Session expired, ending session"), Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="session"), MemberReference(member=session, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="dtime"), BinaryOperation(operandl=BinaryOperation(operandl=MemberReference(member=now, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MethodInvocation(arguments=[], member=getNetworkStamp, postfix_operators=[], prefix_operators=[], qualifier=session, selectors=[], type_arguments=None), operator=-), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="ms]."), operator=+)], member=info, postfix_operators=[], prefix_operators=[], qualifier=log, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[], member=endSession, postfix_operators=[], prefix_operators=[], qualifier=session, selectors=[], type_arguments=None), label=None)], catches=[CatchClause(block=[StatementExpression(expression=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="Choke while flushing session"), Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="victim"), MemberReference(member=session, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=e, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=warning, postfix_operators=[], prefix_operators=[], qualifier=log, 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=victims, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), var=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=None, name=session)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=PresentsSession, sub_type=None))), label=None) end[}] END[}]
Keyword[protected] Keyword[void] identifier[flushSessions] operator[SEP] operator[SEP] { identifier[List] operator[<] identifier[PresentsSession] operator[>] identifier[victims] operator[=] identifier[Lists] operator[SEP] identifier[newArrayList] operator[SEP] operator[SEP] operator[SEP] Keyword[long] identifier[now] operator[=] identifier[System] operator[SEP] identifier[currentTimeMillis] operator[SEP] operator[SEP] operator[SEP] Keyword[synchronized] operator[SEP] identifier[_usermap] operator[SEP] { Keyword[for] operator[SEP] identifier[PresentsSession] identifier[session] operator[:] identifier[_usermap] operator[SEP] identifier[values] operator[SEP] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[session] operator[SEP] identifier[checkExpired] operator[SEP] identifier[now] operator[SEP] operator[SEP] { identifier[victims] operator[SEP] identifier[add] operator[SEP] identifier[session] operator[SEP] operator[SEP] } } } Keyword[for] operator[SEP] identifier[PresentsSession] identifier[session] operator[:] identifier[victims] operator[SEP] { Keyword[try] { identifier[log] operator[SEP] identifier[info] operator[SEP] literal[String] , literal[String] , identifier[session] , literal[String] , operator[SEP] identifier[now] operator[-] identifier[session] operator[SEP] identifier[getNetworkStamp] operator[SEP] operator[SEP] operator[SEP] operator[+] literal[String] operator[SEP] operator[SEP] identifier[session] operator[SEP] identifier[endSession] operator[SEP] operator[SEP] operator[SEP] } Keyword[catch] operator[SEP] identifier[Exception] identifier[e] operator[SEP] { identifier[log] operator[SEP] identifier[warning] operator[SEP] literal[String] , literal[String] , identifier[session] , identifier[e] operator[SEP] operator[SEP] } } }
protected String applicationTenancyPathForCached(final Object domainObject) { return queryResultsCache.execute(new Callable<String>() { @Override public String call() throws Exception { return applicationTenancyPathFor(domainObject); } }, TenantedAuthorizationFacetDefault.class, "applicationTenancyPathFor", domainObject); }
class class_name[name] begin[{] method[applicationTenancyPathForCached, return_type[type[String]], modifier[protected], parameter[domainObject]] begin[{] return[call[queryResultsCache.execute, parameter[ClassCreator(arguments=[], body=[MethodDeclaration(annotations=[Annotation(element=None, name=Override)], body=[ReturnStatement(expression=MethodInvocation(arguments=[MemberReference(member=domainObject, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=applicationTenancyPathFor, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), label=None)], documentation=None, modifiers={'public'}, name=call, parameters=[], return_type=ReferenceType(arguments=None, dimensions=[], name=String, sub_type=None), throws=['Exception'], type_parameters=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=Callable, sub_type=None)), ClassReference(postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=TenantedAuthorizationFacetDefault, sub_type=None)), literal["applicationTenancyPathFor"], member[.domainObject]]]] end[}] END[}]
Keyword[protected] identifier[String] identifier[applicationTenancyPathForCached] operator[SEP] Keyword[final] identifier[Object] identifier[domainObject] operator[SEP] { Keyword[return] identifier[queryResultsCache] operator[SEP] identifier[execute] operator[SEP] Keyword[new] identifier[Callable] operator[<] identifier[String] operator[>] operator[SEP] operator[SEP] { annotation[@] identifier[Override] Keyword[public] identifier[String] identifier[call] operator[SEP] operator[SEP] Keyword[throws] identifier[Exception] { Keyword[return] identifier[applicationTenancyPathFor] operator[SEP] identifier[domainObject] operator[SEP] operator[SEP] } } , identifier[TenantedAuthorizationFacetDefault] operator[SEP] Keyword[class] , literal[String] , identifier[domainObject] operator[SEP] operator[SEP] }
@Override public <T extends QueryEntity> List<T> queryForList(Class<T> type, String where, Set<String> fieldSet, QueryParams params) { ListWrapper<T> wrapper = this.handleQueryForEntities(type, where, fieldSet, params); if (wrapper == null) { return Collections.emptyList(); } return wrapper.getData(); }
class class_name[name] begin[{] method[queryForList, return_type[type[List]], modifier[public], parameter[type, where, fieldSet, params]] begin[{] local_variable[type[ListWrapper], wrapper] if[binary_operation[member[.wrapper], ==, literal[null]]] begin[{] return[call[Collections.emptyList, parameter[]]] else begin[{] None end[}] return[call[wrapper.getData, parameter[]]] end[}] END[}]
annotation[@] identifier[Override] Keyword[public] operator[<] identifier[T] Keyword[extends] identifier[QueryEntity] operator[>] identifier[List] operator[<] identifier[T] operator[>] identifier[queryForList] operator[SEP] identifier[Class] operator[<] identifier[T] operator[>] identifier[type] , identifier[String] identifier[where] , identifier[Set] operator[<] identifier[String] operator[>] identifier[fieldSet] , identifier[QueryParams] identifier[params] operator[SEP] { identifier[ListWrapper] operator[<] identifier[T] operator[>] identifier[wrapper] operator[=] Keyword[this] operator[SEP] identifier[handleQueryForEntities] operator[SEP] identifier[type] , identifier[where] , identifier[fieldSet] , identifier[params] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[wrapper] operator[==] Other[null] operator[SEP] { Keyword[return] identifier[Collections] operator[SEP] identifier[emptyList] operator[SEP] operator[SEP] operator[SEP] } Keyword[return] identifier[wrapper] operator[SEP] identifier[getData] operator[SEP] operator[SEP] operator[SEP] }
public byte minValue() { if (data.length == 0) return 0; byte min = Byte.MAX_VALUE; for (byte b : data) if (b < min) min = b; return min; }
class class_name[name] begin[{] method[minValue, return_type[type[byte]], modifier[public], parameter[]] begin[{] if[binary_operation[member[data.length], ==, literal[0]]] begin[{] return[literal[0]] else begin[{] None end[}] local_variable[type[byte], min] ForStatement(body=IfStatement(condition=BinaryOperation(operandl=MemberReference(member=b, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=min, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=<), else_statement=None, label=None, then_statement=StatementExpression(expression=Assignment(expressionl=MemberReference(member=min, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MemberReference(member=b, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])), label=None)), control=EnhancedForControl(iterable=MemberReference(member=data, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), var=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=None, name=b)], modifiers=set(), type=BasicType(dimensions=[], name=byte))), label=None) return[member[.min]] end[}] END[}]
Keyword[public] Keyword[byte] identifier[minValue] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[data] operator[SEP] identifier[length] operator[==] Other[0] operator[SEP] Keyword[return] Other[0] operator[SEP] Keyword[byte] identifier[min] operator[=] identifier[Byte] operator[SEP] identifier[MAX_VALUE] operator[SEP] Keyword[for] operator[SEP] Keyword[byte] identifier[b] operator[:] identifier[data] operator[SEP] Keyword[if] operator[SEP] identifier[b] operator[<] identifier[min] operator[SEP] identifier[min] operator[=] identifier[b] operator[SEP] Keyword[return] identifier[min] operator[SEP] }
public boolean isRowAvailable() { if (list == null) { return (false); } else if ((index >= 0) && (index < list.size())) { return (true); } else { return (false); } }
class class_name[name] begin[{] method[isRowAvailable, return_type[type[boolean]], modifier[public], parameter[]] begin[{] if[binary_operation[member[.list], ==, literal[null]]] begin[{] return[literal[false]] else begin[{] if[binary_operation[binary_operation[member[.index], >=, literal[0]], &&, binary_operation[member[.index], <, call[list.size, parameter[]]]]] begin[{] return[literal[true]] else begin[{] return[literal[false]] end[}] end[}] end[}] END[}]
Keyword[public] Keyword[boolean] identifier[isRowAvailable] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[list] operator[==] Other[null] operator[SEP] { Keyword[return] operator[SEP] literal[boolean] operator[SEP] operator[SEP] } Keyword[else] Keyword[if] operator[SEP] operator[SEP] identifier[index] operator[>=] Other[0] operator[SEP] operator[&&] operator[SEP] identifier[index] operator[<] identifier[list] operator[SEP] identifier[size] operator[SEP] operator[SEP] operator[SEP] operator[SEP] { Keyword[return] operator[SEP] literal[boolean] operator[SEP] operator[SEP] } Keyword[else] { Keyword[return] operator[SEP] literal[boolean] operator[SEP] operator[SEP] } }
public Map<String, String> getConfigurationTweak(String dbModuleName) throws SQLException { final DbInfo db = dbPreparer.getNextDb(); final Map<String, String> result = new HashMap<>(); result.put("ot.db." + dbModuleName + ".uri", getJdbcUri(db)); result.put("ot.db." + dbModuleName + ".ds.user", db.user); return result; }
class class_name[name] begin[{] method[getConfigurationTweak, return_type[type[Map]], modifier[public], parameter[dbModuleName]] begin[{] local_variable[type[DbInfo], db] local_variable[type[Map], result] call[result.put, parameter[binary_operation[binary_operation[literal["ot.db."], +, member[.dbModuleName]], +, literal[".uri"]], call[.getJdbcUri, parameter[member[.db]]]]] call[result.put, parameter[binary_operation[binary_operation[literal["ot.db."], +, member[.dbModuleName]], +, literal[".ds.user"]], member[db.user]]] return[member[.result]] end[}] END[}]
Keyword[public] identifier[Map] operator[<] identifier[String] , identifier[String] operator[>] identifier[getConfigurationTweak] operator[SEP] identifier[String] identifier[dbModuleName] operator[SEP] Keyword[throws] identifier[SQLException] { Keyword[final] identifier[DbInfo] identifier[db] operator[=] identifier[dbPreparer] operator[SEP] identifier[getNextDb] operator[SEP] operator[SEP] operator[SEP] Keyword[final] identifier[Map] operator[<] identifier[String] , identifier[String] operator[>] identifier[result] operator[=] Keyword[new] identifier[HashMap] operator[<] operator[>] operator[SEP] operator[SEP] operator[SEP] identifier[result] operator[SEP] identifier[put] operator[SEP] literal[String] operator[+] identifier[dbModuleName] operator[+] literal[String] , identifier[getJdbcUri] operator[SEP] identifier[db] operator[SEP] operator[SEP] operator[SEP] identifier[result] operator[SEP] identifier[put] operator[SEP] literal[String] operator[+] identifier[dbModuleName] operator[+] literal[String] , identifier[db] operator[SEP] identifier[user] operator[SEP] operator[SEP] Keyword[return] identifier[result] operator[SEP] }
boolean updateCallback(Task<?> task, Activity callback, String annotationId) { if (task == null || callback == null) { return false; } WeakReference<TaskRunnable<?>> reference = mTaskRunnables.get(task.getKey()); if (reference == null) { return false; } TaskRunnable<?> runnable = reference.get(); if (runnable == null || runnable.mPostingResult || runnable.mTask != task) { return false; } task.setCachedActivity(callback); task.setAnnotationId(annotationId); runnable.updateCallbackActivity(callback); return true; }
class class_name[name] begin[{] method[updateCallback, return_type[type[boolean]], modifier[default], parameter[task, callback, annotationId]] begin[{] if[binary_operation[binary_operation[member[.task], ==, literal[null]], ||, binary_operation[member[.callback], ==, literal[null]]]] begin[{] return[literal[false]] else begin[{] None end[}] local_variable[type[WeakReference], reference] if[binary_operation[member[.reference], ==, literal[null]]] begin[{] return[literal[false]] else begin[{] None end[}] local_variable[type[TaskRunnable], runnable] if[binary_operation[binary_operation[binary_operation[member[.runnable], ==, literal[null]], ||, member[runnable.mPostingResult]], ||, binary_operation[member[runnable.mTask], !=, member[.task]]]] begin[{] return[literal[false]] else begin[{] None end[}] call[task.setCachedActivity, parameter[member[.callback]]] call[task.setAnnotationId, parameter[member[.annotationId]]] call[runnable.updateCallbackActivity, parameter[member[.callback]]] return[literal[true]] end[}] END[}]
Keyword[boolean] identifier[updateCallback] operator[SEP] identifier[Task] operator[<] operator[?] operator[>] identifier[task] , identifier[Activity] identifier[callback] , identifier[String] identifier[annotationId] operator[SEP] { Keyword[if] operator[SEP] identifier[task] operator[==] Other[null] operator[||] identifier[callback] operator[==] Other[null] operator[SEP] { Keyword[return] literal[boolean] operator[SEP] } identifier[WeakReference] operator[<] identifier[TaskRunnable] operator[<] operator[?] operator[>] operator[>] identifier[reference] operator[=] identifier[mTaskRunnables] operator[SEP] identifier[get] operator[SEP] identifier[task] operator[SEP] identifier[getKey] operator[SEP] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[reference] operator[==] Other[null] operator[SEP] { Keyword[return] literal[boolean] operator[SEP] } identifier[TaskRunnable] operator[<] operator[?] operator[>] identifier[runnable] operator[=] identifier[reference] operator[SEP] identifier[get] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[runnable] operator[==] Other[null] operator[||] identifier[runnable] operator[SEP] identifier[mPostingResult] operator[||] identifier[runnable] operator[SEP] identifier[mTask] operator[!=] identifier[task] operator[SEP] { Keyword[return] literal[boolean] operator[SEP] } identifier[task] operator[SEP] identifier[setCachedActivity] operator[SEP] identifier[callback] operator[SEP] operator[SEP] identifier[task] operator[SEP] identifier[setAnnotationId] operator[SEP] identifier[annotationId] operator[SEP] operator[SEP] identifier[runnable] operator[SEP] identifier[updateCallbackActivity] operator[SEP] identifier[callback] operator[SEP] operator[SEP] Keyword[return] literal[boolean] operator[SEP] }
private void addTimerToCorrectMap(Map<String, List<com.ibm.ws.javaee.dd.ejb.Timer>> timers1ParmByMethodName, Map<String, List<com.ibm.ws.javaee.dd.ejb.Timer>> timers0ParmByMethodName, Map<String, List<com.ibm.ws.javaee.dd.ejb.Timer>> timersUnspecifiedParmByMethodName, int parmCount, String methodName, com.ibm.ws.javaee.dd.ejb.Timer timer) { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); Map<String, List<com.ibm.ws.javaee.dd.ejb.Timer>> mapToUse = null; if (parmCount == 0) { mapToUse = timers0ParmByMethodName; } else if (parmCount == 1) { mapToUse = timers1ParmByMethodName; } else { mapToUse = timersUnspecifiedParmByMethodName; } List<com.ibm.ws.javaee.dd.ejb.Timer> timerList = mapToUse.get(methodName); if (timerList == null) { timerList = new ArrayList<com.ibm.ws.javaee.dd.ejb.Timer>(); mapToUse.put(methodName, timerList); } if (isTraceOn && tc.isDebugEnabled()) { Tr.debug(tc, "found XML timer for method " + methodName); } timerList.add(timer); }
class class_name[name] begin[{] method[addTimerToCorrectMap, return_type[void], modifier[private], parameter[timers1ParmByMethodName, timers0ParmByMethodName, timersUnspecifiedParmByMethodName, parmCount, methodName, timer]] begin[{] local_variable[type[boolean], isTraceOn] local_variable[type[Map], mapToUse] if[binary_operation[member[.parmCount], ==, literal[0]]] begin[{] assign[member[.mapToUse], member[.timers0ParmByMethodName]] else begin[{] if[binary_operation[member[.parmCount], ==, literal[1]]] begin[{] assign[member[.mapToUse], member[.timers1ParmByMethodName]] else begin[{] assign[member[.mapToUse], member[.timersUnspecifiedParmByMethodName]] end[}] end[}] local_variable[type[List], timerList] if[binary_operation[member[.timerList], ==, literal[null]]] begin[{] assign[member[.timerList], 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=com, sub_type=ReferenceType(arguments=None, dimensions=None, name=ibm, sub_type=ReferenceType(arguments=None, dimensions=None, name=ws, sub_type=ReferenceType(arguments=None, dimensions=None, name=javaee, sub_type=ReferenceType(arguments=None, dimensions=None, name=dd, sub_type=ReferenceType(arguments=None, dimensions=None, name=ejb, sub_type=ReferenceType(arguments=None, dimensions=None, name=Timer, sub_type=None))))))))], dimensions=None, name=ArrayList, sub_type=None))] call[mapToUse.put, parameter[member[.methodName], member[.timerList]]] else begin[{] None end[}] if[binary_operation[member[.isTraceOn], &&, call[tc.isDebugEnabled, parameter[]]]] begin[{] call[Tr.debug, parameter[member[.tc], binary_operation[literal["found XML timer for method "], +, member[.methodName]]]] else begin[{] None end[}] call[timerList.add, parameter[member[.timer]]] end[}] END[}]
Keyword[private] Keyword[void] identifier[addTimerToCorrectMap] operator[SEP] identifier[Map] operator[<] identifier[String] , identifier[List] operator[<] identifier[com] operator[SEP] identifier[ibm] operator[SEP] identifier[ws] operator[SEP] identifier[javaee] operator[SEP] identifier[dd] operator[SEP] identifier[ejb] operator[SEP] identifier[Timer] operator[>] operator[>] identifier[timers1ParmByMethodName] , identifier[Map] operator[<] identifier[String] , identifier[List] operator[<] identifier[com] operator[SEP] identifier[ibm] operator[SEP] identifier[ws] operator[SEP] identifier[javaee] operator[SEP] identifier[dd] operator[SEP] identifier[ejb] operator[SEP] identifier[Timer] operator[>] operator[>] identifier[timers0ParmByMethodName] , identifier[Map] operator[<] identifier[String] , identifier[List] operator[<] identifier[com] operator[SEP] identifier[ibm] operator[SEP] identifier[ws] operator[SEP] identifier[javaee] operator[SEP] identifier[dd] operator[SEP] identifier[ejb] operator[SEP] identifier[Timer] operator[>] operator[>] identifier[timersUnspecifiedParmByMethodName] , Keyword[int] identifier[parmCount] , identifier[String] identifier[methodName] , identifier[com] operator[SEP] identifier[ibm] operator[SEP] identifier[ws] operator[SEP] identifier[javaee] operator[SEP] identifier[dd] operator[SEP] identifier[ejb] operator[SEP] identifier[Timer] identifier[timer] operator[SEP] { Keyword[final] Keyword[boolean] identifier[isTraceOn] operator[=] identifier[TraceComponent] operator[SEP] identifier[isAnyTracingEnabled] operator[SEP] operator[SEP] operator[SEP] identifier[Map] operator[<] identifier[String] , identifier[List] operator[<] identifier[com] operator[SEP] identifier[ibm] operator[SEP] identifier[ws] operator[SEP] identifier[javaee] operator[SEP] identifier[dd] operator[SEP] identifier[ejb] operator[SEP] identifier[Timer] operator[>] operator[>] identifier[mapToUse] operator[=] Other[null] operator[SEP] Keyword[if] operator[SEP] identifier[parmCount] operator[==] Other[0] operator[SEP] { identifier[mapToUse] operator[=] identifier[timers0ParmByMethodName] operator[SEP] } Keyword[else] Keyword[if] operator[SEP] identifier[parmCount] operator[==] Other[1] operator[SEP] { identifier[mapToUse] operator[=] identifier[timers1ParmByMethodName] operator[SEP] } Keyword[else] { identifier[mapToUse] operator[=] identifier[timersUnspecifiedParmByMethodName] operator[SEP] } identifier[List] operator[<] identifier[com] operator[SEP] identifier[ibm] operator[SEP] identifier[ws] operator[SEP] identifier[javaee] operator[SEP] identifier[dd] operator[SEP] identifier[ejb] operator[SEP] identifier[Timer] operator[>] identifier[timerList] operator[=] identifier[mapToUse] operator[SEP] identifier[get] operator[SEP] identifier[methodName] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[timerList] operator[==] Other[null] operator[SEP] { identifier[timerList] operator[=] Keyword[new] identifier[ArrayList] operator[<] identifier[com] operator[SEP] identifier[ibm] operator[SEP] identifier[ws] operator[SEP] identifier[javaee] operator[SEP] identifier[dd] operator[SEP] identifier[ejb] operator[SEP] identifier[Timer] operator[>] operator[SEP] operator[SEP] operator[SEP] identifier[mapToUse] operator[SEP] identifier[put] operator[SEP] identifier[methodName] , identifier[timerList] 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[methodName] operator[SEP] operator[SEP] } identifier[timerList] operator[SEP] identifier[add] operator[SEP] identifier[timer] operator[SEP] operator[SEP] }
private static Optional<Expression> tryResolveMissingExpression(PlanBuilder subPlan, Expression expression) { Expression rewritten = subPlan.rewrite(expression); if (rewritten != expression) { return Optional.of(rewritten); } return Optional.empty(); }
class class_name[name] begin[{] method[tryResolveMissingExpression, return_type[type[Optional]], modifier[private static], parameter[subPlan, expression]] begin[{] local_variable[type[Expression], rewritten] if[binary_operation[member[.rewritten], !=, member[.expression]]] begin[{] return[call[Optional.of, parameter[member[.rewritten]]]] else begin[{] None end[}] return[call[Optional.empty, parameter[]]] end[}] END[}]
Keyword[private] Keyword[static] identifier[Optional] operator[<] identifier[Expression] operator[>] identifier[tryResolveMissingExpression] operator[SEP] identifier[PlanBuilder] identifier[subPlan] , identifier[Expression] identifier[expression] operator[SEP] { identifier[Expression] identifier[rewritten] operator[=] identifier[subPlan] operator[SEP] identifier[rewrite] operator[SEP] identifier[expression] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[rewritten] operator[!=] identifier[expression] operator[SEP] { Keyword[return] identifier[Optional] operator[SEP] identifier[of] operator[SEP] identifier[rewritten] operator[SEP] operator[SEP] } Keyword[return] identifier[Optional] operator[SEP] identifier[empty] operator[SEP] operator[SEP] operator[SEP] }
private void internalInsert(AttributeSet attributes, int c, int r) { cellAttributes.put((long) c, (long) r, attributes); }
class class_name[name] begin[{] method[internalInsert, return_type[void], modifier[private], parameter[attributes, c, r]] begin[{] call[cellAttributes.put, parameter[Cast(expression=MemberReference(member=c, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type=BasicType(dimensions=[], name=long)), Cast(expression=MemberReference(member=r, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type=BasicType(dimensions=[], name=long)), member[.attributes]]] end[}] END[}]
Keyword[private] Keyword[void] identifier[internalInsert] operator[SEP] identifier[AttributeSet] identifier[attributes] , Keyword[int] identifier[c] , Keyword[int] identifier[r] operator[SEP] { identifier[cellAttributes] operator[SEP] identifier[put] operator[SEP] operator[SEP] Keyword[long] operator[SEP] identifier[c] , operator[SEP] Keyword[long] operator[SEP] identifier[r] , identifier[attributes] operator[SEP] operator[SEP] }
private void subTableSimpleFieldOperation(ESSyncConfig config, Dml dml, Map<String, Object> data, Map<String, Object> old, TableItem tableItem) { ESMapping mapping = config.getEsMapping(); StringBuilder sql = new StringBuilder( "SELECT * FROM (" + tableItem.getSubQuerySql() + ") " + tableItem.getAlias() + " WHERE "); for (FieldItem fkFieldItem : tableItem.getRelationTableFields().keySet()) { String columnName = fkFieldItem.getColumn().getColumnName(); Object value = esTemplate.getValFromData(mapping, data, fkFieldItem.getFieldName(), columnName); ESSyncUtil.appendCondition(sql, value, tableItem.getAlias(), columnName); } int len = sql.length(); sql.delete(len - 5, len); DataSource ds = DatasourceConfig.DATA_SOURCES.get(config.getDataSourceKey()); if (logger.isTraceEnabled()) { logger.trace("Join table update es index by query sql, destination:{}, table: {}, index: {}, sql: {}", config.getDestination(), dml.getTable(), mapping.get_index(), sql.toString().replace("\n", " ")); } Util.sqlRS(ds, sql.toString(), rs -> { try { while (rs.next()) { Map<String, Object> esFieldData = new LinkedHashMap<>(); for (FieldItem fieldItem : tableItem.getRelationSelectFieldItems()) { if (old != null) { out: for (FieldItem fieldItem1 : tableItem.getSubQueryFields()) { for (ColumnItem columnItem0 : fieldItem.getColumnItems()) { if (fieldItem1.getFieldName().equals(columnItem0.getColumnName())) for (ColumnItem columnItem : fieldItem1.getColumnItems()) { if (old.containsKey(columnItem.getColumnName())) { Object val = esTemplate.getValFromRS(mapping, rs, fieldItem.getFieldName(), fieldItem.getColumn().getColumnName()); esFieldData.put(Util.cleanColumn(fieldItem.getFieldName()), val); break out; } } } } } else { Object val = esTemplate.getValFromRS(mapping, rs, fieldItem.getFieldName(), fieldItem.getColumn().getColumnName()); esFieldData.put(Util.cleanColumn(fieldItem.getFieldName()), val); } } Map<String, Object> paramsTmp = new LinkedHashMap<>(); for (Map.Entry<FieldItem, List<FieldItem>> entry : tableItem.getRelationTableFields().entrySet()) { for (FieldItem fieldItem : entry.getValue()) { if (fieldItem.getColumnItems().size() == 1) { Object value = esTemplate.getValFromRS(mapping, rs, fieldItem.getFieldName(), entry.getKey().getColumn().getColumnName()); String fieldName = fieldItem.getFieldName(); // 判断是否是主键 if (fieldName.equals(mapping.get_id())) { fieldName = "_id"; } paramsTmp.put(fieldName, value); } } } if (logger.isDebugEnabled()) { logger.trace("Join table update es index by query sql, destination:{}, table: {}, index: {}", config.getDestination(), dml.getTable(), mapping.get_index()); } esTemplate.updateByQuery(config, paramsTmp, esFieldData); } } catch (Exception e) { throw new RuntimeException(e); } return 0; }); }
class class_name[name] begin[{] method[subTableSimpleFieldOperation, return_type[void], modifier[private], parameter[config, dml, data, old, tableItem]] begin[{] local_variable[type[ESMapping], mapping] local_variable[type[StringBuilder], sql] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[], member=getColumn, postfix_operators=[], prefix_operators=[], qualifier=fkFieldItem, selectors=[MethodInvocation(arguments=[], member=getColumnName, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)], type_arguments=None), name=columnName)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=String, sub_type=None)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberReference(member=mapping, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=data, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MethodInvocation(arguments=[], member=getFieldName, postfix_operators=[], prefix_operators=[], qualifier=fkFieldItem, selectors=[], type_arguments=None), MemberReference(member=columnName, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=getValFromData, postfix_operators=[], prefix_operators=[], qualifier=esTemplate, selectors=[], type_arguments=None), name=value)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=Object, sub_type=None)), StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=sql, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=value, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MethodInvocation(arguments=[], member=getAlias, postfix_operators=[], prefix_operators=[], qualifier=tableItem, selectors=[], type_arguments=None), MemberReference(member=columnName, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=appendCondition, postfix_operators=[], prefix_operators=[], qualifier=ESSyncUtil, selectors=[], type_arguments=None), label=None)]), control=EnhancedForControl(iterable=MethodInvocation(arguments=[], member=getRelationTableFields, postfix_operators=[], prefix_operators=[], qualifier=tableItem, selectors=[MethodInvocation(arguments=[], member=keySet, 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=fkFieldItem)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=FieldItem, sub_type=None))), label=None) local_variable[type[int], len] call[sql.delete, parameter[binary_operation[member[.len], -, literal[5]], member[.len]]] local_variable[type[DataSource], ds] if[call[logger.isTraceEnabled, parameter[]]] begin[{] call[logger.trace, parameter[literal["Join table update es index by query sql, destination:{}, table: {}, index: {}, sql: {}"], call[config.getDestination, parameter[]], call[dml.getTable, parameter[]], call[mapping.get_index, parameter[]], call[sql.toString, parameter[]]]] else begin[{] None end[}] call[Util.sqlRS, parameter[member[.ds], call[sql.toString, parameter[]], LambdaExpression(body=[TryStatement(block=[WhileStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=ClassCreator(arguments=[], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=[], dimensions=None, name=LinkedHashMap, sub_type=None)), name=esFieldData)], modifiers=set(), 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=[], name=Map, sub_type=None)), ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=old, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=null), operator=!=), else_statement=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberReference(member=mapping, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=rs, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MethodInvocation(arguments=[], member=getFieldName, postfix_operators=[], prefix_operators=[], qualifier=fieldItem, selectors=[], type_arguments=None), MethodInvocation(arguments=[], member=getColumn, postfix_operators=[], prefix_operators=[], qualifier=fieldItem, selectors=[MethodInvocation(arguments=[], member=getColumnName, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)], type_arguments=None)], member=getValFromRS, postfix_operators=[], prefix_operators=[], qualifier=esTemplate, selectors=[], type_arguments=None), name=val)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=Object, sub_type=None)), StatementExpression(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[MethodInvocation(arguments=[], member=getFieldName, postfix_operators=[], prefix_operators=[], qualifier=fieldItem, selectors=[], type_arguments=None)], member=cleanColumn, postfix_operators=[], prefix_operators=[], qualifier=Util, selectors=[], type_arguments=None), MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=put, postfix_operators=[], prefix_operators=[], qualifier=esFieldData, selectors=[], type_arguments=None), label=None)]), label=None, then_statement=BlockStatement(label=None, statements=[ForStatement(body=BlockStatement(label=None, statements=[ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=MethodInvocation(arguments=[], member=getFieldName, postfix_operators=[], prefix_operators=[], qualifier=fieldItem1, selectors=[MethodInvocation(arguments=[MethodInvocation(arguments=[], member=getColumnName, postfix_operators=[], prefix_operators=[], qualifier=columnItem0, selectors=[], type_arguments=None)], member=equals, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)], type_arguments=None), else_statement=None, label=None, then_statement=ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=MethodInvocation(arguments=[MethodInvocation(arguments=[], member=getColumnName, postfix_operators=[], prefix_operators=[], qualifier=columnItem, selectors=[], type_arguments=None)], member=containsKey, postfix_operators=[], prefix_operators=[], qualifier=old, selectors=[], type_arguments=None), else_statement=None, label=None, then_statement=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberReference(member=mapping, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=rs, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MethodInvocation(arguments=[], member=getFieldName, postfix_operators=[], prefix_operators=[], qualifier=fieldItem, selectors=[], type_arguments=None), MethodInvocation(arguments=[], member=getColumn, postfix_operators=[], prefix_operators=[], qualifier=fieldItem, selectors=[MethodInvocation(arguments=[], member=getColumnName, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)], type_arguments=None)], member=getValFromRS, postfix_operators=[], prefix_operators=[], qualifier=esTemplate, selectors=[], type_arguments=None), name=val)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=Object, sub_type=None)), StatementExpression(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[MethodInvocation(arguments=[], member=getFieldName, postfix_operators=[], prefix_operators=[], qualifier=fieldItem, selectors=[], type_arguments=None)], member=cleanColumn, postfix_operators=[], prefix_operators=[], qualifier=Util, selectors=[], type_arguments=None), MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=put, postfix_operators=[], prefix_operators=[], qualifier=esFieldData, selectors=[], type_arguments=None), label=None), BreakStatement(goto=out, label=None)]))]), control=EnhancedForControl(iterable=MethodInvocation(arguments=[], member=getColumnItems, postfix_operators=[], prefix_operators=[], qualifier=fieldItem1, selectors=[], type_arguments=None), var=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=None, name=columnItem)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=ColumnItem, sub_type=None))), label=None))]), control=EnhancedForControl(iterable=MethodInvocation(arguments=[], member=getColumnItems, postfix_operators=[], prefix_operators=[], qualifier=fieldItem, selectors=[], type_arguments=None), var=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=None, name=columnItem0)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=ColumnItem, sub_type=None))), label=None)]), control=EnhancedForControl(iterable=MethodInvocation(arguments=[], member=getSubQueryFields, postfix_operators=[], prefix_operators=[], qualifier=tableItem, selectors=[], type_arguments=None), var=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=None, name=fieldItem1)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=FieldItem, sub_type=None))), label=out)]))]), control=EnhancedForControl(iterable=MethodInvocation(arguments=[], member=getRelationSelectFieldItems, postfix_operators=[], prefix_operators=[], qualifier=tableItem, selectors=[], type_arguments=None), var=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=None, name=fieldItem)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=FieldItem, sub_type=None))), label=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=[], dimensions=None, name=LinkedHashMap, sub_type=None)), name=paramsTmp)], modifiers=set(), 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=[], name=Map, sub_type=None)), ForStatement(body=BlockStatement(label=None, statements=[ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=BinaryOperation(operandl=MethodInvocation(arguments=[], member=getColumnItems, postfix_operators=[], prefix_operators=[], qualifier=fieldItem, selectors=[MethodInvocation(arguments=[], member=size, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)], 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=MethodInvocation(arguments=[MemberReference(member=mapping, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=rs, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MethodInvocation(arguments=[], member=getFieldName, postfix_operators=[], prefix_operators=[], qualifier=fieldItem, selectors=[], type_arguments=None), MethodInvocation(arguments=[], member=getKey, postfix_operators=[], prefix_operators=[], qualifier=entry, selectors=[MethodInvocation(arguments=[], member=getColumn, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None), MethodInvocation(arguments=[], member=getColumnName, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)], type_arguments=None)], member=getValFromRS, postfix_operators=[], prefix_operators=[], qualifier=esTemplate, selectors=[], type_arguments=None), name=value)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=Object, sub_type=None)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[], member=getFieldName, postfix_operators=[], prefix_operators=[], qualifier=fieldItem, selectors=[], type_arguments=None), name=fieldName)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=String, sub_type=None)), IfStatement(condition=MethodInvocation(arguments=[MethodInvocation(arguments=[], member=get_id, postfix_operators=[], prefix_operators=[], qualifier=mapping, selectors=[], type_arguments=None)], member=equals, postfix_operators=[], prefix_operators=[], qualifier=fieldName, selectors=[], type_arguments=None), else_statement=None, label=None, then_statement=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=fieldName, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="_id")), label=None)])), StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=fieldName, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=value, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=put, postfix_operators=[], prefix_operators=[], qualifier=paramsTmp, selectors=[], type_arguments=None), label=None)]))]), control=EnhancedForControl(iterable=MethodInvocation(arguments=[], member=getValue, postfix_operators=[], prefix_operators=[], qualifier=entry, selectors=[], type_arguments=None), var=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=None, name=fieldItem)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=FieldItem, sub_type=None))), label=None)]), control=EnhancedForControl(iterable=MethodInvocation(arguments=[], member=getRelationTableFields, postfix_operators=[], prefix_operators=[], qualifier=tableItem, selectors=[MethodInvocation(arguments=[], member=entrySet, 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=entry)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=Map, sub_type=ReferenceType(arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=FieldItem, sub_type=None)), TypeArgument(pattern_type=None, type=ReferenceType(arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=FieldItem, sub_type=None))], dimensions=[], name=List, sub_type=None))], dimensions=None, name=Entry, sub_type=None)))), label=None), IfStatement(condition=MethodInvocation(arguments=[], member=isDebugEnabled, postfix_operators=[], prefix_operators=[], qualifier=logger, selectors=[], type_arguments=None), else_statement=None, label=None, then_statement=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="Join table update es index by query sql, destination:{}, table: {}, index: {}"), MethodInvocation(arguments=[], member=getDestination, postfix_operators=[], prefix_operators=[], qualifier=config, selectors=[], type_arguments=None), MethodInvocation(arguments=[], member=getTable, postfix_operators=[], prefix_operators=[], qualifier=dml, selectors=[], type_arguments=None), MethodInvocation(arguments=[], member=get_index, postfix_operators=[], prefix_operators=[], qualifier=mapping, selectors=[], type_arguments=None)], member=trace, postfix_operators=[], prefix_operators=[], qualifier=logger, selectors=[], type_arguments=None), label=None)])), StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=config, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=paramsTmp, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=esFieldData, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=updateByQuery, postfix_operators=[], prefix_operators=[], qualifier=esTemplate, selectors=[], type_arguments=None), label=None)]), condition=MethodInvocation(arguments=[], member=next, postfix_operators=[], prefix_operators=[], qualifier=rs, 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=RuntimeException, sub_type=None)), label=None)], label=None, parameter=CatchClauseParameter(annotations=None, modifiers=None, name=e, types=['Exception']))], finally_block=None, label=None, resources=None), ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), label=None)], parameters=[MemberReference(member=rs, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])])]] end[}] END[}]
Keyword[private] Keyword[void] identifier[subTableSimpleFieldOperation] operator[SEP] identifier[ESSyncConfig] identifier[config] , identifier[Dml] identifier[dml] , identifier[Map] operator[<] identifier[String] , identifier[Object] operator[>] identifier[data] , identifier[Map] operator[<] identifier[String] , identifier[Object] operator[>] identifier[old] , identifier[TableItem] identifier[tableItem] operator[SEP] { identifier[ESMapping] identifier[mapping] operator[=] identifier[config] operator[SEP] identifier[getEsMapping] operator[SEP] operator[SEP] operator[SEP] identifier[StringBuilder] identifier[sql] operator[=] Keyword[new] identifier[StringBuilder] operator[SEP] literal[String] operator[+] identifier[tableItem] operator[SEP] identifier[getSubQuerySql] operator[SEP] operator[SEP] operator[+] literal[String] operator[+] identifier[tableItem] operator[SEP] identifier[getAlias] operator[SEP] operator[SEP] operator[+] literal[String] operator[SEP] operator[SEP] Keyword[for] operator[SEP] identifier[FieldItem] identifier[fkFieldItem] operator[:] identifier[tableItem] operator[SEP] identifier[getRelationTableFields] operator[SEP] operator[SEP] operator[SEP] identifier[keySet] operator[SEP] operator[SEP] operator[SEP] { identifier[String] identifier[columnName] operator[=] identifier[fkFieldItem] operator[SEP] identifier[getColumn] operator[SEP] operator[SEP] operator[SEP] identifier[getColumnName] operator[SEP] operator[SEP] operator[SEP] identifier[Object] identifier[value] operator[=] identifier[esTemplate] operator[SEP] identifier[getValFromData] operator[SEP] identifier[mapping] , identifier[data] , identifier[fkFieldItem] operator[SEP] identifier[getFieldName] operator[SEP] operator[SEP] , identifier[columnName] operator[SEP] operator[SEP] identifier[ESSyncUtil] operator[SEP] identifier[appendCondition] operator[SEP] identifier[sql] , identifier[value] , identifier[tableItem] operator[SEP] identifier[getAlias] operator[SEP] operator[SEP] , identifier[columnName] operator[SEP] operator[SEP] } Keyword[int] identifier[len] operator[=] identifier[sql] operator[SEP] identifier[length] operator[SEP] operator[SEP] operator[SEP] identifier[sql] operator[SEP] identifier[delete] operator[SEP] identifier[len] operator[-] Other[5] , identifier[len] operator[SEP] operator[SEP] identifier[DataSource] identifier[ds] operator[=] identifier[DatasourceConfig] operator[SEP] identifier[DATA_SOURCES] operator[SEP] identifier[get] operator[SEP] identifier[config] operator[SEP] identifier[getDataSourceKey] operator[SEP] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[logger] operator[SEP] identifier[isTraceEnabled] operator[SEP] operator[SEP] operator[SEP] { identifier[logger] operator[SEP] identifier[trace] operator[SEP] literal[String] , identifier[config] operator[SEP] identifier[getDestination] operator[SEP] operator[SEP] , identifier[dml] operator[SEP] identifier[getTable] operator[SEP] operator[SEP] , identifier[mapping] operator[SEP] identifier[get_index] operator[SEP] operator[SEP] , identifier[sql] operator[SEP] identifier[toString] operator[SEP] operator[SEP] operator[SEP] identifier[replace] operator[SEP] literal[String] , literal[String] operator[SEP] operator[SEP] operator[SEP] } identifier[Util] operator[SEP] identifier[sqlRS] operator[SEP] identifier[ds] , identifier[sql] operator[SEP] identifier[toString] operator[SEP] operator[SEP] , identifier[rs] operator[->] { Keyword[try] { Keyword[while] operator[SEP] identifier[rs] operator[SEP] identifier[next] operator[SEP] operator[SEP] operator[SEP] { identifier[Map] operator[<] identifier[String] , identifier[Object] operator[>] identifier[esFieldData] operator[=] Keyword[new] identifier[LinkedHashMap] operator[<] operator[>] operator[SEP] operator[SEP] operator[SEP] Keyword[for] operator[SEP] identifier[FieldItem] identifier[fieldItem] operator[:] identifier[tableItem] operator[SEP] identifier[getRelationSelectFieldItems] operator[SEP] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[old] operator[!=] Other[null] operator[SEP] { identifier[out] operator[:] Keyword[for] operator[SEP] identifier[FieldItem] identifier[fieldItem1] operator[:] identifier[tableItem] operator[SEP] identifier[getSubQueryFields] operator[SEP] operator[SEP] operator[SEP] { Keyword[for] operator[SEP] identifier[ColumnItem] identifier[columnItem0] operator[:] identifier[fieldItem] operator[SEP] identifier[getColumnItems] operator[SEP] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[fieldItem1] operator[SEP] identifier[getFieldName] operator[SEP] operator[SEP] operator[SEP] identifier[equals] operator[SEP] identifier[columnItem0] operator[SEP] identifier[getColumnName] operator[SEP] operator[SEP] operator[SEP] operator[SEP] Keyword[for] operator[SEP] identifier[ColumnItem] identifier[columnItem] operator[:] identifier[fieldItem1] operator[SEP] identifier[getColumnItems] operator[SEP] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[old] operator[SEP] identifier[containsKey] operator[SEP] identifier[columnItem] operator[SEP] identifier[getColumnName] operator[SEP] operator[SEP] operator[SEP] operator[SEP] { identifier[Object] identifier[val] operator[=] identifier[esTemplate] operator[SEP] identifier[getValFromRS] operator[SEP] identifier[mapping] , identifier[rs] , identifier[fieldItem] operator[SEP] identifier[getFieldName] operator[SEP] operator[SEP] , identifier[fieldItem] operator[SEP] identifier[getColumn] operator[SEP] operator[SEP] operator[SEP] identifier[getColumnName] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[esFieldData] operator[SEP] identifier[put] operator[SEP] identifier[Util] operator[SEP] identifier[cleanColumn] operator[SEP] identifier[fieldItem] operator[SEP] identifier[getFieldName] operator[SEP] operator[SEP] operator[SEP] , identifier[val] operator[SEP] operator[SEP] Keyword[break] identifier[out] operator[SEP] } } } } } Keyword[else] { identifier[Object] identifier[val] operator[=] identifier[esTemplate] operator[SEP] identifier[getValFromRS] operator[SEP] identifier[mapping] , identifier[rs] , identifier[fieldItem] operator[SEP] identifier[getFieldName] operator[SEP] operator[SEP] , identifier[fieldItem] operator[SEP] identifier[getColumn] operator[SEP] operator[SEP] operator[SEP] identifier[getColumnName] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[esFieldData] operator[SEP] identifier[put] operator[SEP] identifier[Util] operator[SEP] identifier[cleanColumn] operator[SEP] identifier[fieldItem] operator[SEP] identifier[getFieldName] operator[SEP] operator[SEP] operator[SEP] , identifier[val] operator[SEP] operator[SEP] } } identifier[Map] operator[<] identifier[String] , identifier[Object] operator[>] identifier[paramsTmp] operator[=] Keyword[new] identifier[LinkedHashMap] operator[<] operator[>] operator[SEP] operator[SEP] operator[SEP] Keyword[for] operator[SEP] identifier[Map] operator[SEP] identifier[Entry] operator[<] identifier[FieldItem] , identifier[List] operator[<] identifier[FieldItem] operator[>] operator[>] identifier[entry] operator[:] identifier[tableItem] operator[SEP] identifier[getRelationTableFields] operator[SEP] operator[SEP] operator[SEP] identifier[entrySet] operator[SEP] operator[SEP] operator[SEP] { Keyword[for] operator[SEP] identifier[FieldItem] identifier[fieldItem] operator[:] identifier[entry] operator[SEP] identifier[getValue] operator[SEP] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[fieldItem] operator[SEP] identifier[getColumnItems] operator[SEP] operator[SEP] operator[SEP] identifier[size] operator[SEP] operator[SEP] operator[==] Other[1] operator[SEP] { identifier[Object] identifier[value] operator[=] identifier[esTemplate] operator[SEP] identifier[getValFromRS] operator[SEP] identifier[mapping] , identifier[rs] , identifier[fieldItem] operator[SEP] identifier[getFieldName] operator[SEP] operator[SEP] , identifier[entry] operator[SEP] identifier[getKey] operator[SEP] operator[SEP] operator[SEP] identifier[getColumn] operator[SEP] operator[SEP] operator[SEP] identifier[getColumnName] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[String] identifier[fieldName] operator[=] identifier[fieldItem] operator[SEP] identifier[getFieldName] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[fieldName] operator[SEP] identifier[equals] operator[SEP] identifier[mapping] operator[SEP] identifier[get_id] operator[SEP] operator[SEP] operator[SEP] operator[SEP] { identifier[fieldName] operator[=] literal[String] operator[SEP] } identifier[paramsTmp] operator[SEP] identifier[put] operator[SEP] identifier[fieldName] , identifier[value] operator[SEP] operator[SEP] } } } Keyword[if] operator[SEP] identifier[logger] operator[SEP] identifier[isDebugEnabled] operator[SEP] operator[SEP] operator[SEP] { identifier[logger] operator[SEP] identifier[trace] operator[SEP] literal[String] , identifier[config] operator[SEP] identifier[getDestination] operator[SEP] operator[SEP] , identifier[dml] operator[SEP] identifier[getTable] operator[SEP] operator[SEP] , identifier[mapping] operator[SEP] identifier[get_index] operator[SEP] operator[SEP] operator[SEP] operator[SEP] } identifier[esTemplate] operator[SEP] identifier[updateByQuery] operator[SEP] identifier[config] , identifier[paramsTmp] , identifier[esFieldData] operator[SEP] operator[SEP] } } Keyword[catch] operator[SEP] identifier[Exception] identifier[e] operator[SEP] { Keyword[throw] Keyword[new] identifier[RuntimeException] operator[SEP] identifier[e] operator[SEP] operator[SEP] } Keyword[return] Other[0] operator[SEP] } operator[SEP] operator[SEP] }
public static vpntrafficaction[] get_filtered(nitro_service service, String filter) throws Exception{ vpntrafficaction obj = new vpntrafficaction(); options option = new options(); option.set_filter(filter); vpntrafficaction[] response = (vpntrafficaction[]) obj.getfiltered(service, option); return response; }
class class_name[name] begin[{] method[get_filtered, return_type[type[vpntrafficaction]], modifier[public static], parameter[service, filter]] begin[{] local_variable[type[vpntrafficaction], obj] local_variable[type[options], option] call[option.set_filter, parameter[member[.filter]]] local_variable[type[vpntrafficaction], response] return[member[.response]] end[}] END[}]
Keyword[public] Keyword[static] identifier[vpntrafficaction] operator[SEP] operator[SEP] identifier[get_filtered] operator[SEP] identifier[nitro_service] identifier[service] , identifier[String] identifier[filter] operator[SEP] Keyword[throws] identifier[Exception] { identifier[vpntrafficaction] identifier[obj] operator[=] Keyword[new] identifier[vpntrafficaction] operator[SEP] operator[SEP] operator[SEP] identifier[options] identifier[option] operator[=] Keyword[new] identifier[options] operator[SEP] operator[SEP] operator[SEP] identifier[option] operator[SEP] identifier[set_filter] operator[SEP] identifier[filter] operator[SEP] operator[SEP] identifier[vpntrafficaction] operator[SEP] operator[SEP] identifier[response] operator[=] operator[SEP] identifier[vpntrafficaction] operator[SEP] operator[SEP] operator[SEP] identifier[obj] operator[SEP] identifier[getfiltered] operator[SEP] identifier[service] , identifier[option] operator[SEP] operator[SEP] Keyword[return] identifier[response] operator[SEP] }
@Override public N nc() { return (delegate instanceof NetworkContextManager) ? ((NetworkContextManager<N>) delegate).nc() : null; }
class class_name[name] begin[{] method[nc, return_type[type[N]], modifier[public], parameter[]] begin[{] return[TernaryExpression(condition=BinaryOperation(operandl=MemberReference(member=delegate, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=ReferenceType(arguments=None, dimensions=[], name=NetworkContextManager, sub_type=None), operator=instanceof), if_false=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=null), if_true=Cast(expression=MemberReference(member=delegate, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type=ReferenceType(arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=N, sub_type=None))], dimensions=[], name=NetworkContextManager, sub_type=None)))] end[}] END[}]
annotation[@] identifier[Override] Keyword[public] identifier[N] identifier[nc] operator[SEP] operator[SEP] { Keyword[return] operator[SEP] identifier[delegate] Keyword[instanceof] identifier[NetworkContextManager] operator[SEP] operator[?] operator[SEP] operator[SEP] identifier[NetworkContextManager] operator[<] identifier[N] operator[>] operator[SEP] identifier[delegate] operator[SEP] operator[SEP] identifier[nc] operator[SEP] operator[SEP] operator[:] Other[null] operator[SEP] }
public Observable<ServiceResponse<Page<VirtualMachineScaleSetSkuInner>>> listSkusSinglePageAsync(final String resourceGroupName, final String vmScaleSetName) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } if (vmScaleSetName == null) { throw new IllegalArgumentException("Parameter vmScaleSetName 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."); } return service.listSkus(resourceGroupName, vmScaleSetName, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1<Response<ResponseBody>, Observable<ServiceResponse<Page<VirtualMachineScaleSetSkuInner>>>>() { @Override public Observable<ServiceResponse<Page<VirtualMachineScaleSetSkuInner>>> call(Response<ResponseBody> response) { try { ServiceResponse<PageImpl1<VirtualMachineScaleSetSkuInner>> result = listSkusDelegate(response); return Observable.just(new ServiceResponse<Page<VirtualMachineScaleSetSkuInner>>(result.body(), result.response())); } catch (Throwable t) { return Observable.error(t); } } }); }
class class_name[name] begin[{] method[listSkusSinglePageAsync, return_type[type[Observable]], modifier[public], parameter[resourceGroupName, vmScaleSetName]] 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[.vmScaleSetName], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="Parameter vmScaleSetName 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[}] return[call[service.listSkus, parameter[member[.resourceGroupName], member[.vmScaleSetName], THIS[member[None.client]call[None.subscriptionId, parameter[]]], THIS[member[None.client]call[None.apiVersion, parameter[]]], THIS[member[None.client]call[None.acceptLanguage, parameter[]]], THIS[member[None.client]call[None.userAgent, parameter[]]]]]] end[}] END[}]
Keyword[public] identifier[Observable] operator[<] identifier[ServiceResponse] operator[<] identifier[Page] operator[<] identifier[VirtualMachineScaleSetSkuInner] operator[>] operator[>] operator[>] identifier[listSkusSinglePageAsync] operator[SEP] Keyword[final] identifier[String] identifier[resourceGroupName] , Keyword[final] identifier[String] identifier[vmScaleSetName] 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[vmScaleSetName] 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] } Keyword[return] identifier[service] operator[SEP] identifier[listSkus] operator[SEP] identifier[resourceGroupName] , identifier[vmScaleSetName] , 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] , 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[Page] operator[<] identifier[VirtualMachineScaleSetSkuInner] operator[>] operator[>] operator[>] operator[>] operator[SEP] operator[SEP] { annotation[@] identifier[Override] Keyword[public] identifier[Observable] operator[<] identifier[ServiceResponse] operator[<] identifier[Page] operator[<] identifier[VirtualMachineScaleSetSkuInner] operator[>] operator[>] operator[>] identifier[call] operator[SEP] identifier[Response] operator[<] identifier[ResponseBody] operator[>] identifier[response] operator[SEP] { Keyword[try] { identifier[ServiceResponse] operator[<] identifier[PageImpl1] operator[<] identifier[VirtualMachineScaleSetSkuInner] operator[>] operator[>] identifier[result] operator[=] identifier[listSkusDelegate] operator[SEP] identifier[response] operator[SEP] operator[SEP] Keyword[return] identifier[Observable] operator[SEP] identifier[just] operator[SEP] Keyword[new] identifier[ServiceResponse] operator[<] identifier[Page] operator[<] identifier[VirtualMachineScaleSetSkuInner] operator[>] operator[>] operator[SEP] identifier[result] operator[SEP] identifier[body] operator[SEP] operator[SEP] , identifier[result] operator[SEP] identifier[response] operator[SEP] operator[SEP] operator[SEP] 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] }
public ConfigurableApplicationContext run(String... args) { StopWatch stopWatch = new StopWatch(); stopWatch.start(); ConfigurableApplicationContext context = null; Collection<SpringBootExceptionReporter> exceptionReporters = new ArrayList<>(); configureHeadlessProperty(); SpringApplicationRunListeners listeners = getRunListeners(args); listeners.starting(); try { ApplicationArguments applicationArguments = new DefaultApplicationArguments( args); ConfigurableEnvironment environment = prepareEnvironment(listeners, applicationArguments); configureIgnoreBeanInfo(environment); Banner printedBanner = printBanner(environment); context = createApplicationContext(); exceptionReporters = getSpringFactoriesInstances( SpringBootExceptionReporter.class, new Class[] { ConfigurableApplicationContext.class }, context); prepareContext(context, environment, listeners, applicationArguments, printedBanner); refreshContext(context); afterRefresh(context, applicationArguments); stopWatch.stop(); if (this.logStartupInfo) { new StartupInfoLogger(this.mainApplicationClass) .logStarted(getApplicationLog(), stopWatch); } listeners.started(context); callRunners(context, applicationArguments); } catch (Throwable ex) { handleRunFailure(context, ex, exceptionReporters, listeners); throw new IllegalStateException(ex); } try { listeners.running(context); } catch (Throwable ex) { handleRunFailure(context, ex, exceptionReporters, null); throw new IllegalStateException(ex); } return context; }
class class_name[name] begin[{] method[run, return_type[type[ConfigurableApplicationContext]], modifier[public], parameter[args]] begin[{] local_variable[type[StopWatch], stopWatch] call[stopWatch.start, parameter[]] local_variable[type[ConfigurableApplicationContext], context] local_variable[type[Collection], exceptionReporters] call[.configureHeadlessProperty, parameter[]] local_variable[type[SpringApplicationRunListeners], listeners] call[listeners.starting, parameter[]] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=ClassCreator(arguments=[MemberReference(member=args, 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=DefaultApplicationArguments, sub_type=None)), name=applicationArguments)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=ApplicationArguments, sub_type=None)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberReference(member=listeners, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=applicationArguments, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=prepareEnvironment, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), name=environment)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=ConfigurableEnvironment, sub_type=None)), StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=environment, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=configureIgnoreBeanInfo, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), label=None), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberReference(member=environment, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=printBanner, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), name=printedBanner)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=Banner, sub_type=None)), StatementExpression(expression=Assignment(expressionl=MemberReference(member=context, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MethodInvocation(arguments=[], member=createApplicationContext, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None)), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=exceptionReporters, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MethodInvocation(arguments=[ClassReference(postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=SpringBootExceptionReporter, sub_type=None)), ArrayCreator(dimensions=[None], initializer=ArrayInitializer(initializers=[ClassReference(postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=ConfigurableApplicationContext, sub_type=None))]), postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=Class, sub_type=None)), MemberReference(member=context, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=getSpringFactoriesInstances, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None)), label=None), StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=context, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=environment, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=listeners, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=applicationArguments, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=printedBanner, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=prepareContext, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=context, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=refreshContext, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=context, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=applicationArguments, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=afterRefresh, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[], member=stop, postfix_operators=[], prefix_operators=[], qualifier=stopWatch, selectors=[], type_arguments=None), label=None), IfStatement(condition=This(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[MemberReference(member=logStartupInfo, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None)]), else_statement=None, label=None, then_statement=BlockStatement(label=None, statements=[StatementExpression(expression=ClassCreator(arguments=[This(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[MemberReference(member=mainApplicationClass, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None)])], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[MethodInvocation(arguments=[MethodInvocation(arguments=[], member=getApplicationLog, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), MemberReference(member=stopWatch, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=logStarted, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)], type=ReferenceType(arguments=None, dimensions=None, name=StartupInfoLogger, sub_type=None)), label=None)])), StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=context, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=started, postfix_operators=[], prefix_operators=[], qualifier=listeners, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=context, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=applicationArguments, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=callRunners, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), label=None)], catches=[CatchClause(block=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=context, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=ex, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=exceptionReporters, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=listeners, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=handleRunFailure, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), label=None), ThrowStatement(expression=ClassCreator(arguments=[MemberReference(member=ex, 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=IllegalStateException, sub_type=None)), label=None)], label=None, parameter=CatchClauseParameter(annotations=None, modifiers=None, name=ex, types=['Throwable']))], finally_block=None, label=None, resources=None) TryStatement(block=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=context, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=running, postfix_operators=[], prefix_operators=[], qualifier=listeners, selectors=[], type_arguments=None), label=None)], catches=[CatchClause(block=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=context, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=ex, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=exceptionReporters, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=null)], member=handleRunFailure, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), label=None), ThrowStatement(expression=ClassCreator(arguments=[MemberReference(member=ex, 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=IllegalStateException, sub_type=None)), label=None)], label=None, parameter=CatchClauseParameter(annotations=None, modifiers=None, name=ex, types=['Throwable']))], finally_block=None, label=None, resources=None) return[member[.context]] end[}] END[}]
Keyword[public] identifier[ConfigurableApplicationContext] identifier[run] operator[SEP] identifier[String] operator[...] identifier[args] operator[SEP] { identifier[StopWatch] identifier[stopWatch] operator[=] Keyword[new] identifier[StopWatch] operator[SEP] operator[SEP] operator[SEP] identifier[stopWatch] operator[SEP] identifier[start] operator[SEP] operator[SEP] operator[SEP] identifier[ConfigurableApplicationContext] identifier[context] operator[=] Other[null] operator[SEP] identifier[Collection] operator[<] identifier[SpringBootExceptionReporter] operator[>] identifier[exceptionReporters] operator[=] Keyword[new] identifier[ArrayList] operator[<] operator[>] operator[SEP] operator[SEP] operator[SEP] identifier[configureHeadlessProperty] operator[SEP] operator[SEP] operator[SEP] identifier[SpringApplicationRunListeners] identifier[listeners] operator[=] identifier[getRunListeners] operator[SEP] identifier[args] operator[SEP] operator[SEP] identifier[listeners] operator[SEP] identifier[starting] operator[SEP] operator[SEP] operator[SEP] Keyword[try] { identifier[ApplicationArguments] identifier[applicationArguments] operator[=] Keyword[new] identifier[DefaultApplicationArguments] operator[SEP] identifier[args] operator[SEP] operator[SEP] identifier[ConfigurableEnvironment] identifier[environment] operator[=] identifier[prepareEnvironment] operator[SEP] identifier[listeners] , identifier[applicationArguments] operator[SEP] operator[SEP] identifier[configureIgnoreBeanInfo] operator[SEP] identifier[environment] operator[SEP] operator[SEP] identifier[Banner] identifier[printedBanner] operator[=] identifier[printBanner] operator[SEP] identifier[environment] operator[SEP] operator[SEP] identifier[context] operator[=] identifier[createApplicationContext] operator[SEP] operator[SEP] operator[SEP] identifier[exceptionReporters] operator[=] identifier[getSpringFactoriesInstances] operator[SEP] identifier[SpringBootExceptionReporter] operator[SEP] Keyword[class] , Keyword[new] identifier[Class] operator[SEP] operator[SEP] { identifier[ConfigurableApplicationContext] operator[SEP] Keyword[class] } , identifier[context] operator[SEP] operator[SEP] identifier[prepareContext] operator[SEP] identifier[context] , identifier[environment] , identifier[listeners] , identifier[applicationArguments] , identifier[printedBanner] operator[SEP] operator[SEP] identifier[refreshContext] operator[SEP] identifier[context] operator[SEP] operator[SEP] identifier[afterRefresh] operator[SEP] identifier[context] , identifier[applicationArguments] operator[SEP] operator[SEP] identifier[stopWatch] operator[SEP] identifier[stop] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] Keyword[this] operator[SEP] identifier[logStartupInfo] operator[SEP] { Keyword[new] identifier[StartupInfoLogger] operator[SEP] Keyword[this] operator[SEP] identifier[mainApplicationClass] operator[SEP] operator[SEP] identifier[logStarted] operator[SEP] identifier[getApplicationLog] operator[SEP] operator[SEP] , identifier[stopWatch] operator[SEP] operator[SEP] } identifier[listeners] operator[SEP] identifier[started] operator[SEP] identifier[context] operator[SEP] operator[SEP] identifier[callRunners] operator[SEP] identifier[context] , identifier[applicationArguments] operator[SEP] operator[SEP] } Keyword[catch] operator[SEP] identifier[Throwable] identifier[ex] operator[SEP] { identifier[handleRunFailure] operator[SEP] identifier[context] , identifier[ex] , identifier[exceptionReporters] , identifier[listeners] operator[SEP] operator[SEP] Keyword[throw] Keyword[new] identifier[IllegalStateException] operator[SEP] identifier[ex] operator[SEP] operator[SEP] } Keyword[try] { identifier[listeners] operator[SEP] identifier[running] operator[SEP] identifier[context] operator[SEP] operator[SEP] } Keyword[catch] operator[SEP] identifier[Throwable] identifier[ex] operator[SEP] { identifier[handleRunFailure] operator[SEP] identifier[context] , identifier[ex] , identifier[exceptionReporters] , Other[null] operator[SEP] operator[SEP] Keyword[throw] Keyword[new] identifier[IllegalStateException] operator[SEP] identifier[ex] operator[SEP] operator[SEP] } Keyword[return] identifier[context] operator[SEP] }
protected void init(JsonParser parser) throws IOException { LoggerFactory.getLogger(getClass()).warn("init(JsonParser parser) invoked to handle field: {}", parser.getCurrentName()); }
class class_name[name] begin[{] method[init, return_type[void], modifier[protected], parameter[parser]] begin[{] call[LoggerFactory.getLogger, parameter[call[.getClass, parameter[]]]] end[}] END[}]
Keyword[protected] Keyword[void] identifier[init] operator[SEP] identifier[JsonParser] identifier[parser] operator[SEP] Keyword[throws] identifier[IOException] { identifier[LoggerFactory] operator[SEP] identifier[getLogger] operator[SEP] identifier[getClass] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[warn] operator[SEP] literal[String] , identifier[parser] operator[SEP] identifier[getCurrentName] operator[SEP] operator[SEP] operator[SEP] operator[SEP] }
@Override public DerbyDatabase setSequence(final Connection _con, final String _name, final long _value) throws SQLException { // TODO Auto-generated method stub throw new Error("not implemented"); }
class class_name[name] begin[{] method[setSequence, return_type[type[DerbyDatabase]], modifier[public], parameter[_con, _name, _value]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="not implemented")], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=Error, sub_type=None)), label=None) end[}] END[}]
annotation[@] identifier[Override] Keyword[public] identifier[DerbyDatabase] identifier[setSequence] operator[SEP] Keyword[final] identifier[Connection] identifier[_con] , Keyword[final] identifier[String] identifier[_name] , Keyword[final] Keyword[long] identifier[_value] operator[SEP] Keyword[throws] identifier[SQLException] { Keyword[throw] Keyword[new] identifier[Error] operator[SEP] literal[String] operator[SEP] operator[SEP] }
public void setRECID(Integer newRECID) { Integer oldRECID = recid; recid = newRECID; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, AfplibPackage.IMAGE_ENCODING__RECID, oldRECID, recid)); }
class class_name[name] begin[{] method[setRECID, return_type[void], modifier[public], parameter[newRECID]] begin[{] local_variable[type[Integer], oldRECID] assign[member[.recid], member[.newRECID]] 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=IMAGE_ENCODING__RECID, postfix_operators=[], prefix_operators=[], qualifier=AfplibPackage, selectors=[]), MemberReference(member=oldRECID, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=recid, 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[setRECID] operator[SEP] identifier[Integer] identifier[newRECID] operator[SEP] { identifier[Integer] identifier[oldRECID] operator[=] identifier[recid] operator[SEP] identifier[recid] operator[=] identifier[newRECID] 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[IMAGE_ENCODING__RECID] , identifier[oldRECID] , identifier[recid] operator[SEP] operator[SEP] operator[SEP] }
public void processPosition(float x, float y, float z) { GVRScene scene = context.getMainScene(); if (scene != null) { float depth = z * MAX_DEPTH; float frustumWidth, frustumHeight; // calculate the frustum using the aspect ratio and FOV // http://docs.unity3d.com/Manual/FrustumSizeAtDistance.html float aspectRatio = scene.getMainCameraRig().getCenterCamera() .getAspectRatio(); float fovY = scene.getMainCameraRig().getCenterCamera() .getFovY(); float frustumHeightMultiplier = (float) Math .tan(Math.toRadians(fovY / 2)) * 2.0f; frustumHeight = frustumHeightMultiplier * depth; frustumWidth = frustumHeight * aspectRatio; Matrix4f viewMatrix = scene.getMainCameraRig().getHeadTransform() .getModelMatrix4f(); Vector3f position = new Vector3f(frustumWidth * -x, frustumHeight * -y, depth); position.mulPoint(viewMatrix); setPosition(position.x, position.y, position.z); } }
class class_name[name] begin[{] method[processPosition, return_type[void], modifier[public], parameter[x, y, z]] begin[{] local_variable[type[GVRScene], scene] if[binary_operation[member[.scene], !=, literal[null]]] begin[{] local_variable[type[float], depth] local_variable[type[float], frustumWidth] local_variable[type[float], aspectRatio] local_variable[type[float], fovY] local_variable[type[float], frustumHeightMultiplier] assign[member[.frustumHeight], binary_operation[member[.frustumHeightMultiplier], *, member[.depth]]] assign[member[.frustumWidth], binary_operation[member[.frustumHeight], *, member[.aspectRatio]]] local_variable[type[Matrix4f], viewMatrix] local_variable[type[Vector3f], position] call[position.mulPoint, parameter[member[.viewMatrix]]] call[.setPosition, parameter[member[position.x], member[position.y], member[position.z]]] else begin[{] None end[}] end[}] END[}]
Keyword[public] Keyword[void] identifier[processPosition] operator[SEP] Keyword[float] identifier[x] , Keyword[float] identifier[y] , Keyword[float] identifier[z] operator[SEP] { identifier[GVRScene] identifier[scene] operator[=] identifier[context] operator[SEP] identifier[getMainScene] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[scene] operator[!=] Other[null] operator[SEP] { Keyword[float] identifier[depth] operator[=] identifier[z] operator[*] identifier[MAX_DEPTH] operator[SEP] Keyword[float] identifier[frustumWidth] , identifier[frustumHeight] operator[SEP] Keyword[float] identifier[aspectRatio] operator[=] identifier[scene] operator[SEP] identifier[getMainCameraRig] operator[SEP] operator[SEP] operator[SEP] identifier[getCenterCamera] operator[SEP] operator[SEP] operator[SEP] identifier[getAspectRatio] operator[SEP] operator[SEP] operator[SEP] Keyword[float] identifier[fovY] operator[=] identifier[scene] operator[SEP] identifier[getMainCameraRig] operator[SEP] operator[SEP] operator[SEP] identifier[getCenterCamera] operator[SEP] operator[SEP] operator[SEP] identifier[getFovY] operator[SEP] operator[SEP] operator[SEP] Keyword[float] identifier[frustumHeightMultiplier] operator[=] operator[SEP] Keyword[float] operator[SEP] identifier[Math] operator[SEP] identifier[tan] operator[SEP] identifier[Math] operator[SEP] identifier[toRadians] operator[SEP] identifier[fovY] operator[/] Other[2] operator[SEP] operator[SEP] operator[*] literal[Float] operator[SEP] identifier[frustumHeight] operator[=] identifier[frustumHeightMultiplier] operator[*] identifier[depth] operator[SEP] identifier[frustumWidth] operator[=] identifier[frustumHeight] operator[*] identifier[aspectRatio] operator[SEP] identifier[Matrix4f] identifier[viewMatrix] operator[=] identifier[scene] operator[SEP] identifier[getMainCameraRig] operator[SEP] operator[SEP] operator[SEP] identifier[getHeadTransform] operator[SEP] operator[SEP] operator[SEP] identifier[getModelMatrix4f] operator[SEP] operator[SEP] operator[SEP] identifier[Vector3f] identifier[position] operator[=] Keyword[new] identifier[Vector3f] operator[SEP] identifier[frustumWidth] operator[*] operator[-] identifier[x] , identifier[frustumHeight] operator[*] operator[-] identifier[y] , identifier[depth] operator[SEP] operator[SEP] identifier[position] operator[SEP] identifier[mulPoint] operator[SEP] identifier[viewMatrix] operator[SEP] operator[SEP] identifier[setPosition] operator[SEP] identifier[position] operator[SEP] identifier[x] , identifier[position] operator[SEP] identifier[y] , identifier[position] operator[SEP] identifier[z] operator[SEP] operator[SEP] } }
@SuppressWarnings("PMD.AvoidThrowingRawExceptionTypes") private T fallback(final Throwable exp) throws Exception { final Sorted<Map.Entry<FallbackFrom<T>, Integer>> candidates = new Sorted<>( Comparator.comparing(Map.Entry::getValue), new Filtered<>( entry -> new Not( new Equals<>( entry::getValue, () -> Integer.MIN_VALUE ) ).value(), new MapOf<>( fbk -> fbk, fbk -> fbk.support(exp.getClass()), this.fallbacks ).entrySet().iterator() ) ); if (candidates.hasNext()) { return candidates.next().getKey().apply(exp); } else { throw new Exception( "No fallback found - throw the original exception", exp ); } }
class class_name[name] begin[{] method[fallback, return_type[type[T]], modifier[private], parameter[exp]] begin[{] local_variable[type[Sorted], candidates] if[call[candidates.hasNext, parameter[]]] begin[{] return[call[candidates.next, parameter[]]] else begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="No fallback found - throw the original exception"), MemberReference(member=exp, 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=Exception, sub_type=None)), label=None) end[}] end[}] END[}]
annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] Keyword[private] identifier[T] identifier[fallback] operator[SEP] Keyword[final] identifier[Throwable] identifier[exp] operator[SEP] Keyword[throws] identifier[Exception] { Keyword[final] identifier[Sorted] operator[<] identifier[Map] operator[SEP] identifier[Entry] operator[<] identifier[FallbackFrom] operator[<] identifier[T] operator[>] , identifier[Integer] operator[>] operator[>] identifier[candidates] operator[=] Keyword[new] identifier[Sorted] operator[<] operator[>] operator[SEP] identifier[Comparator] operator[SEP] identifier[comparing] operator[SEP] identifier[Map] operator[SEP] identifier[Entry] operator[::] identifier[getValue] operator[SEP] , Keyword[new] identifier[Filtered] operator[<] operator[>] operator[SEP] identifier[entry] operator[->] Keyword[new] identifier[Not] operator[SEP] Keyword[new] identifier[Equals] operator[<] operator[>] operator[SEP] identifier[entry] operator[::] identifier[getValue] , operator[SEP] operator[SEP] operator[->] identifier[Integer] operator[SEP] identifier[MIN_VALUE] operator[SEP] operator[SEP] operator[SEP] identifier[value] operator[SEP] operator[SEP] , Keyword[new] identifier[MapOf] operator[<] operator[>] operator[SEP] identifier[fbk] operator[->] identifier[fbk] , identifier[fbk] operator[->] identifier[fbk] operator[SEP] identifier[support] operator[SEP] identifier[exp] operator[SEP] identifier[getClass] operator[SEP] operator[SEP] operator[SEP] , Keyword[this] operator[SEP] identifier[fallbacks] operator[SEP] operator[SEP] identifier[entrySet] operator[SEP] operator[SEP] operator[SEP] identifier[iterator] operator[SEP] operator[SEP] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[candidates] operator[SEP] identifier[hasNext] operator[SEP] operator[SEP] operator[SEP] { Keyword[return] identifier[candidates] operator[SEP] identifier[next] operator[SEP] operator[SEP] operator[SEP] identifier[getKey] operator[SEP] operator[SEP] operator[SEP] identifier[apply] operator[SEP] identifier[exp] operator[SEP] operator[SEP] } Keyword[else] { Keyword[throw] Keyword[new] identifier[Exception] operator[SEP] literal[String] , identifier[exp] operator[SEP] operator[SEP] } }
public Object getAttribute(ObjectName name, String attributeName) throws Exception { checkClientConnected(); return mbeanConn.getAttribute(name, attributeName); }
class class_name[name] begin[{] method[getAttribute, return_type[type[Object]], modifier[public], parameter[name, attributeName]] begin[{] call[.checkClientConnected, parameter[]] return[call[mbeanConn.getAttribute, parameter[member[.name], member[.attributeName]]]] end[}] END[}]
Keyword[public] identifier[Object] identifier[getAttribute] operator[SEP] identifier[ObjectName] identifier[name] , identifier[String] identifier[attributeName] operator[SEP] Keyword[throws] identifier[Exception] { identifier[checkClientConnected] operator[SEP] operator[SEP] operator[SEP] Keyword[return] identifier[mbeanConn] operator[SEP] identifier[getAttribute] operator[SEP] identifier[name] , identifier[attributeName] operator[SEP] operator[SEP] }
public static <A, B, R> Stream<R> parallelZip(final Stream<A> a, final Stream<B> b, final BiFunction<? super A, ? super B, R> zipFunction) { return parallelZip(a, b, zipFunction, DEFAULT_QUEUE_SIZE_PER_ITERATOR); }
class class_name[name] begin[{] method[parallelZip, return_type[type[Stream]], modifier[public static], parameter[a, b, zipFunction]] begin[{] return[call[.parallelZip, parameter[member[.a], member[.b], member[.zipFunction], member[.DEFAULT_QUEUE_SIZE_PER_ITERATOR]]]] end[}] END[}]
Keyword[public] Keyword[static] operator[<] identifier[A] , identifier[B] , identifier[R] operator[>] identifier[Stream] operator[<] identifier[R] operator[>] identifier[parallelZip] operator[SEP] Keyword[final] identifier[Stream] operator[<] identifier[A] operator[>] identifier[a] , Keyword[final] identifier[Stream] operator[<] identifier[B] operator[>] identifier[b] , Keyword[final] identifier[BiFunction] operator[<] operator[?] Keyword[super] identifier[A] , operator[?] Keyword[super] identifier[B] , identifier[R] operator[>] identifier[zipFunction] operator[SEP] { Keyword[return] identifier[parallelZip] operator[SEP] identifier[a] , identifier[b] , identifier[zipFunction] , identifier[DEFAULT_QUEUE_SIZE_PER_ITERATOR] operator[SEP] operator[SEP] }
@Override public XlsWorksheet getSheet(int i) { XlsWorksheet ret = null; if(workbook != null) ret = new XlsWorksheet(workbook.getSheet(i)); else if(writableWorkbook != null) ret = new XlsWorksheet(writableWorkbook.getSheet(i)); return ret; }
class class_name[name] begin[{] method[getSheet, return_type[type[XlsWorksheet]], modifier[public], parameter[i]] begin[{] local_variable[type[XlsWorksheet], ret] if[binary_operation[member[.workbook], !=, literal[null]]] begin[{] assign[member[.ret], ClassCreator(arguments=[MethodInvocation(arguments=[MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=getSheet, postfix_operators=[], prefix_operators=[], qualifier=workbook, selectors=[], type_arguments=None)], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=XlsWorksheet, sub_type=None))] else begin[{] if[binary_operation[member[.writableWorkbook], !=, literal[null]]] begin[{] assign[member[.ret], ClassCreator(arguments=[MethodInvocation(arguments=[MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=getSheet, postfix_operators=[], prefix_operators=[], qualifier=writableWorkbook, selectors=[], type_arguments=None)], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=XlsWorksheet, sub_type=None))] else begin[{] None end[}] end[}] return[member[.ret]] end[}] END[}]
annotation[@] identifier[Override] Keyword[public] identifier[XlsWorksheet] identifier[getSheet] operator[SEP] Keyword[int] identifier[i] operator[SEP] { identifier[XlsWorksheet] identifier[ret] operator[=] Other[null] operator[SEP] Keyword[if] operator[SEP] identifier[workbook] operator[!=] Other[null] operator[SEP] identifier[ret] operator[=] Keyword[new] identifier[XlsWorksheet] operator[SEP] identifier[workbook] operator[SEP] identifier[getSheet] operator[SEP] identifier[i] operator[SEP] operator[SEP] operator[SEP] Keyword[else] Keyword[if] operator[SEP] identifier[writableWorkbook] operator[!=] Other[null] operator[SEP] identifier[ret] operator[=] Keyword[new] identifier[XlsWorksheet] operator[SEP] identifier[writableWorkbook] operator[SEP] identifier[getSheet] operator[SEP] identifier[i] operator[SEP] operator[SEP] operator[SEP] Keyword[return] identifier[ret] operator[SEP] }
public static String decrypt(String str, Key decrypting_key) { try { // Decode on base 64 final byte[] inputBytes = Base64.getDecoder().decode(str); // Decode final byte[] outputBytes = decrypt(inputBytes, decrypting_key); return new String(outputBytes, "UTF8"); //$NON-NLS-1$ } catch (Exception e) { return ""; //$NON-NLS-1$ } }
class class_name[name] begin[{] method[decrypt, return_type[type[String]], modifier[public static], parameter[str, decrypting_key]] begin[{] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[], member=getDecoder, postfix_operators=[], prefix_operators=[], qualifier=Base64, selectors=[MethodInvocation(arguments=[MemberReference(member=str, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=decode, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)], type_arguments=None), name=inputBytes)], modifiers={'final'}, type=BasicType(dimensions=[None], name=byte)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberReference(member=inputBytes, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=decrypting_key, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=decrypt, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), name=outputBytes)], modifiers={'final'}, type=BasicType(dimensions=[None], name=byte)), ReturnStatement(expression=ClassCreator(arguments=[MemberReference(member=outputBytes, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="UTF8")], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=String, sub_type=None)), label=None)], catches=[CatchClause(block=[ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=""), 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[static] identifier[String] identifier[decrypt] operator[SEP] identifier[String] identifier[str] , identifier[Key] identifier[decrypting_key] operator[SEP] { Keyword[try] { Keyword[final] Keyword[byte] operator[SEP] operator[SEP] identifier[inputBytes] operator[=] identifier[Base64] operator[SEP] identifier[getDecoder] operator[SEP] operator[SEP] operator[SEP] identifier[decode] operator[SEP] identifier[str] operator[SEP] operator[SEP] Keyword[final] Keyword[byte] operator[SEP] operator[SEP] identifier[outputBytes] operator[=] identifier[decrypt] operator[SEP] identifier[inputBytes] , identifier[decrypting_key] operator[SEP] operator[SEP] Keyword[return] Keyword[new] identifier[String] operator[SEP] identifier[outputBytes] , literal[String] operator[SEP] operator[SEP] } Keyword[catch] operator[SEP] identifier[Exception] identifier[e] operator[SEP] { Keyword[return] literal[String] operator[SEP] } }
public static Map<String, Object> read(Object object) { PropertyDescriptor[] descriptors; Class<?> clazz = object.getClass(); try { descriptors = getPropertyDescriptors(clazz); } catch (IntrospectionException e) { LOG.error("Failed to introspect " + clazz, e); return Collections.emptyMap(); } HashMap<String, Object> map = new HashMap<>(descriptors.length); for (PropertyDescriptor pd : descriptors) { try { Object value = pd.getReadMethod().invoke(object); map.put(pd.getName(), value); } catch (IllegalAccessException | InvocationTargetException | IllegalArgumentException e) { LOG.error("Failed to visit property " + pd.getName(), e); } } map.remove("class"); return map; }
class class_name[name] begin[{] method[read, return_type[type[Map]], modifier[public static], parameter[object]] begin[{] local_variable[type[PropertyDescriptor], descriptors] local_variable[type[Class], clazz] TryStatement(block=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=descriptors, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MethodInvocation(arguments=[MemberReference(member=clazz, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=getPropertyDescriptors, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None)), label=None)], catches=[CatchClause(block=[StatementExpression(expression=MethodInvocation(arguments=[BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="Failed to introspect "), operandr=MemberReference(member=clazz, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=+), MemberReference(member=e, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=error, postfix_operators=[], prefix_operators=[], qualifier=LOG, selectors=[], type_arguments=None), label=None), ReturnStatement(expression=MethodInvocation(arguments=[], member=emptyMap, postfix_operators=[], prefix_operators=[], qualifier=Collections, selectors=[], type_arguments=None), label=None)], label=None, parameter=CatchClauseParameter(annotations=None, modifiers=None, name=e, types=['IntrospectionException']))], finally_block=None, label=None, resources=None) local_variable[type[HashMap], map] ForStatement(body=BlockStatement(label=None, statements=[TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[], member=getReadMethod, postfix_operators=[], prefix_operators=[], qualifier=pd, selectors=[MethodInvocation(arguments=[MemberReference(member=object, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=invoke, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)], type_arguments=None), name=value)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=Object, sub_type=None)), StatementExpression(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[], member=getName, postfix_operators=[], prefix_operators=[], qualifier=pd, selectors=[], type_arguments=None), MemberReference(member=value, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=put, postfix_operators=[], prefix_operators=[], qualifier=map, selectors=[], type_arguments=None), label=None)], catches=[CatchClause(block=[StatementExpression(expression=MethodInvocation(arguments=[BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="Failed to visit property "), operandr=MethodInvocation(arguments=[], member=getName, postfix_operators=[], prefix_operators=[], qualifier=pd, selectors=[], type_arguments=None), operator=+), MemberReference(member=e, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=error, postfix_operators=[], prefix_operators=[], qualifier=LOG, selectors=[], type_arguments=None), label=None)], label=None, parameter=CatchClauseParameter(annotations=None, modifiers=None, name=e, types=['IllegalAccessException', 'InvocationTargetException', 'IllegalArgumentException']))], finally_block=None, label=None, resources=None)]), control=EnhancedForControl(iterable=MemberReference(member=descriptors, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), var=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=None, name=pd)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=PropertyDescriptor, sub_type=None))), label=None) call[map.remove, parameter[literal["class"]]] return[member[.map]] end[}] END[}]
Keyword[public] Keyword[static] identifier[Map] operator[<] identifier[String] , identifier[Object] operator[>] identifier[read] operator[SEP] identifier[Object] identifier[object] operator[SEP] { identifier[PropertyDescriptor] operator[SEP] operator[SEP] identifier[descriptors] operator[SEP] identifier[Class] operator[<] operator[?] operator[>] identifier[clazz] operator[=] identifier[object] operator[SEP] identifier[getClass] operator[SEP] operator[SEP] operator[SEP] Keyword[try] { identifier[descriptors] operator[=] identifier[getPropertyDescriptors] operator[SEP] identifier[clazz] operator[SEP] operator[SEP] } Keyword[catch] operator[SEP] identifier[IntrospectionException] identifier[e] operator[SEP] { identifier[LOG] operator[SEP] identifier[error] operator[SEP] literal[String] operator[+] identifier[clazz] , identifier[e] operator[SEP] operator[SEP] Keyword[return] identifier[Collections] operator[SEP] identifier[emptyMap] operator[SEP] operator[SEP] operator[SEP] } identifier[HashMap] operator[<] identifier[String] , identifier[Object] operator[>] identifier[map] operator[=] Keyword[new] identifier[HashMap] operator[<] operator[>] operator[SEP] identifier[descriptors] operator[SEP] identifier[length] operator[SEP] operator[SEP] Keyword[for] operator[SEP] identifier[PropertyDescriptor] identifier[pd] operator[:] identifier[descriptors] operator[SEP] { Keyword[try] { identifier[Object] identifier[value] operator[=] identifier[pd] operator[SEP] identifier[getReadMethod] operator[SEP] operator[SEP] operator[SEP] identifier[invoke] operator[SEP] identifier[object] operator[SEP] operator[SEP] identifier[map] operator[SEP] identifier[put] operator[SEP] identifier[pd] operator[SEP] identifier[getName] operator[SEP] operator[SEP] , identifier[value] operator[SEP] operator[SEP] } Keyword[catch] operator[SEP] identifier[IllegalAccessException] operator[|] identifier[InvocationTargetException] operator[|] identifier[IllegalArgumentException] identifier[e] operator[SEP] { identifier[LOG] operator[SEP] identifier[error] operator[SEP] literal[String] operator[+] identifier[pd] operator[SEP] identifier[getName] operator[SEP] operator[SEP] , identifier[e] operator[SEP] operator[SEP] } } identifier[map] operator[SEP] identifier[remove] operator[SEP] literal[String] operator[SEP] operator[SEP] Keyword[return] identifier[map] operator[SEP] }
public Reference createReference(Reference reference) throws GreenPepperServerException { String projectName = reference.getSystemUnderTest().getProject().getName(); String reqRepoUid = reference.getRequirement().getRepository().getUid(); String requirementName = reference.getRequirement().getName(); String testName = reference.getSpecification().getName(); String testRepoUid = reference.getSpecification().getRepository().getUid(); String sutName = reference.getSystemUnderTest().getName(); String sections = reference.getSections(); Requirement requirement = getOrCreateRequirement(reqRepoUid, requirementName); checkDuplicatedReference(requirement, testName, testRepoUid, sutName, sections); Specification specification = getOrCreateSpecification(sutName, testRepoUid, testName); SystemUnderTest sut = systemUnderTestDao.getByName(projectName, sutName); reference = Reference.newInstance(requirement, specification, sut, sections); sessionService.getSession().save(reference); return reference; }
class class_name[name] begin[{] method[createReference, return_type[type[Reference]], modifier[public], parameter[reference]] begin[{] local_variable[type[String], projectName] local_variable[type[String], reqRepoUid] local_variable[type[String], requirementName] local_variable[type[String], testName] local_variable[type[String], testRepoUid] local_variable[type[String], sutName] local_variable[type[String], sections] local_variable[type[Requirement], requirement] call[.checkDuplicatedReference, parameter[member[.requirement], member[.testName], member[.testRepoUid], member[.sutName], member[.sections]]] local_variable[type[Specification], specification] local_variable[type[SystemUnderTest], sut] assign[member[.reference], call[Reference.newInstance, parameter[member[.requirement], member[.specification], member[.sut], member[.sections]]]] call[sessionService.getSession, parameter[]] return[member[.reference]] end[}] END[}]
Keyword[public] identifier[Reference] identifier[createReference] operator[SEP] identifier[Reference] identifier[reference] operator[SEP] Keyword[throws] identifier[GreenPepperServerException] { identifier[String] identifier[projectName] operator[=] identifier[reference] operator[SEP] identifier[getSystemUnderTest] operator[SEP] operator[SEP] operator[SEP] identifier[getProject] operator[SEP] operator[SEP] operator[SEP] identifier[getName] operator[SEP] operator[SEP] operator[SEP] identifier[String] identifier[reqRepoUid] operator[=] identifier[reference] operator[SEP] identifier[getRequirement] operator[SEP] operator[SEP] operator[SEP] identifier[getRepository] operator[SEP] operator[SEP] operator[SEP] identifier[getUid] operator[SEP] operator[SEP] operator[SEP] identifier[String] identifier[requirementName] operator[=] identifier[reference] operator[SEP] identifier[getRequirement] operator[SEP] operator[SEP] operator[SEP] identifier[getName] operator[SEP] operator[SEP] operator[SEP] identifier[String] identifier[testName] operator[=] identifier[reference] operator[SEP] identifier[getSpecification] operator[SEP] operator[SEP] operator[SEP] identifier[getName] operator[SEP] operator[SEP] operator[SEP] identifier[String] identifier[testRepoUid] operator[=] identifier[reference] operator[SEP] identifier[getSpecification] operator[SEP] operator[SEP] operator[SEP] identifier[getRepository] operator[SEP] operator[SEP] operator[SEP] identifier[getUid] operator[SEP] operator[SEP] operator[SEP] identifier[String] identifier[sutName] operator[=] identifier[reference] operator[SEP] identifier[getSystemUnderTest] operator[SEP] operator[SEP] operator[SEP] identifier[getName] operator[SEP] operator[SEP] operator[SEP] identifier[String] identifier[sections] operator[=] identifier[reference] operator[SEP] identifier[getSections] operator[SEP] operator[SEP] operator[SEP] identifier[Requirement] identifier[requirement] operator[=] identifier[getOrCreateRequirement] operator[SEP] identifier[reqRepoUid] , identifier[requirementName] operator[SEP] operator[SEP] identifier[checkDuplicatedReference] operator[SEP] identifier[requirement] , identifier[testName] , identifier[testRepoUid] , identifier[sutName] , identifier[sections] operator[SEP] operator[SEP] identifier[Specification] identifier[specification] operator[=] identifier[getOrCreateSpecification] operator[SEP] identifier[sutName] , identifier[testRepoUid] , identifier[testName] operator[SEP] operator[SEP] identifier[SystemUnderTest] identifier[sut] operator[=] identifier[systemUnderTestDao] operator[SEP] identifier[getByName] operator[SEP] identifier[projectName] , identifier[sutName] operator[SEP] operator[SEP] identifier[reference] operator[=] identifier[Reference] operator[SEP] identifier[newInstance] operator[SEP] identifier[requirement] , identifier[specification] , identifier[sut] , identifier[sections] operator[SEP] operator[SEP] identifier[sessionService] operator[SEP] identifier[getSession] operator[SEP] operator[SEP] operator[SEP] identifier[save] operator[SEP] identifier[reference] operator[SEP] operator[SEP] Keyword[return] identifier[reference] operator[SEP] }
public void setVideoPosition(com.google.api.ads.admanager.axis.v201808.VideoPosition videoPosition) { this.videoPosition = videoPosition; }
class class_name[name] begin[{] method[setVideoPosition, return_type[void], modifier[public], parameter[videoPosition]] begin[{] assign[THIS[member[None.videoPosition]], member[.videoPosition]] end[}] END[}]
Keyword[public] Keyword[void] identifier[setVideoPosition] 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[v201808] operator[SEP] identifier[VideoPosition] identifier[videoPosition] operator[SEP] { Keyword[this] operator[SEP] identifier[videoPosition] operator[=] identifier[videoPosition] operator[SEP] }
public Type resolveType(TypeVariable<?> variable) { Type resolvedType = this.resolvedTypeVariables.get(variable); if (resolvedType == null) { return variable; // we are not able to resolve } return resolvedType; }
class class_name[name] begin[{] method[resolveType, return_type[type[Type]], modifier[public], parameter[variable]] begin[{] local_variable[type[Type], resolvedType] if[binary_operation[member[.resolvedType], ==, literal[null]]] begin[{] return[member[.variable]] else begin[{] None end[}] return[member[.resolvedType]] end[}] END[}]
Keyword[public] identifier[Type] identifier[resolveType] operator[SEP] identifier[TypeVariable] operator[<] operator[?] operator[>] identifier[variable] operator[SEP] { identifier[Type] identifier[resolvedType] operator[=] Keyword[this] operator[SEP] identifier[resolvedTypeVariables] operator[SEP] identifier[get] operator[SEP] identifier[variable] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[resolvedType] operator[==] Other[null] operator[SEP] { Keyword[return] identifier[variable] operator[SEP] } Keyword[return] identifier[resolvedType] operator[SEP] }
<T extends JCTree> List<Type> classEnter(List<T> trees, Env<AttrContext> env) { ListBuffer<Type> ts = new ListBuffer<>(); for (List<T> l = trees; l.nonEmpty(); l = l.tail) { Type t = classEnter(l.head, env); if (t != null) ts.append(t); } return ts.toList(); }
class class_name[name] begin[{] method[classEnter, return_type[type[List]], modifier[default], parameter[trees, env]] begin[{] local_variable[type[ListBuffer], ts] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberReference(member=head, postfix_operators=[], prefix_operators=[], qualifier=l, selectors=[]), MemberReference(member=env, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=classEnter, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), name=t)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=Type, sub_type=None)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=t, 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=StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=t, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=append, postfix_operators=[], prefix_operators=[], qualifier=ts, selectors=[], type_arguments=None), label=None))]), control=ForControl(condition=MethodInvocation(arguments=[], member=nonEmpty, postfix_operators=[], prefix_operators=[], qualifier=l, selectors=[], type_arguments=None), init=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=MemberReference(member=trees, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), name=l)], modifiers=set(), type=ReferenceType(arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=T, sub_type=None))], dimensions=[], name=List, sub_type=None)), update=[Assignment(expressionl=MemberReference(member=l, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MemberReference(member=tail, postfix_operators=[], prefix_operators=[], qualifier=l, selectors=[]))]), label=None) return[call[ts.toList, parameter[]]] end[}] END[}]
operator[<] identifier[T] Keyword[extends] identifier[JCTree] operator[>] identifier[List] operator[<] identifier[Type] operator[>] identifier[classEnter] operator[SEP] identifier[List] operator[<] identifier[T] operator[>] identifier[trees] , identifier[Env] operator[<] identifier[AttrContext] operator[>] identifier[env] operator[SEP] { identifier[ListBuffer] operator[<] identifier[Type] operator[>] identifier[ts] operator[=] Keyword[new] identifier[ListBuffer] operator[<] operator[>] operator[SEP] operator[SEP] operator[SEP] Keyword[for] operator[SEP] identifier[List] operator[<] identifier[T] operator[>] identifier[l] operator[=] identifier[trees] operator[SEP] identifier[l] operator[SEP] identifier[nonEmpty] operator[SEP] operator[SEP] operator[SEP] identifier[l] operator[=] identifier[l] operator[SEP] identifier[tail] operator[SEP] { identifier[Type] identifier[t] operator[=] identifier[classEnter] operator[SEP] identifier[l] operator[SEP] identifier[head] , identifier[env] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[t] operator[!=] Other[null] operator[SEP] identifier[ts] operator[SEP] identifier[append] operator[SEP] identifier[t] operator[SEP] operator[SEP] } Keyword[return] identifier[ts] operator[SEP] identifier[toList] operator[SEP] operator[SEP] operator[SEP] }
protected void init() { addPropertyChangeListener(ENABLED_PROPERTY, new PropertyChangeListener() { public void propertyChange(PropertyChangeEvent evt) { validatingUpdated(); } }); validationResultsModel.addPropertyChangeListener(ValidationResultsModel.HAS_ERRORS_PROPERTY, childStateChangeHandler); }
class class_name[name] begin[{] method[init, return_type[void], modifier[protected], parameter[]] begin[{] call[.addPropertyChangeListener, parameter[member[.ENABLED_PROPERTY], ClassCreator(arguments=[], body=[MethodDeclaration(annotations=[], body=[StatementExpression(expression=MethodInvocation(arguments=[], member=validatingUpdated, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), label=None)], documentation=None, modifiers={'public'}, name=propertyChange, parameters=[FormalParameter(annotations=[], modifiers=set(), name=evt, type=ReferenceType(arguments=None, dimensions=[], name=PropertyChangeEvent, sub_type=None), varargs=False)], 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=PropertyChangeListener, sub_type=None))]] call[validationResultsModel.addPropertyChangeListener, parameter[member[ValidationResultsModel.HAS_ERRORS_PROPERTY], member[.childStateChangeHandler]]] end[}] END[}]
Keyword[protected] Keyword[void] identifier[init] operator[SEP] operator[SEP] { identifier[addPropertyChangeListener] operator[SEP] identifier[ENABLED_PROPERTY] , Keyword[new] identifier[PropertyChangeListener] operator[SEP] operator[SEP] { Keyword[public] Keyword[void] identifier[propertyChange] operator[SEP] identifier[PropertyChangeEvent] identifier[evt] operator[SEP] { identifier[validatingUpdated] operator[SEP] operator[SEP] operator[SEP] } } operator[SEP] operator[SEP] identifier[validationResultsModel] operator[SEP] identifier[addPropertyChangeListener] operator[SEP] identifier[ValidationResultsModel] operator[SEP] identifier[HAS_ERRORS_PROPERTY] , identifier[childStateChangeHandler] operator[SEP] operator[SEP] }
public Object executeCommandOnCoordinator(RemoteCommand command, boolean synchronous, Serializable... args) throws RPCException, SecurityException { return executeCommand(command, args); }
class class_name[name] begin[{] method[executeCommandOnCoordinator, return_type[type[Object]], modifier[public], parameter[command, synchronous, args]] begin[{] return[call[.executeCommand, parameter[member[.command], member[.args]]]] end[}] END[}]
Keyword[public] identifier[Object] identifier[executeCommandOnCoordinator] operator[SEP] identifier[RemoteCommand] identifier[command] , Keyword[boolean] identifier[synchronous] , identifier[Serializable] operator[...] identifier[args] operator[SEP] Keyword[throws] identifier[RPCException] , identifier[SecurityException] { Keyword[return] identifier[executeCommand] operator[SEP] identifier[command] , identifier[args] operator[SEP] operator[SEP] }
public static <K, V> EntryStream<K, V> of(Stream<? extends Entry<K, V>> stream) { if (stream instanceof AbstractStreamEx) { @SuppressWarnings("unchecked") AbstractStreamEx<Entry<K, V>, ?> ase = (AbstractStreamEx<Entry<K, V>, ?>) stream; if (ase.spliterator != null) return new EntryStream<>(ase.spliterator(), ase.context); return new EntryStream<>(ase.stream(), ase.context); } return new EntryStream<>(stream, StreamContext.of(stream)); }
class class_name[name] begin[{] method[of, return_type[type[EntryStream]], modifier[public static], parameter[stream]] begin[{] if[binary_operation[member[.stream], instanceof, type[AbstractStreamEx]]] begin[{] local_variable[type[AbstractStreamEx], ase] if[binary_operation[member[ase.spliterator], !=, literal[null]]] begin[{] return[ClassCreator(arguments=[MethodInvocation(arguments=[], member=spliterator, postfix_operators=[], prefix_operators=[], qualifier=ase, selectors=[], type_arguments=None), MemberReference(member=context, postfix_operators=[], prefix_operators=[], qualifier=ase, selectors=[])], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=[], dimensions=None, name=EntryStream, sub_type=None))] else begin[{] None end[}] return[ClassCreator(arguments=[MethodInvocation(arguments=[], member=stream, postfix_operators=[], prefix_operators=[], qualifier=ase, selectors=[], type_arguments=None), MemberReference(member=context, postfix_operators=[], prefix_operators=[], qualifier=ase, selectors=[])], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=[], dimensions=None, name=EntryStream, sub_type=None))] else begin[{] None end[}] return[ClassCreator(arguments=[MemberReference(member=stream, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MethodInvocation(arguments=[MemberReference(member=stream, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=of, postfix_operators=[], prefix_operators=[], qualifier=StreamContext, selectors=[], type_arguments=None)], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=[], dimensions=None, name=EntryStream, sub_type=None))] end[}] END[}]
Keyword[public] Keyword[static] operator[<] identifier[K] , identifier[V] operator[>] identifier[EntryStream] operator[<] identifier[K] , identifier[V] operator[>] identifier[of] operator[SEP] identifier[Stream] operator[<] operator[?] Keyword[extends] identifier[Entry] operator[<] identifier[K] , identifier[V] operator[>] operator[>] identifier[stream] operator[SEP] { Keyword[if] operator[SEP] identifier[stream] Keyword[instanceof] identifier[AbstractStreamEx] operator[SEP] { annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] identifier[AbstractStreamEx] operator[<] identifier[Entry] operator[<] identifier[K] , identifier[V] operator[>] , operator[?] operator[>] identifier[ase] operator[=] operator[SEP] identifier[AbstractStreamEx] operator[<] identifier[Entry] operator[<] identifier[K] , identifier[V] operator[>] , operator[?] operator[>] operator[SEP] identifier[stream] operator[SEP] Keyword[if] operator[SEP] identifier[ase] operator[SEP] identifier[spliterator] operator[!=] Other[null] operator[SEP] Keyword[return] Keyword[new] identifier[EntryStream] operator[<] operator[>] operator[SEP] identifier[ase] operator[SEP] identifier[spliterator] operator[SEP] operator[SEP] , identifier[ase] operator[SEP] identifier[context] operator[SEP] operator[SEP] Keyword[return] Keyword[new] identifier[EntryStream] operator[<] operator[>] operator[SEP] identifier[ase] operator[SEP] identifier[stream] operator[SEP] operator[SEP] , identifier[ase] operator[SEP] identifier[context] operator[SEP] operator[SEP] } Keyword[return] Keyword[new] identifier[EntryStream] operator[<] operator[>] operator[SEP] identifier[stream] , identifier[StreamContext] operator[SEP] identifier[of] operator[SEP] identifier[stream] operator[SEP] operator[SEP] operator[SEP] }
static Object[] copyAsObjectArray(Object[] elements, int offset, int length) { checkPositionIndexes(offset, offset + length, elements.length); if (length == 0) { return new Object[0]; } Object[] result = new Object[length]; System.arraycopy(elements, offset, result, 0, length); return result; }
class class_name[name] begin[{] method[copyAsObjectArray, return_type[type[Object]], modifier[static], parameter[elements, offset, length]] begin[{] call[.checkPositionIndexes, parameter[member[.offset], binary_operation[member[.offset], +, member[.length]], member[elements.length]]] if[binary_operation[member[.length], ==, literal[0]]] begin[{] return[ArrayCreator(dimensions=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0)], initializer=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=Object, sub_type=None))] else begin[{] None end[}] local_variable[type[Object], result] call[System.arraycopy, parameter[member[.elements], member[.offset], member[.result], literal[0], member[.length]]] return[member[.result]] end[}] END[}]
Keyword[static] identifier[Object] operator[SEP] operator[SEP] identifier[copyAsObjectArray] operator[SEP] identifier[Object] operator[SEP] operator[SEP] identifier[elements] , Keyword[int] identifier[offset] , Keyword[int] identifier[length] operator[SEP] { identifier[checkPositionIndexes] operator[SEP] identifier[offset] , identifier[offset] operator[+] identifier[length] , identifier[elements] operator[SEP] identifier[length] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[length] operator[==] Other[0] operator[SEP] { Keyword[return] Keyword[new] identifier[Object] operator[SEP] Other[0] operator[SEP] operator[SEP] } identifier[Object] operator[SEP] operator[SEP] identifier[result] operator[=] Keyword[new] identifier[Object] operator[SEP] identifier[length] operator[SEP] operator[SEP] identifier[System] operator[SEP] identifier[arraycopy] operator[SEP] identifier[elements] , identifier[offset] , identifier[result] , Other[0] , identifier[length] operator[SEP] operator[SEP] Keyword[return] identifier[result] operator[SEP] }
public static void prune(int[] Lpend, int[] Pinv, int k, int pivrow, double[] LU, int[] Uip, int Uip_offset, int[] Lip, int Lip_offset, int[] Ulen, int Ulen_offset, int[] Llen, int Llen_offset) { double x ; double[] Lx ; /*int[]*/double[] Li, Ui ; int p, i, j, p2, phead, ptail ; int[] llen = new int[1] ; int[] ulen = new int[1] ; int[] Li_offset = new int [1] ; int[] Lx_offset = new int [1] ; int[] Ui_offset = new int [1] ; int[] Ux_offset = new int [1] ; /* check to see if any column of L can be pruned */ Ui = GET_POINTER (LU, Uip, Uip_offset, Ulen, Ulen_offset, Ui_offset, Ux_offset, k, ulen) ; for (p = 0 ; p < ulen[0] ; p++) { j = (int) Ui [Ui_offset[0] + p] ; ASSERT (j < k) ; PRINTF ("%d is pruned: %d. Lpend[j] %d Lip[j+1] %d\n", j, Lpend [j] != EMPTY ? 1 : 0, Lpend [j], Lip [Lip_offset + j+1]) ; if (Lpend [j] == EMPTY) { /* scan column j of L for the pivot row */ Li = Lx = GET_POINTER (LU, Lip, Lip_offset, Llen, Llen_offset, Li_offset, Lx_offset, j, llen) ; for (p2 = 0 ; p2 < llen[0] ; p2++) { if (pivrow == Li [Li_offset[0] + p2]) { /* found it! This column can be pruned */ if (!NDEBUG) { PRINTF ("==== PRUNE: col j %d of L\n", j) ; { int p3 ; for (p3 = 0 ; p3 < Llen [Llen_offset + j] ; p3++) { PRINTF ("before: %d pivotal: %d\n", (int) Li [Li_offset[0] + p3], Pinv [(int) Li [Li_offset[0] + p3]] >= 0 ? 1 : 0) ; } } } /* partition column j of L. The unit diagonal of L * is not stored in the column of L. */ phead = 0 ; ptail = Llen [Llen_offset + j] ; while (phead < ptail) { i = (int) Li [Li_offset[0] + phead] ; if (Pinv [i] >= 0) { /* leave at the head */ phead++ ; } else { /* swap with the tail */ ptail-- ; Li [Li_offset[0] + phead] = Li [Li_offset[0] + ptail] ; Li [Li_offset[0] + ptail] = i ; x = Lx [Lx_offset[0] + phead] ; Lx [Lx_offset[0] + phead] = Lx [Lx_offset[0] + ptail] ; Lx [Lx_offset[0] + ptail] = x ; } } /* set Lpend to one past the last entry in the * first part of the column of L. Entries in * Li [0 ... Lpend [j]-1] are the only part of * column j of L that needs to be scanned in the DFS. * Lpend [j] was EMPTY; setting it >= 0 also flags * column j as pruned. */ Lpend [j] = ptail ; if (!NDEBUG) { int p3 ; for (p3 = 0 ; p3 < Llen [Llen_offset + j] ; p3++) { if (p3 == Lpend [j]) PRINTF (("----\n")) ; PRINTF ("after: %d pivotal: %d\n", (int) Li [Li_offset[0] + p3], Pinv [(int) Li [Li_offset[0] + p3]] >= 0 ? 1 : 0) ; } } break ; } } } } }
class class_name[name] begin[{] method[prune, return_type[void], modifier[public static], parameter[Lpend, Pinv, k, pivrow, LU, Uip, Uip_offset, Lip, Lip_offset, Ulen, Ulen_offset, Llen, Llen_offset]] begin[{] local_variable[type[double], x] local_variable[type[double], Lx] local_variable[type[double], Li] local_variable[type[int], p] local_variable[type[int], llen] local_variable[type[int], ulen] local_variable[type[int], Li_offset] local_variable[type[int], Lx_offset] local_variable[type[int], Ui_offset] local_variable[type[int], Ux_offset] assign[member[.Ui], call[.GET_POINTER, parameter[member[.LU], member[.Uip], member[.Uip_offset], member[.Ulen], member[.Ulen_offset], member[.Ui_offset], member[.Ux_offset], member[.k], member[.ulen]]]] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=j, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=Cast(expression=MemberReference(member=Ui, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=BinaryOperation(operandl=MemberReference(member=Ui_offset, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0))]), operandr=MemberReference(member=p, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=+))]), type=BasicType(dimensions=[], name=int))), label=None), StatementExpression(expression=MethodInvocation(arguments=[BinaryOperation(operandl=MemberReference(member=j, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=k, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=<)], member=ASSERT, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="%d is pruned: %d. Lpend[j] %d Lip[j+1] %d\n"), MemberReference(member=j, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), TernaryExpression(condition=BinaryOperation(operandl=MemberReference(member=Lpend, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=MemberReference(member=j, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]))]), operandr=MemberReference(member=EMPTY, 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)), MemberReference(member=Lpend, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=MemberReference(member=j, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]))]), MemberReference(member=Lip, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=BinaryOperation(operandl=BinaryOperation(operandl=MemberReference(member=Lip_offset, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=j, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=+), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), operator=+))])], member=PRINTF, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), label=None), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=Lpend, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=MemberReference(member=j, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]))]), operandr=MemberReference(member=EMPTY, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator===), else_statement=None, label=None, then_statement=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=Li, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=Assignment(expressionl=MemberReference(member=Lx, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MethodInvocation(arguments=[MemberReference(member=LU, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=Lip, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=Lip_offset, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=Llen, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=Llen_offset, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=Li_offset, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=Lx_offset, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=j, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=llen, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=GET_POINTER, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None))), label=None), ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=pivrow, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=Li, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=BinaryOperation(operandl=MemberReference(member=Li_offset, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0))]), operandr=MemberReference(member=p2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=+))]), operator===), else_statement=None, label=None, then_statement=BlockStatement(label=None, statements=[IfStatement(condition=MemberReference(member=NDEBUG, postfix_operators=[], prefix_operators=['!'], qualifier=, selectors=[]), else_statement=None, label=None, then_statement=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="==== PRUNE: col j %d of L\n"), MemberReference(member=j, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=PRINTF, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), label=None), BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=None, name=p3)], modifiers=set(), type=BasicType(dimensions=[], name=int)), ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="before: %d pivotal: %d\n"), Cast(expression=MemberReference(member=Li, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=BinaryOperation(operandl=MemberReference(member=Li_offset, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0))]), operandr=MemberReference(member=p3, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=+))]), type=BasicType(dimensions=[], name=int)), TernaryExpression(condition=BinaryOperation(operandl=MemberReference(member=Pinv, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=Cast(expression=MemberReference(member=Li, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=BinaryOperation(operandl=MemberReference(member=Li_offset, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0))]), operandr=MemberReference(member=p3, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=+))]), type=BasicType(dimensions=[], name=int)))]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), 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))], member=PRINTF, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), label=None)]), control=ForControl(condition=BinaryOperation(operandl=MemberReference(member=p3, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=Llen, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=BinaryOperation(operandl=MemberReference(member=Llen_offset, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=j, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=+))]), operator=<), init=[Assignment(expressionl=MemberReference(member=p3, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0))], update=[MemberReference(member=p3, postfix_operators=['++'], prefix_operators=[], qualifier=, selectors=[])]), label=None)])])), StatementExpression(expression=Assignment(expressionl=MemberReference(member=phead, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0)), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=ptail, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MemberReference(member=Llen, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=BinaryOperation(operandl=MemberReference(member=Llen_offset, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=j, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=+))])), label=None), WhileStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=Cast(expression=MemberReference(member=Li, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=BinaryOperation(operandl=MemberReference(member=Li_offset, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0))]), operandr=MemberReference(member=phead, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=+))]), type=BasicType(dimensions=[], name=int))), label=None), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=Pinv, 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=0), operator=>=), else_statement=BlockStatement(label=None, statements=[StatementExpression(expression=MemberReference(member=ptail, postfix_operators=['--'], prefix_operators=[], qualifier=, selectors=[]), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=Li, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=BinaryOperation(operandl=MemberReference(member=Li_offset, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0))]), operandr=MemberReference(member=phead, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=+))]), type==, value=MemberReference(member=Li, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=BinaryOperation(operandl=MemberReference(member=Li_offset, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0))]), operandr=MemberReference(member=ptail, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=+))])), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=Li, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=BinaryOperation(operandl=MemberReference(member=Li_offset, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0))]), operandr=MemberReference(member=ptail, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=+))]), type==, value=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=x, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MemberReference(member=Lx, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=BinaryOperation(operandl=MemberReference(member=Lx_offset, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0))]), operandr=MemberReference(member=phead, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=+))])), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=Lx, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=BinaryOperation(operandl=MemberReference(member=Lx_offset, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0))]), operandr=MemberReference(member=phead, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=+))]), type==, value=MemberReference(member=Lx, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=BinaryOperation(operandl=MemberReference(member=Lx_offset, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0))]), operandr=MemberReference(member=ptail, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=+))])), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=Lx, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=BinaryOperation(operandl=MemberReference(member=Lx_offset, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0))]), operandr=MemberReference(member=ptail, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=+))]), type==, value=MemberReference(member=x, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])), label=None)]), label=None, then_statement=BlockStatement(label=None, statements=[StatementExpression(expression=MemberReference(member=phead, postfix_operators=['++'], prefix_operators=[], qualifier=, selectors=[]), label=None)]))]), condition=BinaryOperation(operandl=MemberReference(member=phead, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=ptail, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=<), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=Lpend, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=MemberReference(member=j, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]))]), type==, value=MemberReference(member=ptail, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])), label=None), IfStatement(condition=MemberReference(member=NDEBUG, postfix_operators=[], prefix_operators=['!'], qualifier=, selectors=[]), else_statement=None, label=None, then_statement=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=None, name=p3)], modifiers=set(), type=BasicType(dimensions=[], name=int)), ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=p3, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=Lpend, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=MemberReference(member=j, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]))]), operator===), else_statement=None, label=None, then_statement=StatementExpression(expression=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="----\n")], member=PRINTF, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), label=None)), StatementExpression(expression=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="after: %d pivotal: %d\n"), Cast(expression=MemberReference(member=Li, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=BinaryOperation(operandl=MemberReference(member=Li_offset, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0))]), operandr=MemberReference(member=p3, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=+))]), type=BasicType(dimensions=[], name=int)), TernaryExpression(condition=BinaryOperation(operandl=MemberReference(member=Pinv, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=Cast(expression=MemberReference(member=Li, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=BinaryOperation(operandl=MemberReference(member=Li_offset, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0))]), operandr=MemberReference(member=p3, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=+))]), type=BasicType(dimensions=[], name=int)))]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), 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))], member=PRINTF, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), label=None)]), control=ForControl(condition=BinaryOperation(operandl=MemberReference(member=p3, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=Llen, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=BinaryOperation(operandl=MemberReference(member=Llen_offset, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=j, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=+))]), operator=<), init=[Assignment(expressionl=MemberReference(member=p3, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0))], update=[MemberReference(member=p3, postfix_operators=['++'], prefix_operators=[], qualifier=, selectors=[])]), label=None)])), BreakStatement(goto=None, label=None)]))]), control=ForControl(condition=BinaryOperation(operandl=MemberReference(member=p2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=llen, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0))]), operator=<), init=[Assignment(expressionl=MemberReference(member=p2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0))], update=[MemberReference(member=p2, postfix_operators=['++'], prefix_operators=[], qualifier=, selectors=[])]), label=None)]))]), control=ForControl(condition=BinaryOperation(operandl=MemberReference(member=p, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=ulen, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0))]), operator=<), init=[Assignment(expressionl=MemberReference(member=p, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0))], update=[MemberReference(member=p, postfix_operators=['++'], prefix_operators=[], qualifier=, selectors=[])]), label=None) end[}] END[}]
Keyword[public] Keyword[static] Keyword[void] identifier[prune] operator[SEP] Keyword[int] operator[SEP] operator[SEP] identifier[Lpend] , Keyword[int] operator[SEP] operator[SEP] identifier[Pinv] , Keyword[int] identifier[k] , Keyword[int] identifier[pivrow] , Keyword[double] operator[SEP] operator[SEP] identifier[LU] , Keyword[int] operator[SEP] operator[SEP] identifier[Uip] , Keyword[int] identifier[Uip_offset] , Keyword[int] operator[SEP] operator[SEP] identifier[Lip] , Keyword[int] identifier[Lip_offset] , Keyword[int] operator[SEP] operator[SEP] identifier[Ulen] , Keyword[int] identifier[Ulen_offset] , Keyword[int] operator[SEP] operator[SEP] identifier[Llen] , Keyword[int] identifier[Llen_offset] operator[SEP] { Keyword[double] identifier[x] operator[SEP] Keyword[double] operator[SEP] operator[SEP] identifier[Lx] operator[SEP] Keyword[double] operator[SEP] operator[SEP] identifier[Li] , identifier[Ui] operator[SEP] Keyword[int] identifier[p] , identifier[i] , identifier[j] , identifier[p2] , identifier[phead] , identifier[ptail] operator[SEP] Keyword[int] operator[SEP] operator[SEP] identifier[llen] operator[=] Keyword[new] Keyword[int] operator[SEP] Other[1] operator[SEP] operator[SEP] Keyword[int] operator[SEP] operator[SEP] identifier[ulen] operator[=] Keyword[new] Keyword[int] operator[SEP] Other[1] operator[SEP] operator[SEP] Keyword[int] operator[SEP] operator[SEP] identifier[Li_offset] operator[=] Keyword[new] Keyword[int] operator[SEP] Other[1] operator[SEP] operator[SEP] Keyword[int] operator[SEP] operator[SEP] identifier[Lx_offset] operator[=] Keyword[new] Keyword[int] operator[SEP] Other[1] operator[SEP] operator[SEP] Keyword[int] operator[SEP] operator[SEP] identifier[Ui_offset] operator[=] Keyword[new] Keyword[int] operator[SEP] Other[1] operator[SEP] operator[SEP] Keyword[int] operator[SEP] operator[SEP] identifier[Ux_offset] operator[=] Keyword[new] Keyword[int] operator[SEP] Other[1] operator[SEP] operator[SEP] identifier[Ui] operator[=] identifier[GET_POINTER] operator[SEP] identifier[LU] , identifier[Uip] , identifier[Uip_offset] , identifier[Ulen] , identifier[Ulen_offset] , identifier[Ui_offset] , identifier[Ux_offset] , identifier[k] , identifier[ulen] operator[SEP] operator[SEP] Keyword[for] operator[SEP] identifier[p] operator[=] Other[0] operator[SEP] identifier[p] operator[<] identifier[ulen] operator[SEP] Other[0] operator[SEP] operator[SEP] identifier[p] operator[++] operator[SEP] { identifier[j] operator[=] operator[SEP] Keyword[int] operator[SEP] identifier[Ui] operator[SEP] identifier[Ui_offset] operator[SEP] Other[0] operator[SEP] operator[+] identifier[p] operator[SEP] operator[SEP] identifier[ASSERT] operator[SEP] identifier[j] operator[<] identifier[k] operator[SEP] operator[SEP] identifier[PRINTF] operator[SEP] literal[String] , identifier[j] , identifier[Lpend] operator[SEP] identifier[j] operator[SEP] operator[!=] identifier[EMPTY] operator[?] Other[1] operator[:] Other[0] , identifier[Lpend] operator[SEP] identifier[j] operator[SEP] , identifier[Lip] operator[SEP] identifier[Lip_offset] operator[+] identifier[j] operator[+] Other[1] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[Lpend] operator[SEP] identifier[j] operator[SEP] operator[==] identifier[EMPTY] operator[SEP] { identifier[Li] operator[=] identifier[Lx] operator[=] identifier[GET_POINTER] operator[SEP] identifier[LU] , identifier[Lip] , identifier[Lip_offset] , identifier[Llen] , identifier[Llen_offset] , identifier[Li_offset] , identifier[Lx_offset] , identifier[j] , identifier[llen] operator[SEP] operator[SEP] Keyword[for] operator[SEP] identifier[p2] operator[=] Other[0] operator[SEP] identifier[p2] operator[<] identifier[llen] operator[SEP] Other[0] operator[SEP] operator[SEP] identifier[p2] operator[++] operator[SEP] { Keyword[if] operator[SEP] identifier[pivrow] operator[==] identifier[Li] operator[SEP] identifier[Li_offset] operator[SEP] Other[0] operator[SEP] operator[+] identifier[p2] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] operator[!] identifier[NDEBUG] operator[SEP] { identifier[PRINTF] operator[SEP] literal[String] , identifier[j] operator[SEP] operator[SEP] { Keyword[int] identifier[p3] operator[SEP] Keyword[for] operator[SEP] identifier[p3] operator[=] Other[0] operator[SEP] identifier[p3] operator[<] identifier[Llen] operator[SEP] identifier[Llen_offset] operator[+] identifier[j] operator[SEP] operator[SEP] identifier[p3] operator[++] operator[SEP] { identifier[PRINTF] operator[SEP] literal[String] , operator[SEP] Keyword[int] operator[SEP] identifier[Li] operator[SEP] identifier[Li_offset] operator[SEP] Other[0] operator[SEP] operator[+] identifier[p3] operator[SEP] , identifier[Pinv] operator[SEP] operator[SEP] Keyword[int] operator[SEP] identifier[Li] operator[SEP] identifier[Li_offset] operator[SEP] Other[0] operator[SEP] operator[+] identifier[p3] operator[SEP] operator[SEP] operator[>=] Other[0] operator[?] Other[1] operator[:] Other[0] operator[SEP] operator[SEP] } } } identifier[phead] operator[=] Other[0] operator[SEP] identifier[ptail] operator[=] identifier[Llen] operator[SEP] identifier[Llen_offset] operator[+] identifier[j] operator[SEP] operator[SEP] Keyword[while] operator[SEP] identifier[phead] operator[<] identifier[ptail] operator[SEP] { identifier[i] operator[=] operator[SEP] Keyword[int] operator[SEP] identifier[Li] operator[SEP] identifier[Li_offset] operator[SEP] Other[0] operator[SEP] operator[+] identifier[phead] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[Pinv] operator[SEP] identifier[i] operator[SEP] operator[>=] Other[0] operator[SEP] { identifier[phead] operator[++] operator[SEP] } Keyword[else] { identifier[ptail] operator[--] operator[SEP] identifier[Li] operator[SEP] identifier[Li_offset] operator[SEP] Other[0] operator[SEP] operator[+] identifier[phead] operator[SEP] operator[=] identifier[Li] operator[SEP] identifier[Li_offset] operator[SEP] Other[0] operator[SEP] operator[+] identifier[ptail] operator[SEP] operator[SEP] identifier[Li] operator[SEP] identifier[Li_offset] operator[SEP] Other[0] operator[SEP] operator[+] identifier[ptail] operator[SEP] operator[=] identifier[i] operator[SEP] identifier[x] operator[=] identifier[Lx] operator[SEP] identifier[Lx_offset] operator[SEP] Other[0] operator[SEP] operator[+] identifier[phead] operator[SEP] operator[SEP] identifier[Lx] operator[SEP] identifier[Lx_offset] operator[SEP] Other[0] operator[SEP] operator[+] identifier[phead] operator[SEP] operator[=] identifier[Lx] operator[SEP] identifier[Lx_offset] operator[SEP] Other[0] operator[SEP] operator[+] identifier[ptail] operator[SEP] operator[SEP] identifier[Lx] operator[SEP] identifier[Lx_offset] operator[SEP] Other[0] operator[SEP] operator[+] identifier[ptail] operator[SEP] operator[=] identifier[x] operator[SEP] } } identifier[Lpend] operator[SEP] identifier[j] operator[SEP] operator[=] identifier[ptail] operator[SEP] Keyword[if] operator[SEP] operator[!] identifier[NDEBUG] operator[SEP] { Keyword[int] identifier[p3] operator[SEP] Keyword[for] operator[SEP] identifier[p3] operator[=] Other[0] operator[SEP] identifier[p3] operator[<] identifier[Llen] operator[SEP] identifier[Llen_offset] operator[+] identifier[j] operator[SEP] operator[SEP] identifier[p3] operator[++] operator[SEP] { Keyword[if] operator[SEP] identifier[p3] operator[==] identifier[Lpend] operator[SEP] identifier[j] operator[SEP] operator[SEP] identifier[PRINTF] operator[SEP] operator[SEP] literal[String] operator[SEP] operator[SEP] operator[SEP] identifier[PRINTF] operator[SEP] literal[String] , operator[SEP] Keyword[int] operator[SEP] identifier[Li] operator[SEP] identifier[Li_offset] operator[SEP] Other[0] operator[SEP] operator[+] identifier[p3] operator[SEP] , identifier[Pinv] operator[SEP] operator[SEP] Keyword[int] operator[SEP] identifier[Li] operator[SEP] identifier[Li_offset] operator[SEP] Other[0] operator[SEP] operator[+] identifier[p3] operator[SEP] operator[SEP] operator[>=] Other[0] operator[?] Other[1] operator[:] Other[0] operator[SEP] operator[SEP] } } Keyword[break] operator[SEP] } } } } }
public static Method annotationPropertyByType(Class<?> type, Class<? extends Annotation> annotation) { return arrayFindFirst(annotation.getDeclaredMethods(), m -> m.getReturnType() == type); }
class class_name[name] begin[{] method[annotationPropertyByType, return_type[type[Method]], modifier[public static], parameter[type, annotation]] begin[{] return[call[.arrayFindFirst, parameter[call[annotation.getDeclaredMethods, parameter[]], LambdaExpression(body=BinaryOperation(operandl=MethodInvocation(arguments=[], member=getReturnType, postfix_operators=[], prefix_operators=[], qualifier=m, selectors=[], type_arguments=None), operandr=MemberReference(member=type, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator===), parameters=[MemberReference(member=m, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])])]]] end[}] END[}]
Keyword[public] Keyword[static] identifier[Method] identifier[annotationPropertyByType] operator[SEP] identifier[Class] operator[<] operator[?] operator[>] identifier[type] , identifier[Class] operator[<] operator[?] Keyword[extends] identifier[Annotation] operator[>] identifier[annotation] operator[SEP] { Keyword[return] identifier[arrayFindFirst] operator[SEP] identifier[annotation] operator[SEP] identifier[getDeclaredMethods] operator[SEP] operator[SEP] , identifier[m] operator[->] identifier[m] operator[SEP] identifier[getReturnType] operator[SEP] operator[SEP] operator[==] identifier[type] operator[SEP] operator[SEP] }
@Pure @Inline(value = "TextUtil.join('{', '}', $1)", imported = {TextUtil.class}) public static String mergeBrackets(Iterable<?> strs) { return join('{', '}', strs); }
class class_name[name] begin[{] method[mergeBrackets, return_type[type[String]], modifier[public static], parameter[strs]] begin[{] return[call[.join, parameter[literal['{'], literal['}'], member[.strs]]]] end[}] END[}]
annotation[@] identifier[Pure] annotation[@] identifier[Inline] operator[SEP] identifier[value] operator[=] literal[String] , identifier[imported] operator[=] { identifier[TextUtil] operator[SEP] Keyword[class] } operator[SEP] Keyword[public] Keyword[static] identifier[String] identifier[mergeBrackets] operator[SEP] identifier[Iterable] operator[<] operator[?] operator[>] identifier[strs] operator[SEP] { Keyword[return] identifier[join] operator[SEP] literal[String] , literal[String] , identifier[strs] operator[SEP] operator[SEP] }
void putObject(int offset, NativeObject ob) { switch (addressSize()) { case 8: putLong(offset, ob.address); break; case 4: putInt(offset, (int)(ob.address & 0x00000000FFFFFFFF)); break; default: throw new InternalError("Address size not supported"); } }
class class_name[name] begin[{] method[putObject, return_type[void], modifier[default], parameter[offset, ob]] begin[{] SwitchStatement(cases=[SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=8)], statements=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=offset, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=address, postfix_operators=[], prefix_operators=[], qualifier=ob, selectors=[])], member=putLong, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), label=None), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=4)], statements=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=offset, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), Cast(expression=BinaryOperation(operandl=MemberReference(member=address, postfix_operators=[], prefix_operators=[], qualifier=ob, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0x00000000FFFFFFFF), operator=&), type=BasicType(dimensions=[], name=int))], member=putInt, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), label=None), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[], statements=[ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="Address size not supported")], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=InternalError, sub_type=None)), label=None)])], expression=MethodInvocation(arguments=[], member=addressSize, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), label=None) end[}] END[}]
Keyword[void] identifier[putObject] operator[SEP] Keyword[int] identifier[offset] , identifier[NativeObject] identifier[ob] operator[SEP] { Keyword[switch] operator[SEP] identifier[addressSize] operator[SEP] operator[SEP] operator[SEP] { Keyword[case] Other[8] operator[:] identifier[putLong] operator[SEP] identifier[offset] , identifier[ob] operator[SEP] identifier[address] operator[SEP] operator[SEP] Keyword[break] operator[SEP] Keyword[case] Other[4] operator[:] identifier[putInt] operator[SEP] identifier[offset] , operator[SEP] Keyword[int] operator[SEP] operator[SEP] identifier[ob] operator[SEP] identifier[address] operator[&] literal[Integer] operator[SEP] operator[SEP] operator[SEP] Keyword[break] operator[SEP] Keyword[default] operator[:] Keyword[throw] Keyword[new] identifier[InternalError] operator[SEP] literal[String] operator[SEP] operator[SEP] } }
public void init(Record mainRecord, ScreenLocation itsLocation, BasePanel parentScreen, Converter fieldConverter, int iDisplayFieldDesc, Map<String, Object> properties) { m_vRecordList = new RecordList(null); m_recDependent = null; m_screenParent = (BasePanel)parentScreen; // I know this is done later in ScreenField.init, but parentScreen may be needed by the new records if (m_vRecordList.size() == 0) // Was the main file passed in? { boolean bQueryInTable = false; if (mainRecord == null) mainRecord = this.openMainRecord(); // No, open it! // Now look through the list and see if this query was added, it not, add it! for (Enumeration<Rec> e = m_vRecordList.elements() ; e.hasMoreElements() ;) { // This should only be called for Imaged GridScreens (Child windows would be deleted by now if Component) Record cQueryInTable = (Record)e.nextElement(); if (cQueryInTable == mainRecord) bQueryInTable = true; } if (mainRecord != null) if (!bQueryInTable) this.addRecord((Record)mainRecord, false); } mainRecord = this.getMainRecord(); if (mainRecord != null) if (((Record)mainRecord).getKeyArea() != null) if (((Record)mainRecord).getKeyArea().getKeyName().equals(DBConstants.PRIMARY_KEY)) ((Record)mainRecord).setKeyArea(((Record)mainRecord).getDefaultScreenKeyArea()); this.openOtherRecords(); // Open the other files this.setScreenRecord(this.addScreenRecord()); super.init((ScreenLocation)itsLocation, (BasePanel)parentScreen, (Converter)fieldConverter, iDisplayFieldDesc, properties); this.syncHeaderToMain(); // Read in the current (optional) Header record. boolean bPushToBrowser = (iDisplayFieldDesc & ScreenConstants.DONT_PUSH_TO_BROWSER) == ScreenConstants.PUSH_TO_BROWSER; if (parentScreen != null) ((BasePanel)parentScreen).pushHistory(this.getScreenURL(), bPushToBrowser); // Push this screen onto history stack }
class class_name[name] begin[{] method[init, return_type[void], modifier[public], parameter[mainRecord, itsLocation, parentScreen, fieldConverter, iDisplayFieldDesc, properties]] begin[{] assign[member[.m_vRecordList], ClassCreator(arguments=[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=RecordList, sub_type=None))] assign[member[.m_recDependent], literal[null]] assign[member[.m_screenParent], Cast(expression=MemberReference(member=parentScreen, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type=ReferenceType(arguments=None, dimensions=[], name=BasePanel, sub_type=None))] if[binary_operation[call[m_vRecordList.size, parameter[]], ==, literal[0]]] begin[{] local_variable[type[boolean], bQueryInTable] if[binary_operation[member[.mainRecord], ==, literal[null]]] begin[{] assign[member[.mainRecord], THIS[call[None.openMainRecord, parameter[]]]] else begin[{] None end[}] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=Cast(expression=MethodInvocation(arguments=[], member=nextElement, postfix_operators=[], prefix_operators=[], qualifier=e, selectors=[], type_arguments=None), type=ReferenceType(arguments=None, dimensions=[], name=Record, sub_type=None)), name=cQueryInTable)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=Record, sub_type=None)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=cQueryInTable, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=mainRecord, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator===), else_statement=None, label=None, then_statement=StatementExpression(expression=Assignment(expressionl=MemberReference(member=bQueryInTable, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=true)), label=None))]), control=ForControl(condition=MethodInvocation(arguments=[], member=hasMoreElements, postfix_operators=[], prefix_operators=[], qualifier=e, selectors=[], type_arguments=None), init=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=MethodInvocation(arguments=[], member=elements, postfix_operators=[], prefix_operators=[], qualifier=m_vRecordList, selectors=[], type_arguments=None), name=e)], modifiers=set(), type=ReferenceType(arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=Rec, sub_type=None))], dimensions=[], name=Enumeration, sub_type=None)), update=None), label=None) if[binary_operation[member[.mainRecord], !=, literal[null]]] begin[{] if[member[.bQueryInTable]] begin[{] THIS[call[None.addRecord, parameter[Cast(expression=MemberReference(member=mainRecord, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type=ReferenceType(arguments=None, dimensions=[], name=Record, sub_type=None)), literal[false]]]] else begin[{] None end[}] else begin[{] None end[}] else begin[{] None end[}] assign[member[.mainRecord], THIS[call[None.getMainRecord, parameter[]]]] if[binary_operation[member[.mainRecord], !=, literal[null]]] begin[{] if[binary_operation[Cast(expression=MemberReference(member=mainRecord, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type=ReferenceType(arguments=None, dimensions=[], name=Record, sub_type=None)), !=, literal[null]]] begin[{] if[Cast(expression=MemberReference(member=mainRecord, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type=ReferenceType(arguments=None, dimensions=[], name=Record, sub_type=None))] begin[{] Cast(expression=MemberReference(member=mainRecord, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type=ReferenceType(arguments=None, dimensions=[], name=Record, sub_type=None)) else begin[{] None end[}] else begin[{] None end[}] else begin[{] None end[}] THIS[call[None.openOtherRecords, parameter[]]] THIS[call[None.setScreenRecord, parameter[THIS[call[None.addScreenRecord, parameter[]]]]]] SuperMethodInvocation(arguments=[Cast(expression=MemberReference(member=itsLocation, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type=ReferenceType(arguments=None, dimensions=[], name=ScreenLocation, sub_type=None)), Cast(expression=MemberReference(member=parentScreen, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type=ReferenceType(arguments=None, dimensions=[], name=BasePanel, sub_type=None)), Cast(expression=MemberReference(member=fieldConverter, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type=ReferenceType(arguments=None, dimensions=[], name=Converter, sub_type=None)), MemberReference(member=iDisplayFieldDesc, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=properties, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=init, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type_arguments=None) THIS[call[None.syncHeaderToMain, parameter[]]] local_variable[type[boolean], bPushToBrowser] if[binary_operation[member[.parentScreen], !=, literal[null]]] begin[{] Cast(expression=MemberReference(member=parentScreen, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type=ReferenceType(arguments=None, dimensions=[], name=BasePanel, sub_type=None)) else begin[{] None end[}] end[}] END[}]
Keyword[public] Keyword[void] identifier[init] operator[SEP] identifier[Record] identifier[mainRecord] , identifier[ScreenLocation] identifier[itsLocation] , identifier[BasePanel] identifier[parentScreen] , identifier[Converter] identifier[fieldConverter] , Keyword[int] identifier[iDisplayFieldDesc] , identifier[Map] operator[<] identifier[String] , identifier[Object] operator[>] identifier[properties] operator[SEP] { identifier[m_vRecordList] operator[=] Keyword[new] identifier[RecordList] operator[SEP] Other[null] operator[SEP] operator[SEP] identifier[m_recDependent] operator[=] Other[null] operator[SEP] identifier[m_screenParent] operator[=] operator[SEP] identifier[BasePanel] operator[SEP] identifier[parentScreen] operator[SEP] Keyword[if] operator[SEP] identifier[m_vRecordList] operator[SEP] identifier[size] operator[SEP] operator[SEP] operator[==] Other[0] operator[SEP] { Keyword[boolean] identifier[bQueryInTable] operator[=] literal[boolean] operator[SEP] Keyword[if] operator[SEP] identifier[mainRecord] operator[==] Other[null] operator[SEP] identifier[mainRecord] operator[=] Keyword[this] operator[SEP] identifier[openMainRecord] operator[SEP] operator[SEP] operator[SEP] Keyword[for] operator[SEP] identifier[Enumeration] operator[<] identifier[Rec] operator[>] identifier[e] operator[=] identifier[m_vRecordList] operator[SEP] identifier[elements] operator[SEP] operator[SEP] operator[SEP] identifier[e] operator[SEP] identifier[hasMoreElements] operator[SEP] operator[SEP] operator[SEP] operator[SEP] { identifier[Record] identifier[cQueryInTable] operator[=] operator[SEP] identifier[Record] operator[SEP] identifier[e] operator[SEP] identifier[nextElement] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[cQueryInTable] operator[==] identifier[mainRecord] operator[SEP] identifier[bQueryInTable] operator[=] literal[boolean] operator[SEP] } Keyword[if] operator[SEP] identifier[mainRecord] operator[!=] Other[null] operator[SEP] Keyword[if] operator[SEP] operator[!] identifier[bQueryInTable] operator[SEP] Keyword[this] operator[SEP] identifier[addRecord] operator[SEP] operator[SEP] identifier[Record] operator[SEP] identifier[mainRecord] , literal[boolean] operator[SEP] operator[SEP] } identifier[mainRecord] operator[=] Keyword[this] operator[SEP] identifier[getMainRecord] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[mainRecord] operator[!=] Other[null] operator[SEP] Keyword[if] operator[SEP] operator[SEP] operator[SEP] identifier[Record] operator[SEP] identifier[mainRecord] operator[SEP] operator[SEP] identifier[getKeyArea] operator[SEP] operator[SEP] operator[!=] Other[null] operator[SEP] Keyword[if] operator[SEP] operator[SEP] operator[SEP] identifier[Record] operator[SEP] identifier[mainRecord] operator[SEP] operator[SEP] identifier[getKeyArea] operator[SEP] operator[SEP] operator[SEP] identifier[getKeyName] operator[SEP] operator[SEP] operator[SEP] identifier[equals] operator[SEP] identifier[DBConstants] operator[SEP] identifier[PRIMARY_KEY] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[Record] operator[SEP] identifier[mainRecord] operator[SEP] operator[SEP] identifier[setKeyArea] operator[SEP] operator[SEP] operator[SEP] identifier[Record] operator[SEP] identifier[mainRecord] operator[SEP] operator[SEP] identifier[getDefaultScreenKeyArea] operator[SEP] operator[SEP] operator[SEP] operator[SEP] Keyword[this] operator[SEP] identifier[openOtherRecords] operator[SEP] operator[SEP] operator[SEP] Keyword[this] operator[SEP] identifier[setScreenRecord] operator[SEP] Keyword[this] operator[SEP] identifier[addScreenRecord] operator[SEP] operator[SEP] operator[SEP] operator[SEP] Keyword[super] operator[SEP] identifier[init] operator[SEP] operator[SEP] identifier[ScreenLocation] operator[SEP] identifier[itsLocation] , operator[SEP] identifier[BasePanel] operator[SEP] identifier[parentScreen] , operator[SEP] identifier[Converter] operator[SEP] identifier[fieldConverter] , identifier[iDisplayFieldDesc] , identifier[properties] operator[SEP] operator[SEP] Keyword[this] operator[SEP] identifier[syncHeaderToMain] operator[SEP] operator[SEP] operator[SEP] Keyword[boolean] identifier[bPushToBrowser] operator[=] operator[SEP] identifier[iDisplayFieldDesc] operator[&] identifier[ScreenConstants] operator[SEP] identifier[DONT_PUSH_TO_BROWSER] operator[SEP] operator[==] identifier[ScreenConstants] operator[SEP] identifier[PUSH_TO_BROWSER] operator[SEP] Keyword[if] operator[SEP] identifier[parentScreen] operator[!=] Other[null] operator[SEP] operator[SEP] operator[SEP] identifier[BasePanel] operator[SEP] identifier[parentScreen] operator[SEP] operator[SEP] identifier[pushHistory] operator[SEP] Keyword[this] operator[SEP] identifier[getScreenURL] operator[SEP] operator[SEP] , identifier[bPushToBrowser] operator[SEP] operator[SEP] }
public Observable<Page<DomainInner>> listByResourceGroupAsync(String resourceGroupName) { return listByResourceGroupWithServiceResponseAsync(resourceGroupName).map(new Func1<ServiceResponse<List<DomainInner>>, Page<DomainInner>>() { @Override public Page<DomainInner> call(ServiceResponse<List<DomainInner>> response) { PageImpl<DomainInner> page = new PageImpl<>(); page.setItems(response.body()); return page; } }); }
class class_name[name] begin[{] method[listByResourceGroupAsync, return_type[type[Observable]], modifier[public], parameter[resourceGroupName]] begin[{] return[call[.listByResourceGroupWithServiceResponseAsync, parameter[member[.resourceGroupName]]]] end[}] END[}]
Keyword[public] identifier[Observable] operator[<] identifier[Page] operator[<] identifier[DomainInner] operator[>] operator[>] identifier[listByResourceGroupAsync] operator[SEP] identifier[String] identifier[resourceGroupName] operator[SEP] { Keyword[return] identifier[listByResourceGroupWithServiceResponseAsync] operator[SEP] identifier[resourceGroupName] operator[SEP] operator[SEP] identifier[map] operator[SEP] Keyword[new] identifier[Func1] operator[<] identifier[ServiceResponse] operator[<] identifier[List] operator[<] identifier[DomainInner] operator[>] operator[>] , identifier[Page] operator[<] identifier[DomainInner] operator[>] operator[>] operator[SEP] operator[SEP] { annotation[@] identifier[Override] Keyword[public] identifier[Page] operator[<] identifier[DomainInner] operator[>] identifier[call] operator[SEP] identifier[ServiceResponse] operator[<] identifier[List] operator[<] identifier[DomainInner] operator[>] operator[>] identifier[response] operator[SEP] { identifier[PageImpl] operator[<] identifier[DomainInner] operator[>] identifier[page] operator[=] Keyword[new] identifier[PageImpl] operator[<] operator[>] operator[SEP] operator[SEP] operator[SEP] identifier[page] operator[SEP] identifier[setItems] operator[SEP] identifier[response] operator[SEP] identifier[body] operator[SEP] operator[SEP] operator[SEP] operator[SEP] Keyword[return] identifier[page] operator[SEP] } } operator[SEP] operator[SEP] }
public static String readStringFromAssets(Context context, String fileName) throws IOException { if (context == null || StringUtils.isEmpty(fileName)) { return null; } StringBuilder s = new StringBuilder(""); InputStreamReader in = new InputStreamReader(context.getResources().getAssets().open(fileName)); BufferedReader br = new BufferedReader(in); String line; while ((line = br.readLine()) != null) { s.append(line); } return s.toString(); }
class class_name[name] begin[{] method[readStringFromAssets, return_type[type[String]], modifier[public static], parameter[context, fileName]] begin[{] if[binary_operation[binary_operation[member[.context], ==, literal[null]], ||, call[StringUtils.isEmpty, parameter[member[.fileName]]]]] begin[{] return[literal[null]] else begin[{] None end[}] local_variable[type[StringBuilder], s] local_variable[type[InputStreamReader], in] local_variable[type[BufferedReader], br] local_variable[type[String], line] while[binary_operation[assign[member[.line], call[br.readLine, parameter[]]], !=, literal[null]]] begin[{] call[s.append, parameter[member[.line]]] end[}] return[call[s.toString, parameter[]]] end[}] END[}]
Keyword[public] Keyword[static] identifier[String] identifier[readStringFromAssets] operator[SEP] identifier[Context] identifier[context] , identifier[String] identifier[fileName] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[if] operator[SEP] identifier[context] operator[==] Other[null] operator[||] identifier[StringUtils] operator[SEP] identifier[isEmpty] operator[SEP] identifier[fileName] operator[SEP] operator[SEP] { Keyword[return] Other[null] operator[SEP] } identifier[StringBuilder] identifier[s] operator[=] Keyword[new] identifier[StringBuilder] operator[SEP] literal[String] operator[SEP] operator[SEP] identifier[InputStreamReader] identifier[in] operator[=] Keyword[new] identifier[InputStreamReader] operator[SEP] identifier[context] operator[SEP] identifier[getResources] operator[SEP] operator[SEP] operator[SEP] identifier[getAssets] operator[SEP] operator[SEP] operator[SEP] identifier[open] operator[SEP] identifier[fileName] operator[SEP] operator[SEP] operator[SEP] identifier[BufferedReader] identifier[br] operator[=] Keyword[new] identifier[BufferedReader] operator[SEP] identifier[in] operator[SEP] operator[SEP] identifier[String] identifier[line] operator[SEP] Keyword[while] operator[SEP] operator[SEP] identifier[line] operator[=] identifier[br] operator[SEP] identifier[readLine] operator[SEP] operator[SEP] operator[SEP] operator[!=] Other[null] operator[SEP] { identifier[s] operator[SEP] identifier[append] operator[SEP] identifier[line] operator[SEP] operator[SEP] } Keyword[return] identifier[s] operator[SEP] identifier[toString] operator[SEP] operator[SEP] operator[SEP] }
private void buildMatch(Object val) { // create the match data if (val != null) { if (val instanceof String) { _match = new String[]{(String) val}; } else if (val instanceof String[]) { String[] s = (String[]) val; int cnt = 0; for (int i = 0; i < s.length; i++) { if (s[i] != null) cnt++; } if (cnt == s.length) _match = s; else { if (cnt > 0) { _match = new String[cnt]; cnt = 0; for (int i = 0; i < s.length; i++) { if (s[i] != null) { _match[cnt++] = s[i]; } } } } } else { Iterator matchIterator = null; // val is never null so this would be an error matchIterator = IteratorFactory.createIterator(val); if (matchIterator == null) { matchIterator = IteratorFactory.EMPTY_ITERATOR; } ArrayList matchList = new ArrayList(); while (matchIterator.hasNext()) { Object o = matchIterator.next(); if (o == null) continue; matchList.add(o); } int size = matchList.size(); _match = new String[size]; for (int i = 0; i < size; i++) { assert (matchList.get(i) != null); assert (matchList.get(i).toString() != null); _match[i] = matchList.get(i).toString(); } } if (logger.isDebugEnabled()) { logger.debug("****** Select Matches ******"); if (_match != null) { for (int i = 0; i < _match.length; i++) { logger.debug(i + ": " + _match[i]); } } } } else { if (_nullable && !isMultiple() && (_defaultSelections == null || _defaultSelections.size() == 0)) { _match = new String[]{NULL_VALUE}; } } }
class class_name[name] begin[{] method[buildMatch, return_type[void], modifier[private], parameter[val]] begin[{] if[binary_operation[member[.val], !=, literal[null]]] begin[{] if[binary_operation[member[.val], instanceof, type[String]]] begin[{] assign[member[._match], ArrayCreator(dimensions=[None], initializer=ArrayInitializer(initializers=[Cast(expression=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type=ReferenceType(arguments=None, dimensions=[], name=String, sub_type=None))]), postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=String, sub_type=None))] else begin[{] if[binary_operation[member[.val], instanceof, type[String]]] begin[{] local_variable[type[String], s] local_variable[type[int], cnt] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=s, 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=StatementExpression(expression=MemberReference(member=cnt, 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=length, postfix_operators=[], prefix_operators=[], qualifier=s, 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) if[binary_operation[member[.cnt], ==, member[s.length]]] begin[{] assign[member[._match], member[.s]] else begin[{] if[binary_operation[member[.cnt], >, literal[0]]] begin[{] assign[member[._match], ArrayCreator(dimensions=[MemberReference(member=cnt, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], initializer=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=String, sub_type=None))] assign[member[.cnt], literal[0]] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=s, 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=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=_match, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=MemberReference(member=cnt, postfix_operators=['++'], prefix_operators=[], qualifier=, selectors=[]))]), type==, value=MemberReference(member=s, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=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=MemberReference(member=length, postfix_operators=[], prefix_operators=[], qualifier=s, 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) else begin[{] None end[}] end[}] else begin[{] local_variable[type[Iterator], matchIterator] assign[member[.matchIterator], call[IteratorFactory.createIterator, parameter[member[.val]]]] if[binary_operation[member[.matchIterator], ==, literal[null]]] begin[{] assign[member[.matchIterator], member[IteratorFactory.EMPTY_ITERATOR]] else begin[{] None end[}] local_variable[type[ArrayList], matchList] while[call[matchIterator.hasNext, parameter[]]] begin[{] local_variable[type[Object], o] if[binary_operation[member[.o], ==, literal[null]]] begin[{] ContinueStatement(goto=None, label=None) else begin[{] None end[}] call[matchList.add, parameter[member[.o]]] end[}] local_variable[type[int], size] assign[member[._match], ArrayCreator(dimensions=[MemberReference(member=size, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], initializer=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=String, sub_type=None))] ForStatement(body=BlockStatement(label=None, statements=[AssertStatement(condition=BinaryOperation(operandl=MethodInvocation(arguments=[MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=get, postfix_operators=[], prefix_operators=[], qualifier=matchList, selectors=[], type_arguments=None), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=null), operator=!=), label=None, value=None), AssertStatement(condition=BinaryOperation(operandl=MethodInvocation(arguments=[MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=get, postfix_operators=[], prefix_operators=[], qualifier=matchList, selectors=[MethodInvocation(arguments=[], member=toString, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)], type_arguments=None), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=null), operator=!=), label=None, value=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=_match, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]))]), type==, value=MethodInvocation(arguments=[MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=get, postfix_operators=[], prefix_operators=[], qualifier=matchList, selectors=[MethodInvocation(arguments=[], member=toString, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)], type_arguments=None)), label=None)]), control=ForControl(condition=BinaryOperation(operandl=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=size, postfix_operators=[], prefix_operators=[], qualifier=, 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) end[}] end[}] if[call[logger.isDebugEnabled, parameter[]]] begin[{] call[logger.debug, parameter[literal["****** Select Matches ******"]]] if[binary_operation[member[._match], !=, literal[null]]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[BinaryOperation(operandl=BinaryOperation(operandl=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=": "), operator=+), operandr=MemberReference(member=_match, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]))]), operator=+)], member=debug, postfix_operators=[], prefix_operators=[], qualifier=logger, 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=_match, 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) else begin[{] None end[}] else begin[{] None end[}] else begin[{] if[binary_operation[binary_operation[member[._nullable], &&, call[.isMultiple, parameter[]]], &&, binary_operation[binary_operation[member[._defaultSelections], ==, literal[null]], ||, binary_operation[call[_defaultSelections.size, parameter[]], ==, literal[0]]]]] begin[{] assign[member[._match], ArrayCreator(dimensions=[None], initializer=ArrayInitializer(initializers=[MemberReference(member=NULL_VALUE, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])]), postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=String, sub_type=None))] else begin[{] None end[}] end[}] end[}] END[}]
Keyword[private] Keyword[void] identifier[buildMatch] operator[SEP] identifier[Object] identifier[val] operator[SEP] { Keyword[if] operator[SEP] identifier[val] operator[!=] Other[null] operator[SEP] { Keyword[if] operator[SEP] identifier[val] Keyword[instanceof] identifier[String] operator[SEP] { identifier[_match] operator[=] Keyword[new] identifier[String] operator[SEP] operator[SEP] { operator[SEP] identifier[String] operator[SEP] identifier[val] } operator[SEP] } Keyword[else] Keyword[if] operator[SEP] identifier[val] Keyword[instanceof] identifier[String] operator[SEP] operator[SEP] operator[SEP] { identifier[String] operator[SEP] operator[SEP] identifier[s] operator[=] operator[SEP] identifier[String] operator[SEP] operator[SEP] operator[SEP] identifier[val] operator[SEP] Keyword[int] identifier[cnt] operator[=] Other[0] operator[SEP] Keyword[for] operator[SEP] Keyword[int] identifier[i] operator[=] Other[0] operator[SEP] identifier[i] operator[<] identifier[s] operator[SEP] identifier[length] operator[SEP] identifier[i] operator[++] operator[SEP] { Keyword[if] operator[SEP] identifier[s] operator[SEP] identifier[i] operator[SEP] operator[!=] Other[null] operator[SEP] identifier[cnt] operator[++] operator[SEP] } Keyword[if] operator[SEP] identifier[cnt] operator[==] identifier[s] operator[SEP] identifier[length] operator[SEP] identifier[_match] operator[=] identifier[s] operator[SEP] Keyword[else] { Keyword[if] operator[SEP] identifier[cnt] operator[>] Other[0] operator[SEP] { identifier[_match] operator[=] Keyword[new] identifier[String] operator[SEP] identifier[cnt] operator[SEP] operator[SEP] identifier[cnt] operator[=] Other[0] operator[SEP] Keyword[for] operator[SEP] Keyword[int] identifier[i] operator[=] Other[0] operator[SEP] identifier[i] operator[<] identifier[s] operator[SEP] identifier[length] operator[SEP] identifier[i] operator[++] operator[SEP] { Keyword[if] operator[SEP] identifier[s] operator[SEP] identifier[i] operator[SEP] operator[!=] Other[null] operator[SEP] { identifier[_match] operator[SEP] identifier[cnt] operator[++] operator[SEP] operator[=] identifier[s] operator[SEP] identifier[i] operator[SEP] operator[SEP] } } } } } Keyword[else] { identifier[Iterator] identifier[matchIterator] operator[=] Other[null] operator[SEP] identifier[matchIterator] operator[=] identifier[IteratorFactory] operator[SEP] identifier[createIterator] operator[SEP] identifier[val] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[matchIterator] operator[==] Other[null] operator[SEP] { identifier[matchIterator] operator[=] identifier[IteratorFactory] operator[SEP] identifier[EMPTY_ITERATOR] operator[SEP] } identifier[ArrayList] identifier[matchList] operator[=] Keyword[new] identifier[ArrayList] operator[SEP] operator[SEP] operator[SEP] Keyword[while] operator[SEP] identifier[matchIterator] operator[SEP] identifier[hasNext] operator[SEP] operator[SEP] operator[SEP] { identifier[Object] identifier[o] operator[=] identifier[matchIterator] operator[SEP] identifier[next] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[o] operator[==] Other[null] operator[SEP] Keyword[continue] operator[SEP] identifier[matchList] operator[SEP] identifier[add] operator[SEP] identifier[o] operator[SEP] operator[SEP] } Keyword[int] identifier[size] operator[=] identifier[matchList] operator[SEP] identifier[size] operator[SEP] operator[SEP] operator[SEP] identifier[_match] operator[=] Keyword[new] identifier[String] operator[SEP] identifier[size] operator[SEP] operator[SEP] Keyword[for] operator[SEP] Keyword[int] identifier[i] operator[=] Other[0] operator[SEP] identifier[i] operator[<] identifier[size] operator[SEP] identifier[i] operator[++] operator[SEP] { Keyword[assert] operator[SEP] identifier[matchList] operator[SEP] identifier[get] operator[SEP] identifier[i] operator[SEP] operator[!=] Other[null] operator[SEP] operator[SEP] Keyword[assert] operator[SEP] identifier[matchList] operator[SEP] identifier[get] operator[SEP] identifier[i] operator[SEP] operator[SEP] identifier[toString] operator[SEP] operator[SEP] operator[!=] Other[null] operator[SEP] operator[SEP] identifier[_match] operator[SEP] identifier[i] operator[SEP] operator[=] identifier[matchList] operator[SEP] identifier[get] operator[SEP] identifier[i] operator[SEP] operator[SEP] identifier[toString] operator[SEP] operator[SEP] operator[SEP] } } Keyword[if] operator[SEP] identifier[logger] operator[SEP] identifier[isDebugEnabled] operator[SEP] operator[SEP] operator[SEP] { identifier[logger] operator[SEP] identifier[debug] operator[SEP] literal[String] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[_match] operator[!=] Other[null] operator[SEP] { Keyword[for] operator[SEP] Keyword[int] identifier[i] operator[=] Other[0] operator[SEP] identifier[i] operator[<] identifier[_match] operator[SEP] identifier[length] operator[SEP] identifier[i] operator[++] operator[SEP] { identifier[logger] operator[SEP] identifier[debug] operator[SEP] identifier[i] operator[+] literal[String] operator[+] identifier[_match] operator[SEP] identifier[i] operator[SEP] operator[SEP] operator[SEP] } } } } Keyword[else] { Keyword[if] operator[SEP] identifier[_nullable] operator[&&] operator[!] identifier[isMultiple] operator[SEP] operator[SEP] operator[&&] operator[SEP] identifier[_defaultSelections] operator[==] Other[null] operator[||] identifier[_defaultSelections] operator[SEP] identifier[size] operator[SEP] operator[SEP] operator[==] Other[0] operator[SEP] operator[SEP] { identifier[_match] operator[=] Keyword[new] identifier[String] operator[SEP] operator[SEP] { identifier[NULL_VALUE] } operator[SEP] } } }
public static Monitor createCompoundJvmMonitor(Map<String, String[]> dimensions) { return createCompoundJvmMonitor(dimensions, FeedDefiningMonitor.DEFAULT_METRICS_FEED); }
class class_name[name] begin[{] method[createCompoundJvmMonitor, return_type[type[Monitor]], modifier[public static], parameter[dimensions]] begin[{] return[call[.createCompoundJvmMonitor, parameter[member[.dimensions], member[FeedDefiningMonitor.DEFAULT_METRICS_FEED]]]] end[}] END[}]
Keyword[public] Keyword[static] identifier[Monitor] identifier[createCompoundJvmMonitor] operator[SEP] identifier[Map] operator[<] identifier[String] , identifier[String] operator[SEP] operator[SEP] operator[>] identifier[dimensions] operator[SEP] { Keyword[return] identifier[createCompoundJvmMonitor] operator[SEP] identifier[dimensions] , identifier[FeedDefiningMonitor] operator[SEP] identifier[DEFAULT_METRICS_FEED] operator[SEP] operator[SEP] }
@Override public boolean skinCssFileExists(DynamicSkinInstanceData data) { final String cssInstanceKey = getCssInstanceKey(data); // Check the existing map first since it is faster than accessing the actual file. if (instanceKeysForExistingCss.contains(cssInstanceKey)) { return true; } boolean exists = innerSkinCssFileExists(data); if (exists) { if (!supportsRetainmentOfNonCurrentCss()) { instanceKeysForExistingCss.clear(); } instanceKeysForExistingCss.add(cssInstanceKey); } return exists; }
class class_name[name] begin[{] method[skinCssFileExists, return_type[type[boolean]], modifier[public], parameter[data]] begin[{] local_variable[type[String], cssInstanceKey] if[call[instanceKeysForExistingCss.contains, parameter[member[.cssInstanceKey]]]] begin[{] return[literal[true]] else begin[{] None end[}] local_variable[type[boolean], exists] if[member[.exists]] begin[{] if[call[.supportsRetainmentOfNonCurrentCss, parameter[]]] begin[{] call[instanceKeysForExistingCss.clear, parameter[]] else begin[{] None end[}] call[instanceKeysForExistingCss.add, parameter[member[.cssInstanceKey]]] else begin[{] None end[}] return[member[.exists]] end[}] END[}]
annotation[@] identifier[Override] Keyword[public] Keyword[boolean] identifier[skinCssFileExists] operator[SEP] identifier[DynamicSkinInstanceData] identifier[data] operator[SEP] { Keyword[final] identifier[String] identifier[cssInstanceKey] operator[=] identifier[getCssInstanceKey] operator[SEP] identifier[data] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[instanceKeysForExistingCss] operator[SEP] identifier[contains] operator[SEP] identifier[cssInstanceKey] operator[SEP] operator[SEP] { Keyword[return] literal[boolean] operator[SEP] } Keyword[boolean] identifier[exists] operator[=] identifier[innerSkinCssFileExists] operator[SEP] identifier[data] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[exists] operator[SEP] { Keyword[if] operator[SEP] operator[!] identifier[supportsRetainmentOfNonCurrentCss] operator[SEP] operator[SEP] operator[SEP] { identifier[instanceKeysForExistingCss] operator[SEP] identifier[clear] operator[SEP] operator[SEP] operator[SEP] } identifier[instanceKeysForExistingCss] operator[SEP] identifier[add] operator[SEP] identifier[cssInstanceKey] operator[SEP] operator[SEP] } Keyword[return] identifier[exists] operator[SEP] }
@Override public Map<String, Object> introspect(String token) { TokenIntrospectionSuccessResponse response = Optional.of(token) .map(this::buildRequest) .map(this::makeRequest) .map(this::adaptToNimbusResponse) .map(this::parseNimbusResponse) .map(this::castToNimbusSuccess) // relying solely on the authorization server to validate this token (not checking 'exp', for example) .filter(TokenIntrospectionSuccessResponse::isActive) .orElseThrow(() -> new OAuth2IntrospectionException("Provided token [" + token + "] isn't active")); return convertClaimsSet(response); }
class class_name[name] begin[{] method[introspect, return_type[type[Map]], modifier[public], parameter[token]] begin[{] local_variable[type[TokenIntrospectionSuccessResponse], response] return[call[.convertClaimsSet, parameter[member[.response]]]] end[}] END[}]
annotation[@] identifier[Override] Keyword[public] identifier[Map] operator[<] identifier[String] , identifier[Object] operator[>] identifier[introspect] operator[SEP] identifier[String] identifier[token] operator[SEP] { identifier[TokenIntrospectionSuccessResponse] identifier[response] operator[=] identifier[Optional] operator[SEP] identifier[of] operator[SEP] identifier[token] operator[SEP] operator[SEP] identifier[map] operator[SEP] Keyword[this] operator[::] identifier[buildRequest] operator[SEP] operator[SEP] identifier[map] operator[SEP] Keyword[this] operator[::] identifier[makeRequest] operator[SEP] operator[SEP] identifier[map] operator[SEP] Keyword[this] operator[::] identifier[adaptToNimbusResponse] operator[SEP] operator[SEP] identifier[map] operator[SEP] Keyword[this] operator[::] identifier[parseNimbusResponse] operator[SEP] operator[SEP] identifier[map] operator[SEP] Keyword[this] operator[::] identifier[castToNimbusSuccess] operator[SEP] operator[SEP] identifier[filter] operator[SEP] identifier[TokenIntrospectionSuccessResponse] operator[::] identifier[isActive] operator[SEP] operator[SEP] identifier[orElseThrow] operator[SEP] operator[SEP] operator[SEP] operator[->] Keyword[new] identifier[OAuth2IntrospectionException] operator[SEP] literal[String] operator[+] identifier[token] operator[+] literal[String] operator[SEP] operator[SEP] operator[SEP] Keyword[return] identifier[convertClaimsSet] operator[SEP] identifier[response] operator[SEP] operator[SEP] }
public static Days days(int days) { switch (days) { case 0: return ZERO; case 1: return ONE; case 2: return TWO; case 3: return THREE; case 4: return FOUR; case 5: return FIVE; case 6: return SIX; case 7: return SEVEN; case Integer.MAX_VALUE: return MAX_VALUE; case Integer.MIN_VALUE: return MIN_VALUE; default: return new Days(days); } }
class class_name[name] begin[{] method[days, return_type[type[Days]], modifier[public static], parameter[days]] begin[{] SwitchStatement(cases=[SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0)], statements=[ReturnStatement(expression=MemberReference(member=ZERO, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1)], statements=[ReturnStatement(expression=MemberReference(member=ONE, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=2)], statements=[ReturnStatement(expression=MemberReference(member=TWO, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=3)], statements=[ReturnStatement(expression=MemberReference(member=THREE, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=4)], statements=[ReturnStatement(expression=MemberReference(member=FOUR, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=5)], statements=[ReturnStatement(expression=MemberReference(member=FIVE, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=6)], statements=[ReturnStatement(expression=MemberReference(member=SIX, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=7)], statements=[ReturnStatement(expression=MemberReference(member=SEVEN, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), label=None)]), SwitchStatementCase(case=[MemberReference(member=MAX_VALUE, postfix_operators=[], prefix_operators=[], qualifier=Integer, selectors=[])], statements=[ReturnStatement(expression=MemberReference(member=MAX_VALUE, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), label=None)]), SwitchStatementCase(case=[MemberReference(member=MIN_VALUE, postfix_operators=[], prefix_operators=[], qualifier=Integer, selectors=[])], statements=[ReturnStatement(expression=MemberReference(member=MIN_VALUE, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), label=None)]), SwitchStatementCase(case=[], statements=[ReturnStatement(expression=ClassCreator(arguments=[MemberReference(member=days, 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=Days, sub_type=None)), label=None)])], expression=MemberReference(member=days, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), label=None) end[}] END[}]
Keyword[public] Keyword[static] identifier[Days] identifier[days] operator[SEP] Keyword[int] identifier[days] operator[SEP] { Keyword[switch] operator[SEP] identifier[days] operator[SEP] { Keyword[case] Other[0] operator[:] Keyword[return] identifier[ZERO] operator[SEP] Keyword[case] Other[1] operator[:] Keyword[return] identifier[ONE] operator[SEP] Keyword[case] Other[2] operator[:] Keyword[return] identifier[TWO] operator[SEP] Keyword[case] Other[3] operator[:] Keyword[return] identifier[THREE] operator[SEP] Keyword[case] Other[4] operator[:] Keyword[return] identifier[FOUR] operator[SEP] Keyword[case] Other[5] operator[:] Keyword[return] identifier[FIVE] operator[SEP] Keyword[case] Other[6] operator[:] Keyword[return] identifier[SIX] operator[SEP] Keyword[case] Other[7] operator[:] Keyword[return] identifier[SEVEN] operator[SEP] Keyword[case] identifier[Integer] operator[SEP] identifier[MAX_VALUE] operator[:] Keyword[return] identifier[MAX_VALUE] operator[SEP] Keyword[case] identifier[Integer] operator[SEP] identifier[MIN_VALUE] operator[:] Keyword[return] identifier[MIN_VALUE] operator[SEP] Keyword[default] operator[:] Keyword[return] Keyword[new] identifier[Days] operator[SEP] identifier[days] operator[SEP] operator[SEP] } }
public static Properties loadProperties(Reader reader) { Properties prop = new Properties(); try { prop.load(reader); } catch (IOException e) { throw E.ioException(e); } finally { IO.close(reader); } return prop; }
class class_name[name] begin[{] method[loadProperties, return_type[type[Properties]], modifier[public static], parameter[reader]] begin[{] local_variable[type[Properties], prop] TryStatement(block=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=reader, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=load, postfix_operators=[], prefix_operators=[], qualifier=prop, selectors=[], type_arguments=None), label=None)], catches=[CatchClause(block=[ThrowStatement(expression=MethodInvocation(arguments=[MemberReference(member=e, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=ioException, postfix_operators=[], prefix_operators=[], qualifier=E, 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=reader, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=close, postfix_operators=[], prefix_operators=[], qualifier=IO, selectors=[], type_arguments=None), label=None)], label=None, resources=None) return[member[.prop]] end[}] END[}]
Keyword[public] Keyword[static] identifier[Properties] identifier[loadProperties] operator[SEP] identifier[Reader] identifier[reader] operator[SEP] { identifier[Properties] identifier[prop] operator[=] Keyword[new] identifier[Properties] operator[SEP] operator[SEP] operator[SEP] Keyword[try] { identifier[prop] operator[SEP] identifier[load] operator[SEP] identifier[reader] operator[SEP] operator[SEP] } Keyword[catch] operator[SEP] identifier[IOException] identifier[e] operator[SEP] { Keyword[throw] identifier[E] operator[SEP] identifier[ioException] operator[SEP] identifier[e] operator[SEP] operator[SEP] } Keyword[finally] { identifier[IO] operator[SEP] identifier[close] operator[SEP] identifier[reader] operator[SEP] operator[SEP] } Keyword[return] identifier[prop] operator[SEP] }
protected double scoreCombination(double[] multiScore) { double sum = 0.0; for (int i=0; i<multiScore.length; i++) { sum += multiScore[i]; } return sum/multiScore.length; }
class class_name[name] begin[{] method[scoreCombination, return_type[type[double]], modifier[protected], parameter[multiScore]] begin[{] local_variable[type[double], sum] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=sum, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type=+=, value=MemberReference(member=multiScore, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=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=MemberReference(member=length, postfix_operators=[], prefix_operators=[], qualifier=multiScore, 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[binary_operation[member[.sum], /, member[multiScore.length]]] end[}] END[}]
Keyword[protected] Keyword[double] identifier[scoreCombination] operator[SEP] Keyword[double] operator[SEP] operator[SEP] identifier[multiScore] operator[SEP] { Keyword[double] identifier[sum] operator[=] literal[Float] operator[SEP] Keyword[for] operator[SEP] Keyword[int] identifier[i] operator[=] Other[0] operator[SEP] identifier[i] operator[<] identifier[multiScore] operator[SEP] identifier[length] operator[SEP] identifier[i] operator[++] operator[SEP] { identifier[sum] operator[+=] identifier[multiScore] operator[SEP] identifier[i] operator[SEP] operator[SEP] } Keyword[return] identifier[sum] operator[/] identifier[multiScore] operator[SEP] identifier[length] operator[SEP] }
public void remove(String scenarioName, String noraRobotName, Class<?> robotCounter, boolean verbose) { logger.info("Remove a scenario named [{}].", scenarioName); removeScenarioInData(scenarioName, noraRobotName, verbose); removeScenarioInEnvPropertiesFile(scenarioName, verbose); removeScenarioFeature(scenarioName, verbose); removeScenarioCounter(scenarioName, robotCounter, verbose); }
class class_name[name] begin[{] method[remove, return_type[void], modifier[public], parameter[scenarioName, noraRobotName, robotCounter, verbose]] begin[{] call[logger.info, parameter[literal["Remove a scenario named [{}]."], member[.scenarioName]]] call[.removeScenarioInData, parameter[member[.scenarioName], member[.noraRobotName], member[.verbose]]] call[.removeScenarioInEnvPropertiesFile, parameter[member[.scenarioName], member[.verbose]]] call[.removeScenarioFeature, parameter[member[.scenarioName], member[.verbose]]] call[.removeScenarioCounter, parameter[member[.scenarioName], member[.robotCounter], member[.verbose]]] end[}] END[}]
Keyword[public] Keyword[void] identifier[remove] operator[SEP] identifier[String] identifier[scenarioName] , identifier[String] identifier[noraRobotName] , identifier[Class] operator[<] operator[?] operator[>] identifier[robotCounter] , Keyword[boolean] identifier[verbose] operator[SEP] { identifier[logger] operator[SEP] identifier[info] operator[SEP] literal[String] , identifier[scenarioName] operator[SEP] operator[SEP] identifier[removeScenarioInData] operator[SEP] identifier[scenarioName] , identifier[noraRobotName] , identifier[verbose] operator[SEP] operator[SEP] identifier[removeScenarioInEnvPropertiesFile] operator[SEP] identifier[scenarioName] , identifier[verbose] operator[SEP] operator[SEP] identifier[removeScenarioFeature] operator[SEP] identifier[scenarioName] , identifier[verbose] operator[SEP] operator[SEP] identifier[removeScenarioCounter] operator[SEP] identifier[scenarioName] , identifier[robotCounter] , identifier[verbose] operator[SEP] operator[SEP] }
@Override public boolean isEqual(final OBinaryField iField1, final OBinaryField iField2) { final BytesContainer fieldValue1 = iField1.bytes; final int offset1 = fieldValue1.offset; final BytesContainer fieldValue2 = iField2.bytes; final int offset2 = fieldValue2.offset; try { switch (iField1.type) { case INTEGER: { final int value1 = OVarIntSerializer.readAsInteger(fieldValue1); switch (iField2.type) { case INTEGER: { final int value2 = OVarIntSerializer.readAsInteger(fieldValue2); return value1 == value2; } case LONG: case DATETIME: { final long value2 = OVarIntSerializer.readAsLong(fieldValue2); return value1 == value2; } case DATE: { final long value2 = (OVarIntSerializer.readAsLong(fieldValue2) * MILLISEC_PER_DAY); return value1 == value2; } case SHORT: { final short value2 = OVarIntSerializer.readAsShort(fieldValue2); return value1 == value2; } case BYTE: { final byte value2 = readByte(fieldValue2); return value1 == value2; } case FLOAT: { final float value2 = Float.intBitsToFloat(readInteger(fieldValue2)); return value1 == value2; } case DOUBLE: { final double value2 = Double.longBitsToDouble(readLong(fieldValue2)); return value1 == value2; } case STRING: { return Integer.parseInt(readString(fieldValue2)) == value1; } case DECIMAL: { final BigDecimal value2 = ODecimalSerializer.INSTANCE.deserialize(fieldValue2.bytes, fieldValue2.offset); return value1 == value2.intValue(); } } break; } case LONG: { final long value1 = OVarIntSerializer.readAsLong(fieldValue1); switch (iField2.type) { case INTEGER: { final int value2 = OVarIntSerializer.readAsInteger(fieldValue2); return value1 == value2; } case LONG: case DATETIME: { final long value2 = OVarIntSerializer.readAsLong(fieldValue2); return value1 == value2; } case DATE: { final long value2 = (OVarIntSerializer.readAsLong(fieldValue2) * MILLISEC_PER_DAY); return value1 == value2; } case SHORT: { final short value2 = OVarIntSerializer.readAsShort(fieldValue2); return value1 == value2; } case BYTE: { final byte value2 = readByte(fieldValue2); return value1 == value2; } case FLOAT: { final float value2 = Float.intBitsToFloat(readInteger(fieldValue2)); return value1 == value2; } case DOUBLE: { final double value2 = Double.longBitsToDouble(readLong(fieldValue2)); return value1 == value2; } case STRING: { return Long.parseLong(readString(fieldValue2)) == value1; } case DECIMAL: { final BigDecimal value2 = ODecimalSerializer.INSTANCE.deserialize(fieldValue2.bytes, fieldValue2.offset); return value1 == value2.longValue(); } } break; } case SHORT: { final short value1 = OVarIntSerializer.readAsShort(fieldValue1); switch (iField2.type) { case INTEGER: { final int value2 = OVarIntSerializer.readAsInteger(fieldValue2); return value1 == value2; } case LONG: case DATETIME: { final long value2 = OVarIntSerializer.readAsLong(fieldValue2); return value1 == value2; } case DATE: { final long value2 = (OVarIntSerializer.readAsLong(fieldValue2) * MILLISEC_PER_DAY); return value1 == value2; } case SHORT: { final short value2 = OVarIntSerializer.readAsShort(fieldValue2); return value1 == value2; } case BYTE: { final byte value2 = readByte(fieldValue2); return value1 == value2; } case FLOAT: { final float value2 = Float.intBitsToFloat(readInteger(fieldValue2)); return value1 == value2; } case DOUBLE: { final double value2 = Double.longBitsToDouble(readLong(fieldValue2)); return value1 == value2; } case STRING: { return Short.parseShort(readString(fieldValue2)) == value1; } case DECIMAL: { final BigDecimal value2 = ODecimalSerializer.INSTANCE.deserialize(fieldValue2.bytes, fieldValue2.offset); return value1 == value2.shortValue(); } } break; } case STRING: { switch (iField2.type) { case INTEGER: { final int value2 = OVarIntSerializer.readAsInteger(fieldValue2); return Integer.parseInt(readString(fieldValue1)) == value2; } case LONG: case DATETIME: { final long value2 = OVarIntSerializer.readAsLong(fieldValue2); return Long.parseLong(readString(fieldValue1)) == value2; } case DATE: { final long value2 = OVarIntSerializer.readAsLong(fieldValue2) * MILLISEC_PER_DAY; return Long.parseLong(readString(fieldValue1)) == value2; } case SHORT: { final short value2 = OVarIntSerializer.readAsShort(fieldValue2); return Short.parseShort(readString(fieldValue1)) == value2; } case BYTE: { final byte value2 = readByte(fieldValue2); return Byte.parseByte(readString(fieldValue1)) == value2; } case FLOAT: { final float value2 = Float.intBitsToFloat(readInteger(fieldValue2)); return Float.parseFloat(readString(fieldValue1)) == value2; } case DOUBLE: { final double value2 = Double.longBitsToDouble(readLong(fieldValue2)); return Double.parseDouble(readString(fieldValue1)) == value2; } case STRING: { final int len1 = OVarIntSerializer.readAsInteger(fieldValue1); final int len2 = OVarIntSerializer.readAsInteger(fieldValue2); if (len1 != len2) return false; final OCollate collate = (iField1.collate != null && !ODefaultCollate.NAME.equals(iField1.collate.getName())) ? iField1.collate : (iField2.collate != null && !ODefaultCollate.NAME.equals(iField2.collate.getName()) ? iField2.collate : null); if (collate != null) { final String str1 = (String) collate.transform(stringFromBytes(fieldValue1.bytes, fieldValue1.offset, len1)); final String str2 = (String) collate.transform(stringFromBytes(fieldValue2.bytes, fieldValue2.offset, len2)); return str1.equals(str2); } else { for (int i = 0; i < len1; ++i) { if (fieldValue1.bytes[fieldValue1.offset + i] != fieldValue2.bytes[fieldValue2.offset + i]) return false; } } return true; } case DECIMAL: { final BigDecimal value2 = ODecimalSerializer.INSTANCE.deserialize(fieldValue2.bytes, fieldValue2.offset); return new BigDecimal(readString(fieldValue1)).equals(value2); } case BOOLEAN: { final boolean value2 = readByte(fieldValue2) == 1; return Boolean.parseBoolean(readString(fieldValue1)) == value2; } } break; } case DOUBLE: { final long value1AsLong = readLong(fieldValue1); switch (iField2.type) { case INTEGER: { final double value1 = Double.longBitsToDouble(value1AsLong); final int value2 = OVarIntSerializer.readAsInteger(fieldValue2); return value1 == value2; } case LONG: case DATETIME: { final double value1 = Double.longBitsToDouble(value1AsLong); final long value2 = OVarIntSerializer.readAsLong(fieldValue2); return value1 == value2; } case SHORT: { final double value1 = Double.longBitsToDouble(value1AsLong); final short value2 = OVarIntSerializer.readAsShort(fieldValue2); return value1 == value2; } case BYTE: { final double value1 = Double.longBitsToDouble(value1AsLong); final byte value2 = readByte(fieldValue2); return value1 == value2; } case FLOAT: { final double value1 = Double.longBitsToDouble(value1AsLong); final float value2 = Float.intBitsToFloat(readInteger(fieldValue2)); return value1 == value2; } case DOUBLE: { final double value2AsLong = readLong(fieldValue2); return value1AsLong == value2AsLong; } case STRING: { final double value1 = Double.longBitsToDouble(value1AsLong); return Double.parseDouble(readString(fieldValue2)) == value1; } case DECIMAL: { final double value1 = Double.longBitsToDouble(value1AsLong); final BigDecimal value2 = ODecimalSerializer.INSTANCE.deserialize(fieldValue2.bytes, fieldValue2.offset); return value1 == value2.doubleValue(); } } break; } case FLOAT: { final int value1AsInt = readInteger(fieldValue1); switch (iField2.type) { case INTEGER: { final float value1 = Float.intBitsToFloat(value1AsInt); final int value2 = OVarIntSerializer.readAsInteger(fieldValue2); return value1 == value2; } case LONG: case DATETIME: { final float value1 = Float.intBitsToFloat(value1AsInt); final long value2 = OVarIntSerializer.readAsLong(fieldValue2); return value1 == value2; } case SHORT: { final float value1 = Float.intBitsToFloat(value1AsInt); final short value2 = OVarIntSerializer.readAsShort(fieldValue2); return value1 == value2; } case BYTE: { final float value1 = Float.intBitsToFloat(value1AsInt); final byte value2 = readByte(fieldValue2); return value1 == value2; } case FLOAT: { final float value2AsInt = readInteger(fieldValue2); return value1AsInt == value2AsInt; } case DOUBLE: { final float value1 = Float.intBitsToFloat(value1AsInt); final double value2 = Double.longBitsToDouble(readLong(fieldValue2)); return value1 == value2; } case STRING: { final float value1 = Float.intBitsToFloat(value1AsInt); return Float.parseFloat(readString(fieldValue2)) == value1; } case DECIMAL: { final float value1 = Float.intBitsToFloat(value1AsInt); final BigDecimal value2 = ODecimalSerializer.INSTANCE.deserialize(fieldValue2.bytes, fieldValue2.offset); return value1 == value2.floatValue(); } } break; } case BYTE: { final byte value1 = readByte(fieldValue1); switch (iField2.type) { case INTEGER: { final int value2 = OVarIntSerializer.readAsInteger(fieldValue2); return value1 == value2; } case LONG: case DATETIME: { final long value2 = OVarIntSerializer.readAsLong(fieldValue2); return value1 == value2; } case SHORT: { final short value2 = OVarIntSerializer.readAsShort(fieldValue2); return value1 == value2; } case BYTE: { final byte value2 = readByte(fieldValue2); return value1 == value2; } case FLOAT: { final float value2 = Float.intBitsToFloat(readInteger(fieldValue2)); return value1 == value2; } case DOUBLE: { final double value2 = Double.longBitsToDouble(readLong(fieldValue2)); return value1 == value2; } case STRING: { final byte value2 = Byte.parseByte((readString(fieldValue2))); return value1 == value2; } case DECIMAL: { final BigDecimal value2 = ODecimalSerializer.INSTANCE.deserialize(fieldValue2.bytes, fieldValue2.offset); return value1 == value2.byteValue(); } } break; } case BOOLEAN: { final boolean value1 = readByte(fieldValue1) == 1; switch (iField2.type) { case BOOLEAN: { final boolean value2 = readByte(fieldValue2) == 1; return value1 == value2; } case STRING: { final String str = readString(fieldValue2); return Boolean.parseBoolean(str) == value1; } } break; } case DATE: { final long value1 = OVarIntSerializer.readAsLong(fieldValue1) * MILLISEC_PER_DAY; switch (iField2.type) { case INTEGER: { final int value2 = OVarIntSerializer.readAsInteger(fieldValue2); return value1 == value2; } case LONG: case DATETIME: { long value2 = OVarIntSerializer.readAsLong(fieldValue2); value2 = convertDayToTimezone(ODateHelper.getDatabaseTimeZone(), TimeZone.getTimeZone("GMT"), value2); return value1 == value2; } case DATE: { final long value2 = OVarIntSerializer.readAsLong(fieldValue2) * MILLISEC_PER_DAY; return value1 == value2; } case SHORT: { final short value2 = OVarIntSerializer.readAsShort(fieldValue2); return value1 == value2; } case FLOAT: { final float value2 = Float.intBitsToFloat(readInteger(fieldValue2)); return value1 == value2; } case DOUBLE: { final double value2 = Double.longBitsToDouble(readLong(fieldValue2)); return value1 == value2; } case STRING: { } case DECIMAL: { final BigDecimal value2 = ODecimalSerializer.INSTANCE.deserialize(fieldValue2.bytes, fieldValue2.offset); return value1 == value2.longValue(); } } break; } case DATETIME: { final long value1 = OVarIntSerializer.readAsLong(fieldValue1); switch (iField2.type) { case INTEGER: { final int value2 = OVarIntSerializer.readAsInteger(fieldValue2); return value1 == value2; } case LONG: case DATETIME: { final long value2 = OVarIntSerializer.readAsLong(fieldValue2); return value1 == value2; } case DATE: { final long value2 = OVarIntSerializer.readAsLong(fieldValue2) * MILLISEC_PER_DAY; return value1 == value2; } case SHORT: { final short value2 = OVarIntSerializer.readAsShort(fieldValue2); return value1 == value2; } case FLOAT: { final float value2 = Float.intBitsToFloat(readInteger(fieldValue2)); return value1 == value2; } case DOUBLE: { final double value2 = Double.longBitsToDouble(readLong(fieldValue2)); return value1 == value2; } case STRING: { final String value2AsString = readString(fieldValue2); if (OIOUtils.isLong(value2AsString)) { final long value2 = Long.parseLong(value2AsString); return value1 == value2; } final ODatabaseDocumentInternal db = ODatabaseRecordThreadLocal.instance().getIfDefined(); try { final SimpleDateFormat dateFormat = db != null ? db.getStorage().getConfiguration().getDateTimeFormatInstance() : new SimpleDateFormat(OStorageConfiguration.DEFAULT_DATETIME_FORMAT); final Date value2AsDate = dateFormat.parse(value2AsString); final long value2 = value2AsDate.getTime(); return value1 == value2; } catch (ParseException ignore) { try { final SimpleDateFormat dateFormat = db != null ? db.getStorage().getConfiguration().getDateFormatInstance() : new SimpleDateFormat(OStorageConfiguration.DEFAULT_DATE_FORMAT); final Date value2AsDate = dateFormat.parse(value2AsString); final long value2 = value2AsDate.getTime(); return value1 == value2; } catch (ParseException ignored) { return new Date(value1).toString().equals(value2AsString); } } } case DECIMAL: { final BigDecimal value2 = ODecimalSerializer.INSTANCE.deserialize(fieldValue2.bytes, fieldValue2.offset); return value1 == value2.longValue(); } } break; } case BINARY: { switch (iField2.type) { case BINARY: { final int length1 = OVarIntSerializer.readAsInteger(fieldValue1); final int length2 = OVarIntSerializer.readAsInteger(fieldValue2); if (length1 != length2) return false; for (int i = 0; i < length1; ++i) { if (fieldValue1.bytes[fieldValue1.offset + i] != fieldValue2.bytes[fieldValue2.offset + i]) return false; } return true; } } break; } case LINK: { switch (iField2.type) { case LINK: { final int clusterId1 = OVarIntSerializer.readAsInteger(fieldValue1); final int clusterId2 = OVarIntSerializer.readAsInteger(fieldValue2); if (clusterId1 != clusterId2) return false; final long clusterPos1 = OVarIntSerializer.readAsLong(fieldValue1); final long clusterPos2 = OVarIntSerializer.readAsLong(fieldValue2); if (clusterPos1 == clusterPos2) return true; break; } case STRING: { return readOptimizedLink(fieldValue1, false).toString().equals(readString(fieldValue2)); } } break; } case DECIMAL: { final BigDecimal value1 = ODecimalSerializer.INSTANCE.deserialize(fieldValue1.bytes, fieldValue1.offset); switch (iField2.type) { case INTEGER: { final int value2 = OVarIntSerializer.readAsInteger(fieldValue2); return value1.equals(new BigDecimal(value2)); } case LONG: case DATETIME: { final long value2 = OVarIntSerializer.readAsLong(fieldValue2); return value1.equals(new BigDecimal(value2)); } case SHORT: { final short value2 = OVarIntSerializer.readAsShort(fieldValue2); return value1.equals(new BigDecimal(value2)); } case FLOAT: { final float value2 = Float.intBitsToFloat(readInteger(fieldValue2)); return value1.equals(new BigDecimal(value2)); } case DOUBLE: { final double value2 = Double.longBitsToDouble(readLong(fieldValue2)); return value1.equals(new BigDecimal(value2)); } case STRING: { return value1.toString().equals(readString(fieldValue2)); } case DECIMAL: { final BigDecimal value2 = ODecimalSerializer.INSTANCE.deserialize(fieldValue2.bytes, fieldValue2.offset); return value1.equals(value2); } } break; } } } finally { fieldValue1.offset = offset1; fieldValue2.offset = offset2; } return false; }
class class_name[name] begin[{] method[isEqual, return_type[type[boolean]], modifier[public], parameter[iField1, iField2]] begin[{] local_variable[type[BytesContainer], fieldValue1] local_variable[type[int], offset1] local_variable[type[BytesContainer], fieldValue2] local_variable[type[int], offset2] TryStatement(block=[SwitchStatement(cases=[SwitchStatementCase(case=['INTEGER'], statements=[BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberReference(member=fieldValue1, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=readAsInteger, postfix_operators=[], prefix_operators=[], qualifier=OVarIntSerializer, selectors=[], type_arguments=None), name=value1)], modifiers={'final'}, type=BasicType(dimensions=[], name=int)), SwitchStatement(cases=[SwitchStatementCase(case=['INTEGER'], statements=[BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberReference(member=fieldValue2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=readAsInteger, postfix_operators=[], prefix_operators=[], qualifier=OVarIntSerializer, selectors=[], type_arguments=None), name=value2)], modifiers={'final'}, type=BasicType(dimensions=[], name=int)), ReturnStatement(expression=BinaryOperation(operandl=MemberReference(member=value1, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=value2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator===), label=None)])]), SwitchStatementCase(case=['LONG', 'DATETIME'], statements=[BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberReference(member=fieldValue2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=readAsLong, postfix_operators=[], prefix_operators=[], qualifier=OVarIntSerializer, selectors=[], type_arguments=None), name=value2)], modifiers={'final'}, type=BasicType(dimensions=[], name=long)), ReturnStatement(expression=BinaryOperation(operandl=MemberReference(member=value1, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=value2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator===), label=None)])]), SwitchStatementCase(case=['DATE'], statements=[BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=BinaryOperation(operandl=MethodInvocation(arguments=[MemberReference(member=fieldValue2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=readAsLong, postfix_operators=[], prefix_operators=[], qualifier=OVarIntSerializer, selectors=[], type_arguments=None), operandr=MemberReference(member=MILLISEC_PER_DAY, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=*), name=value2)], modifiers={'final'}, type=BasicType(dimensions=[], name=long)), ReturnStatement(expression=BinaryOperation(operandl=MemberReference(member=value1, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=value2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator===), label=None)])]), SwitchStatementCase(case=['SHORT'], statements=[BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberReference(member=fieldValue2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=readAsShort, postfix_operators=[], prefix_operators=[], qualifier=OVarIntSerializer, selectors=[], type_arguments=None), name=value2)], modifiers={'final'}, type=BasicType(dimensions=[], name=short)), ReturnStatement(expression=BinaryOperation(operandl=MemberReference(member=value1, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=value2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator===), label=None)])]), SwitchStatementCase(case=['BYTE'], statements=[BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberReference(member=fieldValue2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=readByte, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), name=value2)], modifiers={'final'}, type=BasicType(dimensions=[], name=byte)), ReturnStatement(expression=BinaryOperation(operandl=MemberReference(member=value1, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=value2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator===), label=None)])]), SwitchStatementCase(case=['FLOAT'], statements=[BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MethodInvocation(arguments=[MemberReference(member=fieldValue2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=readInteger, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None)], member=intBitsToFloat, postfix_operators=[], prefix_operators=[], qualifier=Float, selectors=[], type_arguments=None), name=value2)], modifiers={'final'}, type=BasicType(dimensions=[], name=float)), ReturnStatement(expression=BinaryOperation(operandl=MemberReference(member=value1, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=value2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator===), label=None)])]), SwitchStatementCase(case=['DOUBLE'], statements=[BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MethodInvocation(arguments=[MemberReference(member=fieldValue2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=readLong, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None)], member=longBitsToDouble, postfix_operators=[], prefix_operators=[], qualifier=Double, selectors=[], type_arguments=None), name=value2)], modifiers={'final'}, type=BasicType(dimensions=[], name=double)), ReturnStatement(expression=BinaryOperation(operandl=MemberReference(member=value1, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=value2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator===), label=None)])]), SwitchStatementCase(case=['STRING'], statements=[BlockStatement(label=None, statements=[ReturnStatement(expression=BinaryOperation(operandl=MethodInvocation(arguments=[MethodInvocation(arguments=[MemberReference(member=fieldValue2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=readString, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None)], member=parseInt, postfix_operators=[], prefix_operators=[], qualifier=Integer, selectors=[], type_arguments=None), operandr=MemberReference(member=value1, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator===), label=None)])]), SwitchStatementCase(case=['DECIMAL'], statements=[BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberReference(member=bytes, postfix_operators=[], prefix_operators=[], qualifier=fieldValue2, selectors=[]), MemberReference(member=offset, postfix_operators=[], prefix_operators=[], qualifier=fieldValue2, selectors=[])], member=deserialize, postfix_operators=[], prefix_operators=[], qualifier=ODecimalSerializer.INSTANCE, selectors=[], type_arguments=None), name=value2)], modifiers={'final'}, type=ReferenceType(arguments=None, dimensions=[], name=BigDecimal, sub_type=None)), ReturnStatement(expression=BinaryOperation(operandl=MemberReference(member=value1, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MethodInvocation(arguments=[], member=intValue, postfix_operators=[], prefix_operators=[], qualifier=value2, selectors=[], type_arguments=None), operator===), label=None)])])], expression=MemberReference(member=type, postfix_operators=[], prefix_operators=[], qualifier=iField2, selectors=[]), label=None), BreakStatement(goto=None, label=None)])]), SwitchStatementCase(case=['LONG'], statements=[BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberReference(member=fieldValue1, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=readAsLong, postfix_operators=[], prefix_operators=[], qualifier=OVarIntSerializer, selectors=[], type_arguments=None), name=value1)], modifiers={'final'}, type=BasicType(dimensions=[], name=long)), SwitchStatement(cases=[SwitchStatementCase(case=['INTEGER'], statements=[BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberReference(member=fieldValue2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=readAsInteger, postfix_operators=[], prefix_operators=[], qualifier=OVarIntSerializer, selectors=[], type_arguments=None), name=value2)], modifiers={'final'}, type=BasicType(dimensions=[], name=int)), ReturnStatement(expression=BinaryOperation(operandl=MemberReference(member=value1, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=value2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator===), label=None)])]), SwitchStatementCase(case=['LONG', 'DATETIME'], statements=[BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberReference(member=fieldValue2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=readAsLong, postfix_operators=[], prefix_operators=[], qualifier=OVarIntSerializer, selectors=[], type_arguments=None), name=value2)], modifiers={'final'}, type=BasicType(dimensions=[], name=long)), ReturnStatement(expression=BinaryOperation(operandl=MemberReference(member=value1, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=value2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator===), label=None)])]), SwitchStatementCase(case=['DATE'], statements=[BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=BinaryOperation(operandl=MethodInvocation(arguments=[MemberReference(member=fieldValue2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=readAsLong, postfix_operators=[], prefix_operators=[], qualifier=OVarIntSerializer, selectors=[], type_arguments=None), operandr=MemberReference(member=MILLISEC_PER_DAY, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=*), name=value2)], modifiers={'final'}, type=BasicType(dimensions=[], name=long)), ReturnStatement(expression=BinaryOperation(operandl=MemberReference(member=value1, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=value2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator===), label=None)])]), SwitchStatementCase(case=['SHORT'], statements=[BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberReference(member=fieldValue2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=readAsShort, postfix_operators=[], prefix_operators=[], qualifier=OVarIntSerializer, selectors=[], type_arguments=None), name=value2)], modifiers={'final'}, type=BasicType(dimensions=[], name=short)), ReturnStatement(expression=BinaryOperation(operandl=MemberReference(member=value1, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=value2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator===), label=None)])]), SwitchStatementCase(case=['BYTE'], statements=[BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberReference(member=fieldValue2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=readByte, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), name=value2)], modifiers={'final'}, type=BasicType(dimensions=[], name=byte)), ReturnStatement(expression=BinaryOperation(operandl=MemberReference(member=value1, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=value2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator===), label=None)])]), SwitchStatementCase(case=['FLOAT'], statements=[BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MethodInvocation(arguments=[MemberReference(member=fieldValue2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=readInteger, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None)], member=intBitsToFloat, postfix_operators=[], prefix_operators=[], qualifier=Float, selectors=[], type_arguments=None), name=value2)], modifiers={'final'}, type=BasicType(dimensions=[], name=float)), ReturnStatement(expression=BinaryOperation(operandl=MemberReference(member=value1, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=value2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator===), label=None)])]), SwitchStatementCase(case=['DOUBLE'], statements=[BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MethodInvocation(arguments=[MemberReference(member=fieldValue2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=readLong, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None)], member=longBitsToDouble, postfix_operators=[], prefix_operators=[], qualifier=Double, selectors=[], type_arguments=None), name=value2)], modifiers={'final'}, type=BasicType(dimensions=[], name=double)), ReturnStatement(expression=BinaryOperation(operandl=MemberReference(member=value1, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=value2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator===), label=None)])]), SwitchStatementCase(case=['STRING'], statements=[BlockStatement(label=None, statements=[ReturnStatement(expression=BinaryOperation(operandl=MethodInvocation(arguments=[MethodInvocation(arguments=[MemberReference(member=fieldValue2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=readString, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None)], member=parseLong, postfix_operators=[], prefix_operators=[], qualifier=Long, selectors=[], type_arguments=None), operandr=MemberReference(member=value1, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator===), label=None)])]), SwitchStatementCase(case=['DECIMAL'], statements=[BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberReference(member=bytes, postfix_operators=[], prefix_operators=[], qualifier=fieldValue2, selectors=[]), MemberReference(member=offset, postfix_operators=[], prefix_operators=[], qualifier=fieldValue2, selectors=[])], member=deserialize, postfix_operators=[], prefix_operators=[], qualifier=ODecimalSerializer.INSTANCE, selectors=[], type_arguments=None), name=value2)], modifiers={'final'}, type=ReferenceType(arguments=None, dimensions=[], name=BigDecimal, sub_type=None)), ReturnStatement(expression=BinaryOperation(operandl=MemberReference(member=value1, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MethodInvocation(arguments=[], member=longValue, postfix_operators=[], prefix_operators=[], qualifier=value2, selectors=[], type_arguments=None), operator===), label=None)])])], expression=MemberReference(member=type, postfix_operators=[], prefix_operators=[], qualifier=iField2, selectors=[]), label=None), BreakStatement(goto=None, label=None)])]), SwitchStatementCase(case=['SHORT'], statements=[BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberReference(member=fieldValue1, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=readAsShort, postfix_operators=[], prefix_operators=[], qualifier=OVarIntSerializer, selectors=[], type_arguments=None), name=value1)], modifiers={'final'}, type=BasicType(dimensions=[], name=short)), SwitchStatement(cases=[SwitchStatementCase(case=['INTEGER'], statements=[BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberReference(member=fieldValue2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=readAsInteger, postfix_operators=[], prefix_operators=[], qualifier=OVarIntSerializer, selectors=[], type_arguments=None), name=value2)], modifiers={'final'}, type=BasicType(dimensions=[], name=int)), ReturnStatement(expression=BinaryOperation(operandl=MemberReference(member=value1, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=value2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator===), label=None)])]), SwitchStatementCase(case=['LONG', 'DATETIME'], statements=[BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberReference(member=fieldValue2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=readAsLong, postfix_operators=[], prefix_operators=[], qualifier=OVarIntSerializer, selectors=[], type_arguments=None), name=value2)], modifiers={'final'}, type=BasicType(dimensions=[], name=long)), ReturnStatement(expression=BinaryOperation(operandl=MemberReference(member=value1, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=value2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator===), label=None)])]), SwitchStatementCase(case=['DATE'], statements=[BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=BinaryOperation(operandl=MethodInvocation(arguments=[MemberReference(member=fieldValue2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=readAsLong, postfix_operators=[], prefix_operators=[], qualifier=OVarIntSerializer, selectors=[], type_arguments=None), operandr=MemberReference(member=MILLISEC_PER_DAY, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=*), name=value2)], modifiers={'final'}, type=BasicType(dimensions=[], name=long)), ReturnStatement(expression=BinaryOperation(operandl=MemberReference(member=value1, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=value2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator===), label=None)])]), SwitchStatementCase(case=['SHORT'], statements=[BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberReference(member=fieldValue2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=readAsShort, postfix_operators=[], prefix_operators=[], qualifier=OVarIntSerializer, selectors=[], type_arguments=None), name=value2)], modifiers={'final'}, type=BasicType(dimensions=[], name=short)), ReturnStatement(expression=BinaryOperation(operandl=MemberReference(member=value1, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=value2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator===), label=None)])]), SwitchStatementCase(case=['BYTE'], statements=[BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberReference(member=fieldValue2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=readByte, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), name=value2)], modifiers={'final'}, type=BasicType(dimensions=[], name=byte)), ReturnStatement(expression=BinaryOperation(operandl=MemberReference(member=value1, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=value2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator===), label=None)])]), SwitchStatementCase(case=['FLOAT'], statements=[BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MethodInvocation(arguments=[MemberReference(member=fieldValue2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=readInteger, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None)], member=intBitsToFloat, postfix_operators=[], prefix_operators=[], qualifier=Float, selectors=[], type_arguments=None), name=value2)], modifiers={'final'}, type=BasicType(dimensions=[], name=float)), ReturnStatement(expression=BinaryOperation(operandl=MemberReference(member=value1, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=value2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator===), label=None)])]), SwitchStatementCase(case=['DOUBLE'], statements=[BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MethodInvocation(arguments=[MemberReference(member=fieldValue2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=readLong, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None)], member=longBitsToDouble, postfix_operators=[], prefix_operators=[], qualifier=Double, selectors=[], type_arguments=None), name=value2)], modifiers={'final'}, type=BasicType(dimensions=[], name=double)), ReturnStatement(expression=BinaryOperation(operandl=MemberReference(member=value1, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=value2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator===), label=None)])]), SwitchStatementCase(case=['STRING'], statements=[BlockStatement(label=None, statements=[ReturnStatement(expression=BinaryOperation(operandl=MethodInvocation(arguments=[MethodInvocation(arguments=[MemberReference(member=fieldValue2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=readString, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None)], member=parseShort, postfix_operators=[], prefix_operators=[], qualifier=Short, selectors=[], type_arguments=None), operandr=MemberReference(member=value1, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator===), label=None)])]), SwitchStatementCase(case=['DECIMAL'], statements=[BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberReference(member=bytes, postfix_operators=[], prefix_operators=[], qualifier=fieldValue2, selectors=[]), MemberReference(member=offset, postfix_operators=[], prefix_operators=[], qualifier=fieldValue2, selectors=[])], member=deserialize, postfix_operators=[], prefix_operators=[], qualifier=ODecimalSerializer.INSTANCE, selectors=[], type_arguments=None), name=value2)], modifiers={'final'}, type=ReferenceType(arguments=None, dimensions=[], name=BigDecimal, sub_type=None)), ReturnStatement(expression=BinaryOperation(operandl=MemberReference(member=value1, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MethodInvocation(arguments=[], member=shortValue, postfix_operators=[], prefix_operators=[], qualifier=value2, selectors=[], type_arguments=None), operator===), label=None)])])], expression=MemberReference(member=type, postfix_operators=[], prefix_operators=[], qualifier=iField2, selectors=[]), label=None), BreakStatement(goto=None, label=None)])]), SwitchStatementCase(case=['STRING'], statements=[BlockStatement(label=None, statements=[SwitchStatement(cases=[SwitchStatementCase(case=['INTEGER'], statements=[BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberReference(member=fieldValue2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=readAsInteger, postfix_operators=[], prefix_operators=[], qualifier=OVarIntSerializer, selectors=[], type_arguments=None), name=value2)], modifiers={'final'}, type=BasicType(dimensions=[], name=int)), ReturnStatement(expression=BinaryOperation(operandl=MethodInvocation(arguments=[MethodInvocation(arguments=[MemberReference(member=fieldValue1, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=readString, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None)], member=parseInt, postfix_operators=[], prefix_operators=[], qualifier=Integer, selectors=[], type_arguments=None), operandr=MemberReference(member=value2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator===), label=None)])]), SwitchStatementCase(case=['LONG', 'DATETIME'], statements=[BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberReference(member=fieldValue2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=readAsLong, postfix_operators=[], prefix_operators=[], qualifier=OVarIntSerializer, selectors=[], type_arguments=None), name=value2)], modifiers={'final'}, type=BasicType(dimensions=[], name=long)), ReturnStatement(expression=BinaryOperation(operandl=MethodInvocation(arguments=[MethodInvocation(arguments=[MemberReference(member=fieldValue1, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=readString, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None)], member=parseLong, postfix_operators=[], prefix_operators=[], qualifier=Long, selectors=[], type_arguments=None), operandr=MemberReference(member=value2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator===), label=None)])]), SwitchStatementCase(case=['DATE'], statements=[BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=BinaryOperation(operandl=MethodInvocation(arguments=[MemberReference(member=fieldValue2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=readAsLong, postfix_operators=[], prefix_operators=[], qualifier=OVarIntSerializer, selectors=[], type_arguments=None), operandr=MemberReference(member=MILLISEC_PER_DAY, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=*), name=value2)], modifiers={'final'}, type=BasicType(dimensions=[], name=long)), ReturnStatement(expression=BinaryOperation(operandl=MethodInvocation(arguments=[MethodInvocation(arguments=[MemberReference(member=fieldValue1, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=readString, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None)], member=parseLong, postfix_operators=[], prefix_operators=[], qualifier=Long, selectors=[], type_arguments=None), operandr=MemberReference(member=value2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator===), label=None)])]), SwitchStatementCase(case=['SHORT'], statements=[BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberReference(member=fieldValue2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=readAsShort, postfix_operators=[], prefix_operators=[], qualifier=OVarIntSerializer, selectors=[], type_arguments=None), name=value2)], modifiers={'final'}, type=BasicType(dimensions=[], name=short)), ReturnStatement(expression=BinaryOperation(operandl=MethodInvocation(arguments=[MethodInvocation(arguments=[MemberReference(member=fieldValue1, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=readString, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None)], member=parseShort, postfix_operators=[], prefix_operators=[], qualifier=Short, selectors=[], type_arguments=None), operandr=MemberReference(member=value2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator===), label=None)])]), SwitchStatementCase(case=['BYTE'], statements=[BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberReference(member=fieldValue2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=readByte, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), name=value2)], modifiers={'final'}, type=BasicType(dimensions=[], name=byte)), ReturnStatement(expression=BinaryOperation(operandl=MethodInvocation(arguments=[MethodInvocation(arguments=[MemberReference(member=fieldValue1, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=readString, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None)], member=parseByte, postfix_operators=[], prefix_operators=[], qualifier=Byte, selectors=[], type_arguments=None), operandr=MemberReference(member=value2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator===), label=None)])]), SwitchStatementCase(case=['FLOAT'], statements=[BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MethodInvocation(arguments=[MemberReference(member=fieldValue2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=readInteger, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None)], member=intBitsToFloat, postfix_operators=[], prefix_operators=[], qualifier=Float, selectors=[], type_arguments=None), name=value2)], modifiers={'final'}, type=BasicType(dimensions=[], name=float)), ReturnStatement(expression=BinaryOperation(operandl=MethodInvocation(arguments=[MethodInvocation(arguments=[MemberReference(member=fieldValue1, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=readString, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None)], member=parseFloat, postfix_operators=[], prefix_operators=[], qualifier=Float, selectors=[], type_arguments=None), operandr=MemberReference(member=value2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator===), label=None)])]), SwitchStatementCase(case=['DOUBLE'], statements=[BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MethodInvocation(arguments=[MemberReference(member=fieldValue2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=readLong, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None)], member=longBitsToDouble, postfix_operators=[], prefix_operators=[], qualifier=Double, selectors=[], type_arguments=None), name=value2)], modifiers={'final'}, type=BasicType(dimensions=[], name=double)), ReturnStatement(expression=BinaryOperation(operandl=MethodInvocation(arguments=[MethodInvocation(arguments=[MemberReference(member=fieldValue1, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=readString, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None)], member=parseDouble, postfix_operators=[], prefix_operators=[], qualifier=Double, selectors=[], type_arguments=None), operandr=MemberReference(member=value2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator===), label=None)])]), SwitchStatementCase(case=['STRING'], statements=[BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberReference(member=fieldValue1, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=readAsInteger, postfix_operators=[], prefix_operators=[], qualifier=OVarIntSerializer, selectors=[], type_arguments=None), name=len1)], modifiers={'final'}, type=BasicType(dimensions=[], name=int)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberReference(member=fieldValue2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=readAsInteger, postfix_operators=[], prefix_operators=[], qualifier=OVarIntSerializer, selectors=[], type_arguments=None), name=len2)], modifiers={'final'}, type=BasicType(dimensions=[], name=int)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=len1, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=len2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=!=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=false), label=None)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=TernaryExpression(condition=BinaryOperation(operandl=BinaryOperation(operandl=MemberReference(member=collate, postfix_operators=[], prefix_operators=[], qualifier=iField1, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=null), operator=!=), operandr=MethodInvocation(arguments=[MethodInvocation(arguments=[], member=getName, postfix_operators=[], prefix_operators=[], qualifier=iField1.collate, selectors=[], type_arguments=None)], member=equals, postfix_operators=[], prefix_operators=['!'], qualifier=ODefaultCollate.NAME, selectors=[], type_arguments=None), operator=&&), if_false=TernaryExpression(condition=BinaryOperation(operandl=BinaryOperation(operandl=MemberReference(member=collate, postfix_operators=[], prefix_operators=[], qualifier=iField2, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=null), operator=!=), operandr=MethodInvocation(arguments=[MethodInvocation(arguments=[], member=getName, postfix_operators=[], prefix_operators=[], qualifier=iField2.collate, selectors=[], type_arguments=None)], member=equals, postfix_operators=[], prefix_operators=['!'], qualifier=ODefaultCollate.NAME, selectors=[], type_arguments=None), operator=&&), if_false=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=null), if_true=MemberReference(member=collate, postfix_operators=[], prefix_operators=[], qualifier=iField2, selectors=[])), if_true=MemberReference(member=collate, postfix_operators=[], prefix_operators=[], qualifier=iField1, selectors=[])), name=collate)], modifiers={'final'}, type=ReferenceType(arguments=None, dimensions=[], name=OCollate, sub_type=None)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=collate, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=null), operator=!=), else_statement=BlockStatement(label=None, statements=[ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=bytes, postfix_operators=[], prefix_operators=[], qualifier=fieldValue1, selectors=[ArraySelector(index=BinaryOperation(operandl=MemberReference(member=offset, postfix_operators=[], prefix_operators=[], qualifier=fieldValue1, selectors=[]), operandr=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=+))]), operandr=MemberReference(member=bytes, postfix_operators=[], prefix_operators=[], qualifier=fieldValue2, selectors=[ArraySelector(index=BinaryOperation(operandl=MemberReference(member=offset, postfix_operators=[], prefix_operators=[], qualifier=fieldValue2, selectors=[]), operandr=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=+))]), 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=len1, postfix_operators=[], prefix_operators=[], qualifier=, 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)]), label=None, then_statement=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=Cast(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[MemberReference(member=bytes, postfix_operators=[], prefix_operators=[], qualifier=fieldValue1, selectors=[]), MemberReference(member=offset, postfix_operators=[], prefix_operators=[], qualifier=fieldValue1, selectors=[]), MemberReference(member=len1, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=stringFromBytes, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None)], member=transform, postfix_operators=[], prefix_operators=[], qualifier=collate, selectors=[], type_arguments=None), type=ReferenceType(arguments=None, dimensions=[], name=String, sub_type=None)), name=str1)], modifiers={'final'}, type=ReferenceType(arguments=None, dimensions=[], name=String, sub_type=None)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=Cast(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[MemberReference(member=bytes, postfix_operators=[], prefix_operators=[], qualifier=fieldValue2, selectors=[]), MemberReference(member=offset, postfix_operators=[], prefix_operators=[], qualifier=fieldValue2, selectors=[]), MemberReference(member=len2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=stringFromBytes, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None)], member=transform, postfix_operators=[], prefix_operators=[], qualifier=collate, selectors=[], type_arguments=None), type=ReferenceType(arguments=None, dimensions=[], name=String, sub_type=None)), name=str2)], modifiers={'final'}, type=ReferenceType(arguments=None, dimensions=[], name=String, sub_type=None)), ReturnStatement(expression=MethodInvocation(arguments=[MemberReference(member=str2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=equals, postfix_operators=[], prefix_operators=[], qualifier=str1, selectors=[], type_arguments=None), label=None)])), ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=true), label=None)])]), SwitchStatementCase(case=['DECIMAL'], statements=[BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberReference(member=bytes, postfix_operators=[], prefix_operators=[], qualifier=fieldValue2, selectors=[]), MemberReference(member=offset, postfix_operators=[], prefix_operators=[], qualifier=fieldValue2, selectors=[])], member=deserialize, postfix_operators=[], prefix_operators=[], qualifier=ODecimalSerializer.INSTANCE, selectors=[], type_arguments=None), name=value2)], modifiers={'final'}, type=ReferenceType(arguments=None, dimensions=[], name=BigDecimal, sub_type=None)), ReturnStatement(expression=ClassCreator(arguments=[MethodInvocation(arguments=[MemberReference(member=fieldValue1, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=readString, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None)], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[MethodInvocation(arguments=[MemberReference(member=value2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=equals, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)], type=ReferenceType(arguments=None, dimensions=None, name=BigDecimal, sub_type=None)), label=None)])]), SwitchStatementCase(case=['BOOLEAN'], statements=[BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=BinaryOperation(operandl=MethodInvocation(arguments=[MemberReference(member=fieldValue2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=readByte, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), operator===), name=value2)], modifiers={'final'}, type=BasicType(dimensions=[], name=boolean)), ReturnStatement(expression=BinaryOperation(operandl=MethodInvocation(arguments=[MethodInvocation(arguments=[MemberReference(member=fieldValue1, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=readString, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None)], member=parseBoolean, postfix_operators=[], prefix_operators=[], qualifier=Boolean, selectors=[], type_arguments=None), operandr=MemberReference(member=value2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator===), label=None)])])], expression=MemberReference(member=type, postfix_operators=[], prefix_operators=[], qualifier=iField2, selectors=[]), label=None), BreakStatement(goto=None, label=None)])]), SwitchStatementCase(case=['DOUBLE'], statements=[BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberReference(member=fieldValue1, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=readLong, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), name=value1AsLong)], modifiers={'final'}, type=BasicType(dimensions=[], name=long)), SwitchStatement(cases=[SwitchStatementCase(case=['INTEGER'], statements=[BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberReference(member=value1AsLong, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=longBitsToDouble, postfix_operators=[], prefix_operators=[], qualifier=Double, selectors=[], type_arguments=None), name=value1)], modifiers={'final'}, type=BasicType(dimensions=[], name=double)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberReference(member=fieldValue2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=readAsInteger, postfix_operators=[], prefix_operators=[], qualifier=OVarIntSerializer, selectors=[], type_arguments=None), name=value2)], modifiers={'final'}, type=BasicType(dimensions=[], name=int)), ReturnStatement(expression=BinaryOperation(operandl=MemberReference(member=value1, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=value2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator===), label=None)])]), SwitchStatementCase(case=['LONG', 'DATETIME'], statements=[BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberReference(member=value1AsLong, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=longBitsToDouble, postfix_operators=[], prefix_operators=[], qualifier=Double, selectors=[], type_arguments=None), name=value1)], modifiers={'final'}, type=BasicType(dimensions=[], name=double)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberReference(member=fieldValue2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=readAsLong, postfix_operators=[], prefix_operators=[], qualifier=OVarIntSerializer, selectors=[], type_arguments=None), name=value2)], modifiers={'final'}, type=BasicType(dimensions=[], name=long)), ReturnStatement(expression=BinaryOperation(operandl=MemberReference(member=value1, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=value2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator===), label=None)])]), SwitchStatementCase(case=['SHORT'], statements=[BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberReference(member=value1AsLong, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=longBitsToDouble, postfix_operators=[], prefix_operators=[], qualifier=Double, selectors=[], type_arguments=None), name=value1)], modifiers={'final'}, type=BasicType(dimensions=[], name=double)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberReference(member=fieldValue2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=readAsShort, postfix_operators=[], prefix_operators=[], qualifier=OVarIntSerializer, selectors=[], type_arguments=None), name=value2)], modifiers={'final'}, type=BasicType(dimensions=[], name=short)), ReturnStatement(expression=BinaryOperation(operandl=MemberReference(member=value1, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=value2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator===), label=None)])]), SwitchStatementCase(case=['BYTE'], statements=[BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberReference(member=value1AsLong, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=longBitsToDouble, postfix_operators=[], prefix_operators=[], qualifier=Double, selectors=[], type_arguments=None), name=value1)], modifiers={'final'}, type=BasicType(dimensions=[], name=double)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberReference(member=fieldValue2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=readByte, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), name=value2)], modifiers={'final'}, type=BasicType(dimensions=[], name=byte)), ReturnStatement(expression=BinaryOperation(operandl=MemberReference(member=value1, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=value2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator===), label=None)])]), SwitchStatementCase(case=['FLOAT'], statements=[BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberReference(member=value1AsLong, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=longBitsToDouble, postfix_operators=[], prefix_operators=[], qualifier=Double, selectors=[], type_arguments=None), name=value1)], modifiers={'final'}, type=BasicType(dimensions=[], name=double)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MethodInvocation(arguments=[MemberReference(member=fieldValue2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=readInteger, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None)], member=intBitsToFloat, postfix_operators=[], prefix_operators=[], qualifier=Float, selectors=[], type_arguments=None), name=value2)], modifiers={'final'}, type=BasicType(dimensions=[], name=float)), ReturnStatement(expression=BinaryOperation(operandl=MemberReference(member=value1, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=value2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator===), label=None)])]), SwitchStatementCase(case=['DOUBLE'], statements=[BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberReference(member=fieldValue2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=readLong, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), name=value2AsLong)], modifiers={'final'}, type=BasicType(dimensions=[], name=double)), ReturnStatement(expression=BinaryOperation(operandl=MemberReference(member=value1AsLong, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=value2AsLong, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator===), label=None)])]), SwitchStatementCase(case=['STRING'], statements=[BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberReference(member=value1AsLong, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=longBitsToDouble, postfix_operators=[], prefix_operators=[], qualifier=Double, selectors=[], type_arguments=None), name=value1)], modifiers={'final'}, type=BasicType(dimensions=[], name=double)), ReturnStatement(expression=BinaryOperation(operandl=MethodInvocation(arguments=[MethodInvocation(arguments=[MemberReference(member=fieldValue2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=readString, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None)], member=parseDouble, postfix_operators=[], prefix_operators=[], qualifier=Double, selectors=[], type_arguments=None), operandr=MemberReference(member=value1, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator===), label=None)])]), SwitchStatementCase(case=['DECIMAL'], statements=[BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberReference(member=value1AsLong, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=longBitsToDouble, postfix_operators=[], prefix_operators=[], qualifier=Double, selectors=[], type_arguments=None), name=value1)], modifiers={'final'}, type=BasicType(dimensions=[], name=double)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberReference(member=bytes, postfix_operators=[], prefix_operators=[], qualifier=fieldValue2, selectors=[]), MemberReference(member=offset, postfix_operators=[], prefix_operators=[], qualifier=fieldValue2, selectors=[])], member=deserialize, postfix_operators=[], prefix_operators=[], qualifier=ODecimalSerializer.INSTANCE, selectors=[], type_arguments=None), name=value2)], modifiers={'final'}, type=ReferenceType(arguments=None, dimensions=[], name=BigDecimal, sub_type=None)), ReturnStatement(expression=BinaryOperation(operandl=MemberReference(member=value1, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MethodInvocation(arguments=[], member=doubleValue, postfix_operators=[], prefix_operators=[], qualifier=value2, selectors=[], type_arguments=None), operator===), label=None)])])], expression=MemberReference(member=type, postfix_operators=[], prefix_operators=[], qualifier=iField2, selectors=[]), label=None), BreakStatement(goto=None, label=None)])]), SwitchStatementCase(case=['FLOAT'], statements=[BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberReference(member=fieldValue1, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=readInteger, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), name=value1AsInt)], modifiers={'final'}, type=BasicType(dimensions=[], name=int)), SwitchStatement(cases=[SwitchStatementCase(case=['INTEGER'], statements=[BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberReference(member=value1AsInt, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=intBitsToFloat, postfix_operators=[], prefix_operators=[], qualifier=Float, selectors=[], type_arguments=None), name=value1)], modifiers={'final'}, type=BasicType(dimensions=[], name=float)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberReference(member=fieldValue2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=readAsInteger, postfix_operators=[], prefix_operators=[], qualifier=OVarIntSerializer, selectors=[], type_arguments=None), name=value2)], modifiers={'final'}, type=BasicType(dimensions=[], name=int)), ReturnStatement(expression=BinaryOperation(operandl=MemberReference(member=value1, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=value2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator===), label=None)])]), SwitchStatementCase(case=['LONG', 'DATETIME'], statements=[BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberReference(member=value1AsInt, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=intBitsToFloat, postfix_operators=[], prefix_operators=[], qualifier=Float, selectors=[], type_arguments=None), name=value1)], modifiers={'final'}, type=BasicType(dimensions=[], name=float)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberReference(member=fieldValue2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=readAsLong, postfix_operators=[], prefix_operators=[], qualifier=OVarIntSerializer, selectors=[], type_arguments=None), name=value2)], modifiers={'final'}, type=BasicType(dimensions=[], name=long)), ReturnStatement(expression=BinaryOperation(operandl=MemberReference(member=value1, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=value2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator===), label=None)])]), SwitchStatementCase(case=['SHORT'], statements=[BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberReference(member=value1AsInt, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=intBitsToFloat, postfix_operators=[], prefix_operators=[], qualifier=Float, selectors=[], type_arguments=None), name=value1)], modifiers={'final'}, type=BasicType(dimensions=[], name=float)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberReference(member=fieldValue2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=readAsShort, postfix_operators=[], prefix_operators=[], qualifier=OVarIntSerializer, selectors=[], type_arguments=None), name=value2)], modifiers={'final'}, type=BasicType(dimensions=[], name=short)), ReturnStatement(expression=BinaryOperation(operandl=MemberReference(member=value1, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=value2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator===), label=None)])]), SwitchStatementCase(case=['BYTE'], statements=[BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberReference(member=value1AsInt, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=intBitsToFloat, postfix_operators=[], prefix_operators=[], qualifier=Float, selectors=[], type_arguments=None), name=value1)], modifiers={'final'}, type=BasicType(dimensions=[], name=float)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberReference(member=fieldValue2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=readByte, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), name=value2)], modifiers={'final'}, type=BasicType(dimensions=[], name=byte)), ReturnStatement(expression=BinaryOperation(operandl=MemberReference(member=value1, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=value2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator===), label=None)])]), SwitchStatementCase(case=['FLOAT'], statements=[BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberReference(member=fieldValue2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=readInteger, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), name=value2AsInt)], modifiers={'final'}, type=BasicType(dimensions=[], name=float)), ReturnStatement(expression=BinaryOperation(operandl=MemberReference(member=value1AsInt, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=value2AsInt, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator===), label=None)])]), SwitchStatementCase(case=['DOUBLE'], statements=[BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberReference(member=value1AsInt, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=intBitsToFloat, postfix_operators=[], prefix_operators=[], qualifier=Float, selectors=[], type_arguments=None), name=value1)], modifiers={'final'}, type=BasicType(dimensions=[], name=float)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MethodInvocation(arguments=[MemberReference(member=fieldValue2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=readLong, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None)], member=longBitsToDouble, postfix_operators=[], prefix_operators=[], qualifier=Double, selectors=[], type_arguments=None), name=value2)], modifiers={'final'}, type=BasicType(dimensions=[], name=double)), ReturnStatement(expression=BinaryOperation(operandl=MemberReference(member=value1, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=value2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator===), label=None)])]), SwitchStatementCase(case=['STRING'], statements=[BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberReference(member=value1AsInt, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=intBitsToFloat, postfix_operators=[], prefix_operators=[], qualifier=Float, selectors=[], type_arguments=None), name=value1)], modifiers={'final'}, type=BasicType(dimensions=[], name=float)), ReturnStatement(expression=BinaryOperation(operandl=MethodInvocation(arguments=[MethodInvocation(arguments=[MemberReference(member=fieldValue2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=readString, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None)], member=parseFloat, postfix_operators=[], prefix_operators=[], qualifier=Float, selectors=[], type_arguments=None), operandr=MemberReference(member=value1, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator===), label=None)])]), SwitchStatementCase(case=['DECIMAL'], statements=[BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberReference(member=value1AsInt, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=intBitsToFloat, postfix_operators=[], prefix_operators=[], qualifier=Float, selectors=[], type_arguments=None), name=value1)], modifiers={'final'}, type=BasicType(dimensions=[], name=float)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberReference(member=bytes, postfix_operators=[], prefix_operators=[], qualifier=fieldValue2, selectors=[]), MemberReference(member=offset, postfix_operators=[], prefix_operators=[], qualifier=fieldValue2, selectors=[])], member=deserialize, postfix_operators=[], prefix_operators=[], qualifier=ODecimalSerializer.INSTANCE, selectors=[], type_arguments=None), name=value2)], modifiers={'final'}, type=ReferenceType(arguments=None, dimensions=[], name=BigDecimal, sub_type=None)), ReturnStatement(expression=BinaryOperation(operandl=MemberReference(member=value1, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MethodInvocation(arguments=[], member=floatValue, postfix_operators=[], prefix_operators=[], qualifier=value2, selectors=[], type_arguments=None), operator===), label=None)])])], expression=MemberReference(member=type, postfix_operators=[], prefix_operators=[], qualifier=iField2, selectors=[]), label=None), BreakStatement(goto=None, label=None)])]), SwitchStatementCase(case=['BYTE'], statements=[BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberReference(member=fieldValue1, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=readByte, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), name=value1)], modifiers={'final'}, type=BasicType(dimensions=[], name=byte)), SwitchStatement(cases=[SwitchStatementCase(case=['INTEGER'], statements=[BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberReference(member=fieldValue2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=readAsInteger, postfix_operators=[], prefix_operators=[], qualifier=OVarIntSerializer, selectors=[], type_arguments=None), name=value2)], modifiers={'final'}, type=BasicType(dimensions=[], name=int)), ReturnStatement(expression=BinaryOperation(operandl=MemberReference(member=value1, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=value2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator===), label=None)])]), SwitchStatementCase(case=['LONG', 'DATETIME'], statements=[BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberReference(member=fieldValue2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=readAsLong, postfix_operators=[], prefix_operators=[], qualifier=OVarIntSerializer, selectors=[], type_arguments=None), name=value2)], modifiers={'final'}, type=BasicType(dimensions=[], name=long)), ReturnStatement(expression=BinaryOperation(operandl=MemberReference(member=value1, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=value2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator===), label=None)])]), SwitchStatementCase(case=['SHORT'], statements=[BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberReference(member=fieldValue2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=readAsShort, postfix_operators=[], prefix_operators=[], qualifier=OVarIntSerializer, selectors=[], type_arguments=None), name=value2)], modifiers={'final'}, type=BasicType(dimensions=[], name=short)), ReturnStatement(expression=BinaryOperation(operandl=MemberReference(member=value1, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=value2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator===), label=None)])]), SwitchStatementCase(case=['BYTE'], statements=[BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberReference(member=fieldValue2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=readByte, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), name=value2)], modifiers={'final'}, type=BasicType(dimensions=[], name=byte)), ReturnStatement(expression=BinaryOperation(operandl=MemberReference(member=value1, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=value2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator===), label=None)])]), SwitchStatementCase(case=['FLOAT'], statements=[BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MethodInvocation(arguments=[MemberReference(member=fieldValue2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=readInteger, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None)], member=intBitsToFloat, postfix_operators=[], prefix_operators=[], qualifier=Float, selectors=[], type_arguments=None), name=value2)], modifiers={'final'}, type=BasicType(dimensions=[], name=float)), ReturnStatement(expression=BinaryOperation(operandl=MemberReference(member=value1, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=value2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator===), label=None)])]), SwitchStatementCase(case=['DOUBLE'], statements=[BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MethodInvocation(arguments=[MemberReference(member=fieldValue2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=readLong, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None)], member=longBitsToDouble, postfix_operators=[], prefix_operators=[], qualifier=Double, selectors=[], type_arguments=None), name=value2)], modifiers={'final'}, type=BasicType(dimensions=[], name=double)), ReturnStatement(expression=BinaryOperation(operandl=MemberReference(member=value1, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=value2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator===), label=None)])]), SwitchStatementCase(case=['STRING'], statements=[BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MethodInvocation(arguments=[MemberReference(member=fieldValue2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=readString, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None)], member=parseByte, postfix_operators=[], prefix_operators=[], qualifier=Byte, selectors=[], type_arguments=None), name=value2)], modifiers={'final'}, type=BasicType(dimensions=[], name=byte)), ReturnStatement(expression=BinaryOperation(operandl=MemberReference(member=value1, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=value2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator===), label=None)])]), SwitchStatementCase(case=['DECIMAL'], statements=[BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberReference(member=bytes, postfix_operators=[], prefix_operators=[], qualifier=fieldValue2, selectors=[]), MemberReference(member=offset, postfix_operators=[], prefix_operators=[], qualifier=fieldValue2, selectors=[])], member=deserialize, postfix_operators=[], prefix_operators=[], qualifier=ODecimalSerializer.INSTANCE, selectors=[], type_arguments=None), name=value2)], modifiers={'final'}, type=ReferenceType(arguments=None, dimensions=[], name=BigDecimal, sub_type=None)), ReturnStatement(expression=BinaryOperation(operandl=MemberReference(member=value1, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MethodInvocation(arguments=[], member=byteValue, postfix_operators=[], prefix_operators=[], qualifier=value2, selectors=[], type_arguments=None), operator===), label=None)])])], expression=MemberReference(member=type, postfix_operators=[], prefix_operators=[], qualifier=iField2, selectors=[]), label=None), BreakStatement(goto=None, label=None)])]), SwitchStatementCase(case=['BOOLEAN'], statements=[BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=BinaryOperation(operandl=MethodInvocation(arguments=[MemberReference(member=fieldValue1, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=readByte, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), operator===), name=value1)], modifiers={'final'}, type=BasicType(dimensions=[], name=boolean)), SwitchStatement(cases=[SwitchStatementCase(case=['BOOLEAN'], statements=[BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=BinaryOperation(operandl=MethodInvocation(arguments=[MemberReference(member=fieldValue2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=readByte, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), operator===), name=value2)], modifiers={'final'}, type=BasicType(dimensions=[], name=boolean)), ReturnStatement(expression=BinaryOperation(operandl=MemberReference(member=value1, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=value2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator===), label=None)])]), SwitchStatementCase(case=['STRING'], statements=[BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberReference(member=fieldValue2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=readString, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), name=str)], modifiers={'final'}, type=ReferenceType(arguments=None, dimensions=[], name=String, sub_type=None)), ReturnStatement(expression=BinaryOperation(operandl=MethodInvocation(arguments=[MemberReference(member=str, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=parseBoolean, postfix_operators=[], prefix_operators=[], qualifier=Boolean, selectors=[], type_arguments=None), operandr=MemberReference(member=value1, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator===), label=None)])])], expression=MemberReference(member=type, postfix_operators=[], prefix_operators=[], qualifier=iField2, selectors=[]), label=None), BreakStatement(goto=None, label=None)])]), SwitchStatementCase(case=['DATE'], statements=[BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=BinaryOperation(operandl=MethodInvocation(arguments=[MemberReference(member=fieldValue1, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=readAsLong, postfix_operators=[], prefix_operators=[], qualifier=OVarIntSerializer, selectors=[], type_arguments=None), operandr=MemberReference(member=MILLISEC_PER_DAY, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=*), name=value1)], modifiers={'final'}, type=BasicType(dimensions=[], name=long)), SwitchStatement(cases=[SwitchStatementCase(case=['INTEGER'], statements=[BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberReference(member=fieldValue2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=readAsInteger, postfix_operators=[], prefix_operators=[], qualifier=OVarIntSerializer, selectors=[], type_arguments=None), name=value2)], modifiers={'final'}, type=BasicType(dimensions=[], name=int)), ReturnStatement(expression=BinaryOperation(operandl=MemberReference(member=value1, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=value2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator===), label=None)])]), SwitchStatementCase(case=['LONG', 'DATETIME'], statements=[BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberReference(member=fieldValue2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=readAsLong, postfix_operators=[], prefix_operators=[], qualifier=OVarIntSerializer, selectors=[], type_arguments=None), name=value2)], modifiers=set(), type=BasicType(dimensions=[], name=long)), StatementExpression(expression=Assignment(expressionl=MemberReference(member=value2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MethodInvocation(arguments=[MethodInvocation(arguments=[], member=getDatabaseTimeZone, postfix_operators=[], prefix_operators=[], qualifier=ODateHelper, selectors=[], type_arguments=None), MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="GMT")], member=getTimeZone, postfix_operators=[], prefix_operators=[], qualifier=TimeZone, selectors=[], type_arguments=None), MemberReference(member=value2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=convertDayToTimezone, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None)), label=None), ReturnStatement(expression=BinaryOperation(operandl=MemberReference(member=value1, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=value2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator===), label=None)])]), SwitchStatementCase(case=['DATE'], statements=[BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=BinaryOperation(operandl=MethodInvocation(arguments=[MemberReference(member=fieldValue2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=readAsLong, postfix_operators=[], prefix_operators=[], qualifier=OVarIntSerializer, selectors=[], type_arguments=None), operandr=MemberReference(member=MILLISEC_PER_DAY, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=*), name=value2)], modifiers={'final'}, type=BasicType(dimensions=[], name=long)), ReturnStatement(expression=BinaryOperation(operandl=MemberReference(member=value1, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=value2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator===), label=None)])]), SwitchStatementCase(case=['SHORT'], statements=[BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberReference(member=fieldValue2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=readAsShort, postfix_operators=[], prefix_operators=[], qualifier=OVarIntSerializer, selectors=[], type_arguments=None), name=value2)], modifiers={'final'}, type=BasicType(dimensions=[], name=short)), ReturnStatement(expression=BinaryOperation(operandl=MemberReference(member=value1, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=value2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator===), label=None)])]), SwitchStatementCase(case=['FLOAT'], statements=[BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MethodInvocation(arguments=[MemberReference(member=fieldValue2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=readInteger, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None)], member=intBitsToFloat, postfix_operators=[], prefix_operators=[], qualifier=Float, selectors=[], type_arguments=None), name=value2)], modifiers={'final'}, type=BasicType(dimensions=[], name=float)), ReturnStatement(expression=BinaryOperation(operandl=MemberReference(member=value1, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=value2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator===), label=None)])]), SwitchStatementCase(case=['DOUBLE'], statements=[BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MethodInvocation(arguments=[MemberReference(member=fieldValue2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=readLong, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None)], member=longBitsToDouble, postfix_operators=[], prefix_operators=[], qualifier=Double, selectors=[], type_arguments=None), name=value2)], modifiers={'final'}, type=BasicType(dimensions=[], name=double)), ReturnStatement(expression=BinaryOperation(operandl=MemberReference(member=value1, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=value2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator===), label=None)])]), SwitchStatementCase(case=['STRING'], statements=[BlockStatement(label=None, statements=[])]), SwitchStatementCase(case=['DECIMAL'], statements=[BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberReference(member=bytes, postfix_operators=[], prefix_operators=[], qualifier=fieldValue2, selectors=[]), MemberReference(member=offset, postfix_operators=[], prefix_operators=[], qualifier=fieldValue2, selectors=[])], member=deserialize, postfix_operators=[], prefix_operators=[], qualifier=ODecimalSerializer.INSTANCE, selectors=[], type_arguments=None), name=value2)], modifiers={'final'}, type=ReferenceType(arguments=None, dimensions=[], name=BigDecimal, sub_type=None)), ReturnStatement(expression=BinaryOperation(operandl=MemberReference(member=value1, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MethodInvocation(arguments=[], member=longValue, postfix_operators=[], prefix_operators=[], qualifier=value2, selectors=[], type_arguments=None), operator===), label=None)])])], expression=MemberReference(member=type, postfix_operators=[], prefix_operators=[], qualifier=iField2, selectors=[]), label=None), BreakStatement(goto=None, label=None)])]), SwitchStatementCase(case=['DATETIME'], statements=[BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberReference(member=fieldValue1, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=readAsLong, postfix_operators=[], prefix_operators=[], qualifier=OVarIntSerializer, selectors=[], type_arguments=None), name=value1)], modifiers={'final'}, type=BasicType(dimensions=[], name=long)), SwitchStatement(cases=[SwitchStatementCase(case=['INTEGER'], statements=[BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberReference(member=fieldValue2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=readAsInteger, postfix_operators=[], prefix_operators=[], qualifier=OVarIntSerializer, selectors=[], type_arguments=None), name=value2)], modifiers={'final'}, type=BasicType(dimensions=[], name=int)), ReturnStatement(expression=BinaryOperation(operandl=MemberReference(member=value1, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=value2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator===), label=None)])]), SwitchStatementCase(case=['LONG', 'DATETIME'], statements=[BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberReference(member=fieldValue2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=readAsLong, postfix_operators=[], prefix_operators=[], qualifier=OVarIntSerializer, selectors=[], type_arguments=None), name=value2)], modifiers={'final'}, type=BasicType(dimensions=[], name=long)), ReturnStatement(expression=BinaryOperation(operandl=MemberReference(member=value1, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=value2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator===), label=None)])]), SwitchStatementCase(case=['DATE'], statements=[BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=BinaryOperation(operandl=MethodInvocation(arguments=[MemberReference(member=fieldValue2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=readAsLong, postfix_operators=[], prefix_operators=[], qualifier=OVarIntSerializer, selectors=[], type_arguments=None), operandr=MemberReference(member=MILLISEC_PER_DAY, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=*), name=value2)], modifiers={'final'}, type=BasicType(dimensions=[], name=long)), ReturnStatement(expression=BinaryOperation(operandl=MemberReference(member=value1, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=value2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator===), label=None)])]), SwitchStatementCase(case=['SHORT'], statements=[BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberReference(member=fieldValue2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=readAsShort, postfix_operators=[], prefix_operators=[], qualifier=OVarIntSerializer, selectors=[], type_arguments=None), name=value2)], modifiers={'final'}, type=BasicType(dimensions=[], name=short)), ReturnStatement(expression=BinaryOperation(operandl=MemberReference(member=value1, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=value2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator===), label=None)])]), SwitchStatementCase(case=['FLOAT'], statements=[BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MethodInvocation(arguments=[MemberReference(member=fieldValue2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=readInteger, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None)], member=intBitsToFloat, postfix_operators=[], prefix_operators=[], qualifier=Float, selectors=[], type_arguments=None), name=value2)], modifiers={'final'}, type=BasicType(dimensions=[], name=float)), ReturnStatement(expression=BinaryOperation(operandl=MemberReference(member=value1, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=value2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator===), label=None)])]), SwitchStatementCase(case=['DOUBLE'], statements=[BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MethodInvocation(arguments=[MemberReference(member=fieldValue2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=readLong, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None)], member=longBitsToDouble, postfix_operators=[], prefix_operators=[], qualifier=Double, selectors=[], type_arguments=None), name=value2)], modifiers={'final'}, type=BasicType(dimensions=[], name=double)), ReturnStatement(expression=BinaryOperation(operandl=MemberReference(member=value1, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=value2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator===), label=None)])]), SwitchStatementCase(case=['STRING'], statements=[BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberReference(member=fieldValue2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=readString, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), name=value2AsString)], modifiers={'final'}, type=ReferenceType(arguments=None, dimensions=[], name=String, sub_type=None)), IfStatement(condition=MethodInvocation(arguments=[MemberReference(member=value2AsString, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=isLong, postfix_operators=[], prefix_operators=[], qualifier=OIOUtils, selectors=[], type_arguments=None), else_statement=None, label=None, then_statement=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberReference(member=value2AsString, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=parseLong, postfix_operators=[], prefix_operators=[], qualifier=Long, selectors=[], type_arguments=None), name=value2)], modifiers={'final'}, type=BasicType(dimensions=[], name=long)), ReturnStatement(expression=BinaryOperation(operandl=MemberReference(member=value1, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=value2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator===), label=None)])), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[], member=instance, postfix_operators=[], prefix_operators=[], qualifier=ODatabaseRecordThreadLocal, selectors=[MethodInvocation(arguments=[], member=getIfDefined, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)], type_arguments=None), name=db)], modifiers={'final'}, type=ReferenceType(arguments=None, dimensions=[], name=ODatabaseDocumentInternal, sub_type=None)), TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=TernaryExpression(condition=BinaryOperation(operandl=MemberReference(member=db, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=null), operator=!=), if_false=ClassCreator(arguments=[MemberReference(member=DEFAULT_DATETIME_FORMAT, postfix_operators=[], prefix_operators=[], qualifier=OStorageConfiguration, selectors=[])], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=SimpleDateFormat, sub_type=None)), if_true=MethodInvocation(arguments=[], member=getStorage, postfix_operators=[], prefix_operators=[], qualifier=db, selectors=[MethodInvocation(arguments=[], member=getConfiguration, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None), MethodInvocation(arguments=[], member=getDateTimeFormatInstance, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)], type_arguments=None)), name=dateFormat)], modifiers={'final'}, type=ReferenceType(arguments=None, dimensions=[], name=SimpleDateFormat, sub_type=None)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberReference(member=value2AsString, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=parse, postfix_operators=[], prefix_operators=[], qualifier=dateFormat, selectors=[], type_arguments=None), name=value2AsDate)], modifiers={'final'}, type=ReferenceType(arguments=None, dimensions=[], name=Date, sub_type=None)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[], member=getTime, postfix_operators=[], prefix_operators=[], qualifier=value2AsDate, selectors=[], type_arguments=None), name=value2)], modifiers={'final'}, type=BasicType(dimensions=[], name=long)), ReturnStatement(expression=BinaryOperation(operandl=MemberReference(member=value1, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=value2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator===), label=None)], catches=[CatchClause(block=[TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=TernaryExpression(condition=BinaryOperation(operandl=MemberReference(member=db, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=null), operator=!=), if_false=ClassCreator(arguments=[MemberReference(member=DEFAULT_DATE_FORMAT, postfix_operators=[], prefix_operators=[], qualifier=OStorageConfiguration, selectors=[])], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=SimpleDateFormat, sub_type=None)), if_true=MethodInvocation(arguments=[], member=getStorage, postfix_operators=[], prefix_operators=[], qualifier=db, selectors=[MethodInvocation(arguments=[], member=getConfiguration, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None), MethodInvocation(arguments=[], member=getDateFormatInstance, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)], type_arguments=None)), name=dateFormat)], modifiers={'final'}, type=ReferenceType(arguments=None, dimensions=[], name=SimpleDateFormat, sub_type=None)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberReference(member=value2AsString, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=parse, postfix_operators=[], prefix_operators=[], qualifier=dateFormat, selectors=[], type_arguments=None), name=value2AsDate)], modifiers={'final'}, type=ReferenceType(arguments=None, dimensions=[], name=Date, sub_type=None)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[], member=getTime, postfix_operators=[], prefix_operators=[], qualifier=value2AsDate, selectors=[], type_arguments=None), name=value2)], modifiers={'final'}, type=BasicType(dimensions=[], name=long)), ReturnStatement(expression=BinaryOperation(operandl=MemberReference(member=value1, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=value2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator===), label=None)], catches=[CatchClause(block=[ReturnStatement(expression=ClassCreator(arguments=[MemberReference(member=value1, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[MethodInvocation(arguments=[], member=toString, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None), MethodInvocation(arguments=[MemberReference(member=value2AsString, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=equals, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)], type=ReferenceType(arguments=None, dimensions=None, name=Date, sub_type=None)), label=None)], label=None, parameter=CatchClauseParameter(annotations=None, modifiers=None, name=ignored, types=['ParseException']))], finally_block=None, label=None, resources=None)], label=None, parameter=CatchClauseParameter(annotations=None, modifiers=None, name=ignore, types=['ParseException']))], finally_block=None, label=None, resources=None)])]), SwitchStatementCase(case=['DECIMAL'], statements=[BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberReference(member=bytes, postfix_operators=[], prefix_operators=[], qualifier=fieldValue2, selectors=[]), MemberReference(member=offset, postfix_operators=[], prefix_operators=[], qualifier=fieldValue2, selectors=[])], member=deserialize, postfix_operators=[], prefix_operators=[], qualifier=ODecimalSerializer.INSTANCE, selectors=[], type_arguments=None), name=value2)], modifiers={'final'}, type=ReferenceType(arguments=None, dimensions=[], name=BigDecimal, sub_type=None)), ReturnStatement(expression=BinaryOperation(operandl=MemberReference(member=value1, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MethodInvocation(arguments=[], member=longValue, postfix_operators=[], prefix_operators=[], qualifier=value2, selectors=[], type_arguments=None), operator===), label=None)])])], expression=MemberReference(member=type, postfix_operators=[], prefix_operators=[], qualifier=iField2, selectors=[]), label=None), BreakStatement(goto=None, label=None)])]), SwitchStatementCase(case=['BINARY'], statements=[BlockStatement(label=None, statements=[SwitchStatement(cases=[SwitchStatementCase(case=['BINARY'], statements=[BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberReference(member=fieldValue1, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=readAsInteger, postfix_operators=[], prefix_operators=[], qualifier=OVarIntSerializer, selectors=[], type_arguments=None), name=length1)], modifiers={'final'}, type=BasicType(dimensions=[], name=int)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberReference(member=fieldValue2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=readAsInteger, postfix_operators=[], prefix_operators=[], qualifier=OVarIntSerializer, selectors=[], type_arguments=None), name=length2)], modifiers={'final'}, type=BasicType(dimensions=[], name=int)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=length1, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=length2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=!=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=false), label=None)), ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=bytes, postfix_operators=[], prefix_operators=[], qualifier=fieldValue1, selectors=[ArraySelector(index=BinaryOperation(operandl=MemberReference(member=offset, postfix_operators=[], prefix_operators=[], qualifier=fieldValue1, selectors=[]), operandr=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=+))]), operandr=MemberReference(member=bytes, postfix_operators=[], prefix_operators=[], qualifier=fieldValue2, selectors=[ArraySelector(index=BinaryOperation(operandl=MemberReference(member=offset, postfix_operators=[], prefix_operators=[], qualifier=fieldValue2, selectors=[]), operandr=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=+))]), 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=length1, postfix_operators=[], prefix_operators=[], qualifier=, 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), ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=true), label=None)])])], expression=MemberReference(member=type, postfix_operators=[], prefix_operators=[], qualifier=iField2, selectors=[]), label=None), BreakStatement(goto=None, label=None)])]), SwitchStatementCase(case=['LINK'], statements=[BlockStatement(label=None, statements=[SwitchStatement(cases=[SwitchStatementCase(case=['LINK'], statements=[BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberReference(member=fieldValue1, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=readAsInteger, postfix_operators=[], prefix_operators=[], qualifier=OVarIntSerializer, selectors=[], type_arguments=None), name=clusterId1)], modifiers={'final'}, type=BasicType(dimensions=[], name=int)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberReference(member=fieldValue2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=readAsInteger, postfix_operators=[], prefix_operators=[], qualifier=OVarIntSerializer, selectors=[], type_arguments=None), name=clusterId2)], modifiers={'final'}, type=BasicType(dimensions=[], name=int)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=clusterId1, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=clusterId2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=!=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=false), label=None)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberReference(member=fieldValue1, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=readAsLong, postfix_operators=[], prefix_operators=[], qualifier=OVarIntSerializer, selectors=[], type_arguments=None), name=clusterPos1)], modifiers={'final'}, type=BasicType(dimensions=[], name=long)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberReference(member=fieldValue2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=readAsLong, postfix_operators=[], prefix_operators=[], qualifier=OVarIntSerializer, selectors=[], type_arguments=None), name=clusterPos2)], modifiers={'final'}, type=BasicType(dimensions=[], name=long)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=clusterPos1, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=clusterPos2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator===), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=true), label=None)), BreakStatement(goto=None, label=None)])]), SwitchStatementCase(case=['STRING'], statements=[BlockStatement(label=None, statements=[ReturnStatement(expression=MethodInvocation(arguments=[MemberReference(member=fieldValue1, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=false)], member=readOptimizedLink, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[MethodInvocation(arguments=[], member=toString, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None), MethodInvocation(arguments=[MethodInvocation(arguments=[MemberReference(member=fieldValue2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=readString, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None)], member=equals, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)], type_arguments=None), label=None)])])], expression=MemberReference(member=type, postfix_operators=[], prefix_operators=[], qualifier=iField2, selectors=[]), label=None), BreakStatement(goto=None, label=None)])]), SwitchStatementCase(case=['DECIMAL'], statements=[BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberReference(member=bytes, postfix_operators=[], prefix_operators=[], qualifier=fieldValue1, selectors=[]), MemberReference(member=offset, postfix_operators=[], prefix_operators=[], qualifier=fieldValue1, selectors=[])], member=deserialize, postfix_operators=[], prefix_operators=[], qualifier=ODecimalSerializer.INSTANCE, selectors=[], type_arguments=None), name=value1)], modifiers={'final'}, type=ReferenceType(arguments=None, dimensions=[], name=BigDecimal, sub_type=None)), SwitchStatement(cases=[SwitchStatementCase(case=['INTEGER'], statements=[BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberReference(member=fieldValue2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=readAsInteger, postfix_operators=[], prefix_operators=[], qualifier=OVarIntSerializer, selectors=[], type_arguments=None), name=value2)], modifiers={'final'}, type=BasicType(dimensions=[], name=int)), ReturnStatement(expression=MethodInvocation(arguments=[ClassCreator(arguments=[MemberReference(member=value2, 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=BigDecimal, sub_type=None))], member=equals, postfix_operators=[], prefix_operators=[], qualifier=value1, selectors=[], type_arguments=None), label=None)])]), SwitchStatementCase(case=['LONG', 'DATETIME'], statements=[BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberReference(member=fieldValue2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=readAsLong, postfix_operators=[], prefix_operators=[], qualifier=OVarIntSerializer, selectors=[], type_arguments=None), name=value2)], modifiers={'final'}, type=BasicType(dimensions=[], name=long)), ReturnStatement(expression=MethodInvocation(arguments=[ClassCreator(arguments=[MemberReference(member=value2, 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=BigDecimal, sub_type=None))], member=equals, postfix_operators=[], prefix_operators=[], qualifier=value1, selectors=[], type_arguments=None), label=None)])]), SwitchStatementCase(case=['SHORT'], statements=[BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberReference(member=fieldValue2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=readAsShort, postfix_operators=[], prefix_operators=[], qualifier=OVarIntSerializer, selectors=[], type_arguments=None), name=value2)], modifiers={'final'}, type=BasicType(dimensions=[], name=short)), ReturnStatement(expression=MethodInvocation(arguments=[ClassCreator(arguments=[MemberReference(member=value2, 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=BigDecimal, sub_type=None))], member=equals, postfix_operators=[], prefix_operators=[], qualifier=value1, selectors=[], type_arguments=None), label=None)])]), SwitchStatementCase(case=['FLOAT'], statements=[BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MethodInvocation(arguments=[MemberReference(member=fieldValue2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=readInteger, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None)], member=intBitsToFloat, postfix_operators=[], prefix_operators=[], qualifier=Float, selectors=[], type_arguments=None), name=value2)], modifiers={'final'}, type=BasicType(dimensions=[], name=float)), ReturnStatement(expression=MethodInvocation(arguments=[ClassCreator(arguments=[MemberReference(member=value2, 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=BigDecimal, sub_type=None))], member=equals, postfix_operators=[], prefix_operators=[], qualifier=value1, selectors=[], type_arguments=None), label=None)])]), SwitchStatementCase(case=['DOUBLE'], statements=[BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MethodInvocation(arguments=[MemberReference(member=fieldValue2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=readLong, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None)], member=longBitsToDouble, postfix_operators=[], prefix_operators=[], qualifier=Double, selectors=[], type_arguments=None), name=value2)], modifiers={'final'}, type=BasicType(dimensions=[], name=double)), ReturnStatement(expression=MethodInvocation(arguments=[ClassCreator(arguments=[MemberReference(member=value2, 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=BigDecimal, sub_type=None))], member=equals, postfix_operators=[], prefix_operators=[], qualifier=value1, selectors=[], type_arguments=None), label=None)])]), SwitchStatementCase(case=['STRING'], statements=[BlockStatement(label=None, statements=[ReturnStatement(expression=MethodInvocation(arguments=[], member=toString, postfix_operators=[], prefix_operators=[], qualifier=value1, selectors=[MethodInvocation(arguments=[MethodInvocation(arguments=[MemberReference(member=fieldValue2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=readString, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None)], member=equals, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)], type_arguments=None), label=None)])]), SwitchStatementCase(case=['DECIMAL'], statements=[BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberReference(member=bytes, postfix_operators=[], prefix_operators=[], qualifier=fieldValue2, selectors=[]), MemberReference(member=offset, postfix_operators=[], prefix_operators=[], qualifier=fieldValue2, selectors=[])], member=deserialize, postfix_operators=[], prefix_operators=[], qualifier=ODecimalSerializer.INSTANCE, selectors=[], type_arguments=None), name=value2)], modifiers={'final'}, type=ReferenceType(arguments=None, dimensions=[], name=BigDecimal, sub_type=None)), ReturnStatement(expression=MethodInvocation(arguments=[MemberReference(member=value2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=equals, postfix_operators=[], prefix_operators=[], qualifier=value1, selectors=[], type_arguments=None), label=None)])])], expression=MemberReference(member=type, postfix_operators=[], prefix_operators=[], qualifier=iField2, selectors=[]), label=None), BreakStatement(goto=None, label=None)])])], expression=MemberReference(member=type, postfix_operators=[], prefix_operators=[], qualifier=iField1, selectors=[]), label=None)], catches=None, finally_block=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=offset, postfix_operators=[], prefix_operators=[], qualifier=fieldValue1, selectors=[]), type==, value=MemberReference(member=offset1, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=offset, postfix_operators=[], prefix_operators=[], qualifier=fieldValue2, selectors=[]), type==, value=MemberReference(member=offset2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])), label=None)], label=None, resources=None) return[literal[false]] end[}] END[}]
annotation[@] identifier[Override] Keyword[public] Keyword[boolean] identifier[isEqual] operator[SEP] Keyword[final] identifier[OBinaryField] identifier[iField1] , Keyword[final] identifier[OBinaryField] identifier[iField2] operator[SEP] { Keyword[final] identifier[BytesContainer] identifier[fieldValue1] operator[=] identifier[iField1] operator[SEP] identifier[bytes] operator[SEP] Keyword[final] Keyword[int] identifier[offset1] operator[=] identifier[fieldValue1] operator[SEP] identifier[offset] operator[SEP] Keyword[final] identifier[BytesContainer] identifier[fieldValue2] operator[=] identifier[iField2] operator[SEP] identifier[bytes] operator[SEP] Keyword[final] Keyword[int] identifier[offset2] operator[=] identifier[fieldValue2] operator[SEP] identifier[offset] operator[SEP] Keyword[try] { Keyword[switch] operator[SEP] identifier[iField1] operator[SEP] identifier[type] operator[SEP] { Keyword[case] identifier[INTEGER] operator[:] { Keyword[final] Keyword[int] identifier[value1] operator[=] identifier[OVarIntSerializer] operator[SEP] identifier[readAsInteger] operator[SEP] identifier[fieldValue1] operator[SEP] operator[SEP] Keyword[switch] operator[SEP] identifier[iField2] operator[SEP] identifier[type] operator[SEP] { Keyword[case] identifier[INTEGER] operator[:] { Keyword[final] Keyword[int] identifier[value2] operator[=] identifier[OVarIntSerializer] operator[SEP] identifier[readAsInteger] operator[SEP] identifier[fieldValue2] operator[SEP] operator[SEP] Keyword[return] identifier[value1] operator[==] identifier[value2] operator[SEP] } Keyword[case] identifier[LONG] operator[:] Keyword[case] identifier[DATETIME] operator[:] { Keyword[final] Keyword[long] identifier[value2] operator[=] identifier[OVarIntSerializer] operator[SEP] identifier[readAsLong] operator[SEP] identifier[fieldValue2] operator[SEP] operator[SEP] Keyword[return] identifier[value1] operator[==] identifier[value2] operator[SEP] } Keyword[case] identifier[DATE] operator[:] { Keyword[final] Keyword[long] identifier[value2] operator[=] operator[SEP] identifier[OVarIntSerializer] operator[SEP] identifier[readAsLong] operator[SEP] identifier[fieldValue2] operator[SEP] operator[*] identifier[MILLISEC_PER_DAY] operator[SEP] operator[SEP] Keyword[return] identifier[value1] operator[==] identifier[value2] operator[SEP] } Keyword[case] identifier[SHORT] operator[:] { Keyword[final] Keyword[short] identifier[value2] operator[=] identifier[OVarIntSerializer] operator[SEP] identifier[readAsShort] operator[SEP] identifier[fieldValue2] operator[SEP] operator[SEP] Keyword[return] identifier[value1] operator[==] identifier[value2] operator[SEP] } Keyword[case] identifier[BYTE] operator[:] { Keyword[final] Keyword[byte] identifier[value2] operator[=] identifier[readByte] operator[SEP] identifier[fieldValue2] operator[SEP] operator[SEP] Keyword[return] identifier[value1] operator[==] identifier[value2] operator[SEP] } Keyword[case] identifier[FLOAT] operator[:] { Keyword[final] Keyword[float] identifier[value2] operator[=] identifier[Float] operator[SEP] identifier[intBitsToFloat] operator[SEP] identifier[readInteger] operator[SEP] identifier[fieldValue2] operator[SEP] operator[SEP] operator[SEP] Keyword[return] identifier[value1] operator[==] identifier[value2] operator[SEP] } Keyword[case] identifier[DOUBLE] operator[:] { Keyword[final] Keyword[double] identifier[value2] operator[=] identifier[Double] operator[SEP] identifier[longBitsToDouble] operator[SEP] identifier[readLong] operator[SEP] identifier[fieldValue2] operator[SEP] operator[SEP] operator[SEP] Keyword[return] identifier[value1] operator[==] identifier[value2] operator[SEP] } Keyword[case] identifier[STRING] operator[:] { Keyword[return] identifier[Integer] operator[SEP] identifier[parseInt] operator[SEP] identifier[readString] operator[SEP] identifier[fieldValue2] operator[SEP] operator[SEP] operator[==] identifier[value1] operator[SEP] } Keyword[case] identifier[DECIMAL] operator[:] { Keyword[final] identifier[BigDecimal] identifier[value2] operator[=] identifier[ODecimalSerializer] operator[SEP] identifier[INSTANCE] operator[SEP] identifier[deserialize] operator[SEP] identifier[fieldValue2] operator[SEP] identifier[bytes] , identifier[fieldValue2] operator[SEP] identifier[offset] operator[SEP] operator[SEP] Keyword[return] identifier[value1] operator[==] identifier[value2] operator[SEP] identifier[intValue] operator[SEP] operator[SEP] operator[SEP] } } Keyword[break] operator[SEP] } Keyword[case] identifier[LONG] operator[:] { Keyword[final] Keyword[long] identifier[value1] operator[=] identifier[OVarIntSerializer] operator[SEP] identifier[readAsLong] operator[SEP] identifier[fieldValue1] operator[SEP] operator[SEP] Keyword[switch] operator[SEP] identifier[iField2] operator[SEP] identifier[type] operator[SEP] { Keyword[case] identifier[INTEGER] operator[:] { Keyword[final] Keyword[int] identifier[value2] operator[=] identifier[OVarIntSerializer] operator[SEP] identifier[readAsInteger] operator[SEP] identifier[fieldValue2] operator[SEP] operator[SEP] Keyword[return] identifier[value1] operator[==] identifier[value2] operator[SEP] } Keyword[case] identifier[LONG] operator[:] Keyword[case] identifier[DATETIME] operator[:] { Keyword[final] Keyword[long] identifier[value2] operator[=] identifier[OVarIntSerializer] operator[SEP] identifier[readAsLong] operator[SEP] identifier[fieldValue2] operator[SEP] operator[SEP] Keyword[return] identifier[value1] operator[==] identifier[value2] operator[SEP] } Keyword[case] identifier[DATE] operator[:] { Keyword[final] Keyword[long] identifier[value2] operator[=] operator[SEP] identifier[OVarIntSerializer] operator[SEP] identifier[readAsLong] operator[SEP] identifier[fieldValue2] operator[SEP] operator[*] identifier[MILLISEC_PER_DAY] operator[SEP] operator[SEP] Keyword[return] identifier[value1] operator[==] identifier[value2] operator[SEP] } Keyword[case] identifier[SHORT] operator[:] { Keyword[final] Keyword[short] identifier[value2] operator[=] identifier[OVarIntSerializer] operator[SEP] identifier[readAsShort] operator[SEP] identifier[fieldValue2] operator[SEP] operator[SEP] Keyword[return] identifier[value1] operator[==] identifier[value2] operator[SEP] } Keyword[case] identifier[BYTE] operator[:] { Keyword[final] Keyword[byte] identifier[value2] operator[=] identifier[readByte] operator[SEP] identifier[fieldValue2] operator[SEP] operator[SEP] Keyword[return] identifier[value1] operator[==] identifier[value2] operator[SEP] } Keyword[case] identifier[FLOAT] operator[:] { Keyword[final] Keyword[float] identifier[value2] operator[=] identifier[Float] operator[SEP] identifier[intBitsToFloat] operator[SEP] identifier[readInteger] operator[SEP] identifier[fieldValue2] operator[SEP] operator[SEP] operator[SEP] Keyword[return] identifier[value1] operator[==] identifier[value2] operator[SEP] } Keyword[case] identifier[DOUBLE] operator[:] { Keyword[final] Keyword[double] identifier[value2] operator[=] identifier[Double] operator[SEP] identifier[longBitsToDouble] operator[SEP] identifier[readLong] operator[SEP] identifier[fieldValue2] operator[SEP] operator[SEP] operator[SEP] Keyword[return] identifier[value1] operator[==] identifier[value2] operator[SEP] } Keyword[case] identifier[STRING] operator[:] { Keyword[return] identifier[Long] operator[SEP] identifier[parseLong] operator[SEP] identifier[readString] operator[SEP] identifier[fieldValue2] operator[SEP] operator[SEP] operator[==] identifier[value1] operator[SEP] } Keyword[case] identifier[DECIMAL] operator[:] { Keyword[final] identifier[BigDecimal] identifier[value2] operator[=] identifier[ODecimalSerializer] operator[SEP] identifier[INSTANCE] operator[SEP] identifier[deserialize] operator[SEP] identifier[fieldValue2] operator[SEP] identifier[bytes] , identifier[fieldValue2] operator[SEP] identifier[offset] operator[SEP] operator[SEP] Keyword[return] identifier[value1] operator[==] identifier[value2] operator[SEP] identifier[longValue] operator[SEP] operator[SEP] operator[SEP] } } Keyword[break] operator[SEP] } Keyword[case] identifier[SHORT] operator[:] { Keyword[final] Keyword[short] identifier[value1] operator[=] identifier[OVarIntSerializer] operator[SEP] identifier[readAsShort] operator[SEP] identifier[fieldValue1] operator[SEP] operator[SEP] Keyword[switch] operator[SEP] identifier[iField2] operator[SEP] identifier[type] operator[SEP] { Keyword[case] identifier[INTEGER] operator[:] { Keyword[final] Keyword[int] identifier[value2] operator[=] identifier[OVarIntSerializer] operator[SEP] identifier[readAsInteger] operator[SEP] identifier[fieldValue2] operator[SEP] operator[SEP] Keyword[return] identifier[value1] operator[==] identifier[value2] operator[SEP] } Keyword[case] identifier[LONG] operator[:] Keyword[case] identifier[DATETIME] operator[:] { Keyword[final] Keyword[long] identifier[value2] operator[=] identifier[OVarIntSerializer] operator[SEP] identifier[readAsLong] operator[SEP] identifier[fieldValue2] operator[SEP] operator[SEP] Keyword[return] identifier[value1] operator[==] identifier[value2] operator[SEP] } Keyword[case] identifier[DATE] operator[:] { Keyword[final] Keyword[long] identifier[value2] operator[=] operator[SEP] identifier[OVarIntSerializer] operator[SEP] identifier[readAsLong] operator[SEP] identifier[fieldValue2] operator[SEP] operator[*] identifier[MILLISEC_PER_DAY] operator[SEP] operator[SEP] Keyword[return] identifier[value1] operator[==] identifier[value2] operator[SEP] } Keyword[case] identifier[SHORT] operator[:] { Keyword[final] Keyword[short] identifier[value2] operator[=] identifier[OVarIntSerializer] operator[SEP] identifier[readAsShort] operator[SEP] identifier[fieldValue2] operator[SEP] operator[SEP] Keyword[return] identifier[value1] operator[==] identifier[value2] operator[SEP] } Keyword[case] identifier[BYTE] operator[:] { Keyword[final] Keyword[byte] identifier[value2] operator[=] identifier[readByte] operator[SEP] identifier[fieldValue2] operator[SEP] operator[SEP] Keyword[return] identifier[value1] operator[==] identifier[value2] operator[SEP] } Keyword[case] identifier[FLOAT] operator[:] { Keyword[final] Keyword[float] identifier[value2] operator[=] identifier[Float] operator[SEP] identifier[intBitsToFloat] operator[SEP] identifier[readInteger] operator[SEP] identifier[fieldValue2] operator[SEP] operator[SEP] operator[SEP] Keyword[return] identifier[value1] operator[==] identifier[value2] operator[SEP] } Keyword[case] identifier[DOUBLE] operator[:] { Keyword[final] Keyword[double] identifier[value2] operator[=] identifier[Double] operator[SEP] identifier[longBitsToDouble] operator[SEP] identifier[readLong] operator[SEP] identifier[fieldValue2] operator[SEP] operator[SEP] operator[SEP] Keyword[return] identifier[value1] operator[==] identifier[value2] operator[SEP] } Keyword[case] identifier[STRING] operator[:] { Keyword[return] identifier[Short] operator[SEP] identifier[parseShort] operator[SEP] identifier[readString] operator[SEP] identifier[fieldValue2] operator[SEP] operator[SEP] operator[==] identifier[value1] operator[SEP] } Keyword[case] identifier[DECIMAL] operator[:] { Keyword[final] identifier[BigDecimal] identifier[value2] operator[=] identifier[ODecimalSerializer] operator[SEP] identifier[INSTANCE] operator[SEP] identifier[deserialize] operator[SEP] identifier[fieldValue2] operator[SEP] identifier[bytes] , identifier[fieldValue2] operator[SEP] identifier[offset] operator[SEP] operator[SEP] Keyword[return] identifier[value1] operator[==] identifier[value2] operator[SEP] identifier[shortValue] operator[SEP] operator[SEP] operator[SEP] } } Keyword[break] operator[SEP] } Keyword[case] identifier[STRING] operator[:] { Keyword[switch] operator[SEP] identifier[iField2] operator[SEP] identifier[type] operator[SEP] { Keyword[case] identifier[INTEGER] operator[:] { Keyword[final] Keyword[int] identifier[value2] operator[=] identifier[OVarIntSerializer] operator[SEP] identifier[readAsInteger] operator[SEP] identifier[fieldValue2] operator[SEP] operator[SEP] Keyword[return] identifier[Integer] operator[SEP] identifier[parseInt] operator[SEP] identifier[readString] operator[SEP] identifier[fieldValue1] operator[SEP] operator[SEP] operator[==] identifier[value2] operator[SEP] } Keyword[case] identifier[LONG] operator[:] Keyword[case] identifier[DATETIME] operator[:] { Keyword[final] Keyword[long] identifier[value2] operator[=] identifier[OVarIntSerializer] operator[SEP] identifier[readAsLong] operator[SEP] identifier[fieldValue2] operator[SEP] operator[SEP] Keyword[return] identifier[Long] operator[SEP] identifier[parseLong] operator[SEP] identifier[readString] operator[SEP] identifier[fieldValue1] operator[SEP] operator[SEP] operator[==] identifier[value2] operator[SEP] } Keyword[case] identifier[DATE] operator[:] { Keyword[final] Keyword[long] identifier[value2] operator[=] identifier[OVarIntSerializer] operator[SEP] identifier[readAsLong] operator[SEP] identifier[fieldValue2] operator[SEP] operator[*] identifier[MILLISEC_PER_DAY] operator[SEP] Keyword[return] identifier[Long] operator[SEP] identifier[parseLong] operator[SEP] identifier[readString] operator[SEP] identifier[fieldValue1] operator[SEP] operator[SEP] operator[==] identifier[value2] operator[SEP] } Keyword[case] identifier[SHORT] operator[:] { Keyword[final] Keyword[short] identifier[value2] operator[=] identifier[OVarIntSerializer] operator[SEP] identifier[readAsShort] operator[SEP] identifier[fieldValue2] operator[SEP] operator[SEP] Keyword[return] identifier[Short] operator[SEP] identifier[parseShort] operator[SEP] identifier[readString] operator[SEP] identifier[fieldValue1] operator[SEP] operator[SEP] operator[==] identifier[value2] operator[SEP] } Keyword[case] identifier[BYTE] operator[:] { Keyword[final] Keyword[byte] identifier[value2] operator[=] identifier[readByte] operator[SEP] identifier[fieldValue2] operator[SEP] operator[SEP] Keyword[return] identifier[Byte] operator[SEP] identifier[parseByte] operator[SEP] identifier[readString] operator[SEP] identifier[fieldValue1] operator[SEP] operator[SEP] operator[==] identifier[value2] operator[SEP] } Keyword[case] identifier[FLOAT] operator[:] { Keyword[final] Keyword[float] identifier[value2] operator[=] identifier[Float] operator[SEP] identifier[intBitsToFloat] operator[SEP] identifier[readInteger] operator[SEP] identifier[fieldValue2] operator[SEP] operator[SEP] operator[SEP] Keyword[return] identifier[Float] operator[SEP] identifier[parseFloat] operator[SEP] identifier[readString] operator[SEP] identifier[fieldValue1] operator[SEP] operator[SEP] operator[==] identifier[value2] operator[SEP] } Keyword[case] identifier[DOUBLE] operator[:] { Keyword[final] Keyword[double] identifier[value2] operator[=] identifier[Double] operator[SEP] identifier[longBitsToDouble] operator[SEP] identifier[readLong] operator[SEP] identifier[fieldValue2] operator[SEP] operator[SEP] operator[SEP] Keyword[return] identifier[Double] operator[SEP] identifier[parseDouble] operator[SEP] identifier[readString] operator[SEP] identifier[fieldValue1] operator[SEP] operator[SEP] operator[==] identifier[value2] operator[SEP] } Keyword[case] identifier[STRING] operator[:] { Keyword[final] Keyword[int] identifier[len1] operator[=] identifier[OVarIntSerializer] operator[SEP] identifier[readAsInteger] operator[SEP] identifier[fieldValue1] operator[SEP] operator[SEP] Keyword[final] Keyword[int] identifier[len2] operator[=] identifier[OVarIntSerializer] operator[SEP] identifier[readAsInteger] operator[SEP] identifier[fieldValue2] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[len1] operator[!=] identifier[len2] operator[SEP] Keyword[return] literal[boolean] operator[SEP] Keyword[final] identifier[OCollate] identifier[collate] operator[=] operator[SEP] identifier[iField1] operator[SEP] identifier[collate] operator[!=] Other[null] operator[&&] operator[!] identifier[ODefaultCollate] operator[SEP] identifier[NAME] operator[SEP] identifier[equals] operator[SEP] identifier[iField1] operator[SEP] identifier[collate] operator[SEP] identifier[getName] operator[SEP] operator[SEP] operator[SEP] operator[SEP] operator[?] identifier[iField1] operator[SEP] identifier[collate] operator[:] operator[SEP] identifier[iField2] operator[SEP] identifier[collate] operator[!=] Other[null] operator[&&] operator[!] identifier[ODefaultCollate] operator[SEP] identifier[NAME] operator[SEP] identifier[equals] operator[SEP] identifier[iField2] operator[SEP] identifier[collate] operator[SEP] identifier[getName] operator[SEP] operator[SEP] operator[SEP] operator[?] identifier[iField2] operator[SEP] identifier[collate] operator[:] Other[null] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[collate] operator[!=] Other[null] operator[SEP] { Keyword[final] identifier[String] identifier[str1] operator[=] operator[SEP] identifier[String] operator[SEP] identifier[collate] operator[SEP] identifier[transform] operator[SEP] identifier[stringFromBytes] operator[SEP] identifier[fieldValue1] operator[SEP] identifier[bytes] , identifier[fieldValue1] operator[SEP] identifier[offset] , identifier[len1] operator[SEP] operator[SEP] operator[SEP] Keyword[final] identifier[String] identifier[str2] operator[=] operator[SEP] identifier[String] operator[SEP] identifier[collate] operator[SEP] identifier[transform] operator[SEP] identifier[stringFromBytes] operator[SEP] identifier[fieldValue2] operator[SEP] identifier[bytes] , identifier[fieldValue2] operator[SEP] identifier[offset] , identifier[len2] operator[SEP] operator[SEP] operator[SEP] Keyword[return] identifier[str1] operator[SEP] identifier[equals] operator[SEP] identifier[str2] operator[SEP] operator[SEP] } Keyword[else] { Keyword[for] operator[SEP] Keyword[int] identifier[i] operator[=] Other[0] operator[SEP] identifier[i] operator[<] identifier[len1] operator[SEP] operator[++] identifier[i] operator[SEP] { Keyword[if] operator[SEP] identifier[fieldValue1] operator[SEP] identifier[bytes] operator[SEP] identifier[fieldValue1] operator[SEP] identifier[offset] operator[+] identifier[i] operator[SEP] operator[!=] identifier[fieldValue2] operator[SEP] identifier[bytes] operator[SEP] identifier[fieldValue2] operator[SEP] identifier[offset] operator[+] identifier[i] operator[SEP] operator[SEP] Keyword[return] literal[boolean] operator[SEP] } } Keyword[return] literal[boolean] operator[SEP] } Keyword[case] identifier[DECIMAL] operator[:] { Keyword[final] identifier[BigDecimal] identifier[value2] operator[=] identifier[ODecimalSerializer] operator[SEP] identifier[INSTANCE] operator[SEP] identifier[deserialize] operator[SEP] identifier[fieldValue2] operator[SEP] identifier[bytes] , identifier[fieldValue2] operator[SEP] identifier[offset] operator[SEP] operator[SEP] Keyword[return] Keyword[new] identifier[BigDecimal] operator[SEP] identifier[readString] operator[SEP] identifier[fieldValue1] operator[SEP] operator[SEP] operator[SEP] identifier[equals] operator[SEP] identifier[value2] operator[SEP] operator[SEP] } Keyword[case] identifier[BOOLEAN] operator[:] { Keyword[final] Keyword[boolean] identifier[value2] operator[=] identifier[readByte] operator[SEP] identifier[fieldValue2] operator[SEP] operator[==] Other[1] operator[SEP] Keyword[return] identifier[Boolean] operator[SEP] identifier[parseBoolean] operator[SEP] identifier[readString] operator[SEP] identifier[fieldValue1] operator[SEP] operator[SEP] operator[==] identifier[value2] operator[SEP] } } Keyword[break] operator[SEP] } Keyword[case] identifier[DOUBLE] operator[:] { Keyword[final] Keyword[long] identifier[value1AsLong] operator[=] identifier[readLong] operator[SEP] identifier[fieldValue1] operator[SEP] operator[SEP] Keyword[switch] operator[SEP] identifier[iField2] operator[SEP] identifier[type] operator[SEP] { Keyword[case] identifier[INTEGER] operator[:] { Keyword[final] Keyword[double] identifier[value1] operator[=] identifier[Double] operator[SEP] identifier[longBitsToDouble] operator[SEP] identifier[value1AsLong] operator[SEP] operator[SEP] Keyword[final] Keyword[int] identifier[value2] operator[=] identifier[OVarIntSerializer] operator[SEP] identifier[readAsInteger] operator[SEP] identifier[fieldValue2] operator[SEP] operator[SEP] Keyword[return] identifier[value1] operator[==] identifier[value2] operator[SEP] } Keyword[case] identifier[LONG] operator[:] Keyword[case] identifier[DATETIME] operator[:] { Keyword[final] Keyword[double] identifier[value1] operator[=] identifier[Double] operator[SEP] identifier[longBitsToDouble] operator[SEP] identifier[value1AsLong] operator[SEP] operator[SEP] Keyword[final] Keyword[long] identifier[value2] operator[=] identifier[OVarIntSerializer] operator[SEP] identifier[readAsLong] operator[SEP] identifier[fieldValue2] operator[SEP] operator[SEP] Keyword[return] identifier[value1] operator[==] identifier[value2] operator[SEP] } Keyword[case] identifier[SHORT] operator[:] { Keyword[final] Keyword[double] identifier[value1] operator[=] identifier[Double] operator[SEP] identifier[longBitsToDouble] operator[SEP] identifier[value1AsLong] operator[SEP] operator[SEP] Keyword[final] Keyword[short] identifier[value2] operator[=] identifier[OVarIntSerializer] operator[SEP] identifier[readAsShort] operator[SEP] identifier[fieldValue2] operator[SEP] operator[SEP] Keyword[return] identifier[value1] operator[==] identifier[value2] operator[SEP] } Keyword[case] identifier[BYTE] operator[:] { Keyword[final] Keyword[double] identifier[value1] operator[=] identifier[Double] operator[SEP] identifier[longBitsToDouble] operator[SEP] identifier[value1AsLong] operator[SEP] operator[SEP] Keyword[final] Keyword[byte] identifier[value2] operator[=] identifier[readByte] operator[SEP] identifier[fieldValue2] operator[SEP] operator[SEP] Keyword[return] identifier[value1] operator[==] identifier[value2] operator[SEP] } Keyword[case] identifier[FLOAT] operator[:] { Keyword[final] Keyword[double] identifier[value1] operator[=] identifier[Double] operator[SEP] identifier[longBitsToDouble] operator[SEP] identifier[value1AsLong] operator[SEP] operator[SEP] Keyword[final] Keyword[float] identifier[value2] operator[=] identifier[Float] operator[SEP] identifier[intBitsToFloat] operator[SEP] identifier[readInteger] operator[SEP] identifier[fieldValue2] operator[SEP] operator[SEP] operator[SEP] Keyword[return] identifier[value1] operator[==] identifier[value2] operator[SEP] } Keyword[case] identifier[DOUBLE] operator[:] { Keyword[final] Keyword[double] identifier[value2AsLong] operator[=] identifier[readLong] operator[SEP] identifier[fieldValue2] operator[SEP] operator[SEP] Keyword[return] identifier[value1AsLong] operator[==] identifier[value2AsLong] operator[SEP] } Keyword[case] identifier[STRING] operator[:] { Keyword[final] Keyword[double] identifier[value1] operator[=] identifier[Double] operator[SEP] identifier[longBitsToDouble] operator[SEP] identifier[value1AsLong] operator[SEP] operator[SEP] Keyword[return] identifier[Double] operator[SEP] identifier[parseDouble] operator[SEP] identifier[readString] operator[SEP] identifier[fieldValue2] operator[SEP] operator[SEP] operator[==] identifier[value1] operator[SEP] } Keyword[case] identifier[DECIMAL] operator[:] { Keyword[final] Keyword[double] identifier[value1] operator[=] identifier[Double] operator[SEP] identifier[longBitsToDouble] operator[SEP] identifier[value1AsLong] operator[SEP] operator[SEP] Keyword[final] identifier[BigDecimal] identifier[value2] operator[=] identifier[ODecimalSerializer] operator[SEP] identifier[INSTANCE] operator[SEP] identifier[deserialize] operator[SEP] identifier[fieldValue2] operator[SEP] identifier[bytes] , identifier[fieldValue2] operator[SEP] identifier[offset] operator[SEP] operator[SEP] Keyword[return] identifier[value1] operator[==] identifier[value2] operator[SEP] identifier[doubleValue] operator[SEP] operator[SEP] operator[SEP] } } Keyword[break] operator[SEP] } Keyword[case] identifier[FLOAT] operator[:] { Keyword[final] Keyword[int] identifier[value1AsInt] operator[=] identifier[readInteger] operator[SEP] identifier[fieldValue1] operator[SEP] operator[SEP] Keyword[switch] operator[SEP] identifier[iField2] operator[SEP] identifier[type] operator[SEP] { Keyword[case] identifier[INTEGER] operator[:] { Keyword[final] Keyword[float] identifier[value1] operator[=] identifier[Float] operator[SEP] identifier[intBitsToFloat] operator[SEP] identifier[value1AsInt] operator[SEP] operator[SEP] Keyword[final] Keyword[int] identifier[value2] operator[=] identifier[OVarIntSerializer] operator[SEP] identifier[readAsInteger] operator[SEP] identifier[fieldValue2] operator[SEP] operator[SEP] Keyword[return] identifier[value1] operator[==] identifier[value2] operator[SEP] } Keyword[case] identifier[LONG] operator[:] Keyword[case] identifier[DATETIME] operator[:] { Keyword[final] Keyword[float] identifier[value1] operator[=] identifier[Float] operator[SEP] identifier[intBitsToFloat] operator[SEP] identifier[value1AsInt] operator[SEP] operator[SEP] Keyword[final] Keyword[long] identifier[value2] operator[=] identifier[OVarIntSerializer] operator[SEP] identifier[readAsLong] operator[SEP] identifier[fieldValue2] operator[SEP] operator[SEP] Keyword[return] identifier[value1] operator[==] identifier[value2] operator[SEP] } Keyword[case] identifier[SHORT] operator[:] { Keyword[final] Keyword[float] identifier[value1] operator[=] identifier[Float] operator[SEP] identifier[intBitsToFloat] operator[SEP] identifier[value1AsInt] operator[SEP] operator[SEP] Keyword[final] Keyword[short] identifier[value2] operator[=] identifier[OVarIntSerializer] operator[SEP] identifier[readAsShort] operator[SEP] identifier[fieldValue2] operator[SEP] operator[SEP] Keyword[return] identifier[value1] operator[==] identifier[value2] operator[SEP] } Keyword[case] identifier[BYTE] operator[:] { Keyword[final] Keyword[float] identifier[value1] operator[=] identifier[Float] operator[SEP] identifier[intBitsToFloat] operator[SEP] identifier[value1AsInt] operator[SEP] operator[SEP] Keyword[final] Keyword[byte] identifier[value2] operator[=] identifier[readByte] operator[SEP] identifier[fieldValue2] operator[SEP] operator[SEP] Keyword[return] identifier[value1] operator[==] identifier[value2] operator[SEP] } Keyword[case] identifier[FLOAT] operator[:] { Keyword[final] Keyword[float] identifier[value2AsInt] operator[=] identifier[readInteger] operator[SEP] identifier[fieldValue2] operator[SEP] operator[SEP] Keyword[return] identifier[value1AsInt] operator[==] identifier[value2AsInt] operator[SEP] } Keyword[case] identifier[DOUBLE] operator[:] { Keyword[final] Keyword[float] identifier[value1] operator[=] identifier[Float] operator[SEP] identifier[intBitsToFloat] operator[SEP] identifier[value1AsInt] operator[SEP] operator[SEP] Keyword[final] Keyword[double] identifier[value2] operator[=] identifier[Double] operator[SEP] identifier[longBitsToDouble] operator[SEP] identifier[readLong] operator[SEP] identifier[fieldValue2] operator[SEP] operator[SEP] operator[SEP] Keyword[return] identifier[value1] operator[==] identifier[value2] operator[SEP] } Keyword[case] identifier[STRING] operator[:] { Keyword[final] Keyword[float] identifier[value1] operator[=] identifier[Float] operator[SEP] identifier[intBitsToFloat] operator[SEP] identifier[value1AsInt] operator[SEP] operator[SEP] Keyword[return] identifier[Float] operator[SEP] identifier[parseFloat] operator[SEP] identifier[readString] operator[SEP] identifier[fieldValue2] operator[SEP] operator[SEP] operator[==] identifier[value1] operator[SEP] } Keyword[case] identifier[DECIMAL] operator[:] { Keyword[final] Keyword[float] identifier[value1] operator[=] identifier[Float] operator[SEP] identifier[intBitsToFloat] operator[SEP] identifier[value1AsInt] operator[SEP] operator[SEP] Keyword[final] identifier[BigDecimal] identifier[value2] operator[=] identifier[ODecimalSerializer] operator[SEP] identifier[INSTANCE] operator[SEP] identifier[deserialize] operator[SEP] identifier[fieldValue2] operator[SEP] identifier[bytes] , identifier[fieldValue2] operator[SEP] identifier[offset] operator[SEP] operator[SEP] Keyword[return] identifier[value1] operator[==] identifier[value2] operator[SEP] identifier[floatValue] operator[SEP] operator[SEP] operator[SEP] } } Keyword[break] operator[SEP] } Keyword[case] identifier[BYTE] operator[:] { Keyword[final] Keyword[byte] identifier[value1] operator[=] identifier[readByte] operator[SEP] identifier[fieldValue1] operator[SEP] operator[SEP] Keyword[switch] operator[SEP] identifier[iField2] operator[SEP] identifier[type] operator[SEP] { Keyword[case] identifier[INTEGER] operator[:] { Keyword[final] Keyword[int] identifier[value2] operator[=] identifier[OVarIntSerializer] operator[SEP] identifier[readAsInteger] operator[SEP] identifier[fieldValue2] operator[SEP] operator[SEP] Keyword[return] identifier[value1] operator[==] identifier[value2] operator[SEP] } Keyword[case] identifier[LONG] operator[:] Keyword[case] identifier[DATETIME] operator[:] { Keyword[final] Keyword[long] identifier[value2] operator[=] identifier[OVarIntSerializer] operator[SEP] identifier[readAsLong] operator[SEP] identifier[fieldValue2] operator[SEP] operator[SEP] Keyword[return] identifier[value1] operator[==] identifier[value2] operator[SEP] } Keyword[case] identifier[SHORT] operator[:] { Keyword[final] Keyword[short] identifier[value2] operator[=] identifier[OVarIntSerializer] operator[SEP] identifier[readAsShort] operator[SEP] identifier[fieldValue2] operator[SEP] operator[SEP] Keyword[return] identifier[value1] operator[==] identifier[value2] operator[SEP] } Keyword[case] identifier[BYTE] operator[:] { Keyword[final] Keyword[byte] identifier[value2] operator[=] identifier[readByte] operator[SEP] identifier[fieldValue2] operator[SEP] operator[SEP] Keyword[return] identifier[value1] operator[==] identifier[value2] operator[SEP] } Keyword[case] identifier[FLOAT] operator[:] { Keyword[final] Keyword[float] identifier[value2] operator[=] identifier[Float] operator[SEP] identifier[intBitsToFloat] operator[SEP] identifier[readInteger] operator[SEP] identifier[fieldValue2] operator[SEP] operator[SEP] operator[SEP] Keyword[return] identifier[value1] operator[==] identifier[value2] operator[SEP] } Keyword[case] identifier[DOUBLE] operator[:] { Keyword[final] Keyword[double] identifier[value2] operator[=] identifier[Double] operator[SEP] identifier[longBitsToDouble] operator[SEP] identifier[readLong] operator[SEP] identifier[fieldValue2] operator[SEP] operator[SEP] operator[SEP] Keyword[return] identifier[value1] operator[==] identifier[value2] operator[SEP] } Keyword[case] identifier[STRING] operator[:] { Keyword[final] Keyword[byte] identifier[value2] operator[=] identifier[Byte] operator[SEP] identifier[parseByte] operator[SEP] operator[SEP] identifier[readString] operator[SEP] identifier[fieldValue2] operator[SEP] operator[SEP] operator[SEP] operator[SEP] Keyword[return] identifier[value1] operator[==] identifier[value2] operator[SEP] } Keyword[case] identifier[DECIMAL] operator[:] { Keyword[final] identifier[BigDecimal] identifier[value2] operator[=] identifier[ODecimalSerializer] operator[SEP] identifier[INSTANCE] operator[SEP] identifier[deserialize] operator[SEP] identifier[fieldValue2] operator[SEP] identifier[bytes] , identifier[fieldValue2] operator[SEP] identifier[offset] operator[SEP] operator[SEP] Keyword[return] identifier[value1] operator[==] identifier[value2] operator[SEP] identifier[byteValue] operator[SEP] operator[SEP] operator[SEP] } } Keyword[break] operator[SEP] } Keyword[case] identifier[BOOLEAN] operator[:] { Keyword[final] Keyword[boolean] identifier[value1] operator[=] identifier[readByte] operator[SEP] identifier[fieldValue1] operator[SEP] operator[==] Other[1] operator[SEP] Keyword[switch] operator[SEP] identifier[iField2] operator[SEP] identifier[type] operator[SEP] { Keyword[case] identifier[BOOLEAN] operator[:] { Keyword[final] Keyword[boolean] identifier[value2] operator[=] identifier[readByte] operator[SEP] identifier[fieldValue2] operator[SEP] operator[==] Other[1] operator[SEP] Keyword[return] identifier[value1] operator[==] identifier[value2] operator[SEP] } Keyword[case] identifier[STRING] operator[:] { Keyword[final] identifier[String] identifier[str] operator[=] identifier[readString] operator[SEP] identifier[fieldValue2] operator[SEP] operator[SEP] Keyword[return] identifier[Boolean] operator[SEP] identifier[parseBoolean] operator[SEP] identifier[str] operator[SEP] operator[==] identifier[value1] operator[SEP] } } Keyword[break] operator[SEP] } Keyword[case] identifier[DATE] operator[:] { Keyword[final] Keyword[long] identifier[value1] operator[=] identifier[OVarIntSerializer] operator[SEP] identifier[readAsLong] operator[SEP] identifier[fieldValue1] operator[SEP] operator[*] identifier[MILLISEC_PER_DAY] operator[SEP] Keyword[switch] operator[SEP] identifier[iField2] operator[SEP] identifier[type] operator[SEP] { Keyword[case] identifier[INTEGER] operator[:] { Keyword[final] Keyword[int] identifier[value2] operator[=] identifier[OVarIntSerializer] operator[SEP] identifier[readAsInteger] operator[SEP] identifier[fieldValue2] operator[SEP] operator[SEP] Keyword[return] identifier[value1] operator[==] identifier[value2] operator[SEP] } Keyword[case] identifier[LONG] operator[:] Keyword[case] identifier[DATETIME] operator[:] { Keyword[long] identifier[value2] operator[=] identifier[OVarIntSerializer] operator[SEP] identifier[readAsLong] operator[SEP] identifier[fieldValue2] operator[SEP] operator[SEP] identifier[value2] operator[=] identifier[convertDayToTimezone] operator[SEP] identifier[ODateHelper] operator[SEP] identifier[getDatabaseTimeZone] operator[SEP] operator[SEP] , identifier[TimeZone] operator[SEP] identifier[getTimeZone] operator[SEP] literal[String] operator[SEP] , identifier[value2] operator[SEP] operator[SEP] Keyword[return] identifier[value1] operator[==] identifier[value2] operator[SEP] } Keyword[case] identifier[DATE] operator[:] { Keyword[final] Keyword[long] identifier[value2] operator[=] identifier[OVarIntSerializer] operator[SEP] identifier[readAsLong] operator[SEP] identifier[fieldValue2] operator[SEP] operator[*] identifier[MILLISEC_PER_DAY] operator[SEP] Keyword[return] identifier[value1] operator[==] identifier[value2] operator[SEP] } Keyword[case] identifier[SHORT] operator[:] { Keyword[final] Keyword[short] identifier[value2] operator[=] identifier[OVarIntSerializer] operator[SEP] identifier[readAsShort] operator[SEP] identifier[fieldValue2] operator[SEP] operator[SEP] Keyword[return] identifier[value1] operator[==] identifier[value2] operator[SEP] } Keyword[case] identifier[FLOAT] operator[:] { Keyword[final] Keyword[float] identifier[value2] operator[=] identifier[Float] operator[SEP] identifier[intBitsToFloat] operator[SEP] identifier[readInteger] operator[SEP] identifier[fieldValue2] operator[SEP] operator[SEP] operator[SEP] Keyword[return] identifier[value1] operator[==] identifier[value2] operator[SEP] } Keyword[case] identifier[DOUBLE] operator[:] { Keyword[final] Keyword[double] identifier[value2] operator[=] identifier[Double] operator[SEP] identifier[longBitsToDouble] operator[SEP] identifier[readLong] operator[SEP] identifier[fieldValue2] operator[SEP] operator[SEP] operator[SEP] Keyword[return] identifier[value1] operator[==] identifier[value2] operator[SEP] } Keyword[case] identifier[STRING] operator[:] { } Keyword[case] identifier[DECIMAL] operator[:] { Keyword[final] identifier[BigDecimal] identifier[value2] operator[=] identifier[ODecimalSerializer] operator[SEP] identifier[INSTANCE] operator[SEP] identifier[deserialize] operator[SEP] identifier[fieldValue2] operator[SEP] identifier[bytes] , identifier[fieldValue2] operator[SEP] identifier[offset] operator[SEP] operator[SEP] Keyword[return] identifier[value1] operator[==] identifier[value2] operator[SEP] identifier[longValue] operator[SEP] operator[SEP] operator[SEP] } } Keyword[break] operator[SEP] } Keyword[case] identifier[DATETIME] operator[:] { Keyword[final] Keyword[long] identifier[value1] operator[=] identifier[OVarIntSerializer] operator[SEP] identifier[readAsLong] operator[SEP] identifier[fieldValue1] operator[SEP] operator[SEP] Keyword[switch] operator[SEP] identifier[iField2] operator[SEP] identifier[type] operator[SEP] { Keyword[case] identifier[INTEGER] operator[:] { Keyword[final] Keyword[int] identifier[value2] operator[=] identifier[OVarIntSerializer] operator[SEP] identifier[readAsInteger] operator[SEP] identifier[fieldValue2] operator[SEP] operator[SEP] Keyword[return] identifier[value1] operator[==] identifier[value2] operator[SEP] } Keyword[case] identifier[LONG] operator[:] Keyword[case] identifier[DATETIME] operator[:] { Keyword[final] Keyword[long] identifier[value2] operator[=] identifier[OVarIntSerializer] operator[SEP] identifier[readAsLong] operator[SEP] identifier[fieldValue2] operator[SEP] operator[SEP] Keyword[return] identifier[value1] operator[==] identifier[value2] operator[SEP] } Keyword[case] identifier[DATE] operator[:] { Keyword[final] Keyword[long] identifier[value2] operator[=] identifier[OVarIntSerializer] operator[SEP] identifier[readAsLong] operator[SEP] identifier[fieldValue2] operator[SEP] operator[*] identifier[MILLISEC_PER_DAY] operator[SEP] Keyword[return] identifier[value1] operator[==] identifier[value2] operator[SEP] } Keyword[case] identifier[SHORT] operator[:] { Keyword[final] Keyword[short] identifier[value2] operator[=] identifier[OVarIntSerializer] operator[SEP] identifier[readAsShort] operator[SEP] identifier[fieldValue2] operator[SEP] operator[SEP] Keyword[return] identifier[value1] operator[==] identifier[value2] operator[SEP] } Keyword[case] identifier[FLOAT] operator[:] { Keyword[final] Keyword[float] identifier[value2] operator[=] identifier[Float] operator[SEP] identifier[intBitsToFloat] operator[SEP] identifier[readInteger] operator[SEP] identifier[fieldValue2] operator[SEP] operator[SEP] operator[SEP] Keyword[return] identifier[value1] operator[==] identifier[value2] operator[SEP] } Keyword[case] identifier[DOUBLE] operator[:] { Keyword[final] Keyword[double] identifier[value2] operator[=] identifier[Double] operator[SEP] identifier[longBitsToDouble] operator[SEP] identifier[readLong] operator[SEP] identifier[fieldValue2] operator[SEP] operator[SEP] operator[SEP] Keyword[return] identifier[value1] operator[==] identifier[value2] operator[SEP] } Keyword[case] identifier[STRING] operator[:] { Keyword[final] identifier[String] identifier[value2AsString] operator[=] identifier[readString] operator[SEP] identifier[fieldValue2] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[OIOUtils] operator[SEP] identifier[isLong] operator[SEP] identifier[value2AsString] operator[SEP] operator[SEP] { Keyword[final] Keyword[long] identifier[value2] operator[=] identifier[Long] operator[SEP] identifier[parseLong] operator[SEP] identifier[value2AsString] operator[SEP] operator[SEP] Keyword[return] identifier[value1] operator[==] identifier[value2] operator[SEP] } Keyword[final] identifier[ODatabaseDocumentInternal] identifier[db] operator[=] identifier[ODatabaseRecordThreadLocal] operator[SEP] identifier[instance] operator[SEP] operator[SEP] operator[SEP] identifier[getIfDefined] operator[SEP] operator[SEP] operator[SEP] Keyword[try] { Keyword[final] identifier[SimpleDateFormat] identifier[dateFormat] operator[=] identifier[db] operator[!=] Other[null] operator[?] identifier[db] operator[SEP] identifier[getStorage] operator[SEP] operator[SEP] operator[SEP] identifier[getConfiguration] operator[SEP] operator[SEP] operator[SEP] identifier[getDateTimeFormatInstance] operator[SEP] operator[SEP] operator[:] Keyword[new] identifier[SimpleDateFormat] operator[SEP] identifier[OStorageConfiguration] operator[SEP] identifier[DEFAULT_DATETIME_FORMAT] operator[SEP] operator[SEP] Keyword[final] identifier[Date] identifier[value2AsDate] operator[=] identifier[dateFormat] operator[SEP] identifier[parse] operator[SEP] identifier[value2AsString] operator[SEP] operator[SEP] Keyword[final] Keyword[long] identifier[value2] operator[=] identifier[value2AsDate] operator[SEP] identifier[getTime] operator[SEP] operator[SEP] operator[SEP] Keyword[return] identifier[value1] operator[==] identifier[value2] operator[SEP] } Keyword[catch] operator[SEP] identifier[ParseException] identifier[ignore] operator[SEP] { Keyword[try] { Keyword[final] identifier[SimpleDateFormat] identifier[dateFormat] operator[=] identifier[db] operator[!=] Other[null] operator[?] identifier[db] operator[SEP] identifier[getStorage] operator[SEP] operator[SEP] operator[SEP] identifier[getConfiguration] operator[SEP] operator[SEP] operator[SEP] identifier[getDateFormatInstance] operator[SEP] operator[SEP] operator[:] Keyword[new] identifier[SimpleDateFormat] operator[SEP] identifier[OStorageConfiguration] operator[SEP] identifier[DEFAULT_DATE_FORMAT] operator[SEP] operator[SEP] Keyword[final] identifier[Date] identifier[value2AsDate] operator[=] identifier[dateFormat] operator[SEP] identifier[parse] operator[SEP] identifier[value2AsString] operator[SEP] operator[SEP] Keyword[final] Keyword[long] identifier[value2] operator[=] identifier[value2AsDate] operator[SEP] identifier[getTime] operator[SEP] operator[SEP] operator[SEP] Keyword[return] identifier[value1] operator[==] identifier[value2] operator[SEP] } Keyword[catch] operator[SEP] identifier[ParseException] identifier[ignored] operator[SEP] { Keyword[return] Keyword[new] identifier[Date] operator[SEP] identifier[value1] operator[SEP] operator[SEP] identifier[toString] operator[SEP] operator[SEP] operator[SEP] identifier[equals] operator[SEP] identifier[value2AsString] operator[SEP] operator[SEP] } } } Keyword[case] identifier[DECIMAL] operator[:] { Keyword[final] identifier[BigDecimal] identifier[value2] operator[=] identifier[ODecimalSerializer] operator[SEP] identifier[INSTANCE] operator[SEP] identifier[deserialize] operator[SEP] identifier[fieldValue2] operator[SEP] identifier[bytes] , identifier[fieldValue2] operator[SEP] identifier[offset] operator[SEP] operator[SEP] Keyword[return] identifier[value1] operator[==] identifier[value2] operator[SEP] identifier[longValue] operator[SEP] operator[SEP] operator[SEP] } } Keyword[break] operator[SEP] } Keyword[case] identifier[BINARY] operator[:] { Keyword[switch] operator[SEP] identifier[iField2] operator[SEP] identifier[type] operator[SEP] { Keyword[case] identifier[BINARY] operator[:] { Keyword[final] Keyword[int] identifier[length1] operator[=] identifier[OVarIntSerializer] operator[SEP] identifier[readAsInteger] operator[SEP] identifier[fieldValue1] operator[SEP] operator[SEP] Keyword[final] Keyword[int] identifier[length2] operator[=] identifier[OVarIntSerializer] operator[SEP] identifier[readAsInteger] operator[SEP] identifier[fieldValue2] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[length1] operator[!=] identifier[length2] operator[SEP] Keyword[return] literal[boolean] operator[SEP] Keyword[for] operator[SEP] Keyword[int] identifier[i] operator[=] Other[0] operator[SEP] identifier[i] operator[<] identifier[length1] operator[SEP] operator[++] identifier[i] operator[SEP] { Keyword[if] operator[SEP] identifier[fieldValue1] operator[SEP] identifier[bytes] operator[SEP] identifier[fieldValue1] operator[SEP] identifier[offset] operator[+] identifier[i] operator[SEP] operator[!=] identifier[fieldValue2] operator[SEP] identifier[bytes] operator[SEP] identifier[fieldValue2] operator[SEP] identifier[offset] operator[+] identifier[i] operator[SEP] operator[SEP] Keyword[return] literal[boolean] operator[SEP] } Keyword[return] literal[boolean] operator[SEP] } } Keyword[break] operator[SEP] } Keyword[case] identifier[LINK] operator[:] { Keyword[switch] operator[SEP] identifier[iField2] operator[SEP] identifier[type] operator[SEP] { Keyword[case] identifier[LINK] operator[:] { Keyword[final] Keyword[int] identifier[clusterId1] operator[=] identifier[OVarIntSerializer] operator[SEP] identifier[readAsInteger] operator[SEP] identifier[fieldValue1] operator[SEP] operator[SEP] Keyword[final] Keyword[int] identifier[clusterId2] operator[=] identifier[OVarIntSerializer] operator[SEP] identifier[readAsInteger] operator[SEP] identifier[fieldValue2] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[clusterId1] operator[!=] identifier[clusterId2] operator[SEP] Keyword[return] literal[boolean] operator[SEP] Keyword[final] Keyword[long] identifier[clusterPos1] operator[=] identifier[OVarIntSerializer] operator[SEP] identifier[readAsLong] operator[SEP] identifier[fieldValue1] operator[SEP] operator[SEP] Keyword[final] Keyword[long] identifier[clusterPos2] operator[=] identifier[OVarIntSerializer] operator[SEP] identifier[readAsLong] operator[SEP] identifier[fieldValue2] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[clusterPos1] operator[==] identifier[clusterPos2] operator[SEP] Keyword[return] literal[boolean] operator[SEP] Keyword[break] operator[SEP] } Keyword[case] identifier[STRING] operator[:] { Keyword[return] identifier[readOptimizedLink] operator[SEP] identifier[fieldValue1] , literal[boolean] operator[SEP] operator[SEP] identifier[toString] operator[SEP] operator[SEP] operator[SEP] identifier[equals] operator[SEP] identifier[readString] operator[SEP] identifier[fieldValue2] operator[SEP] operator[SEP] operator[SEP] } } Keyword[break] operator[SEP] } Keyword[case] identifier[DECIMAL] operator[:] { Keyword[final] identifier[BigDecimal] identifier[value1] operator[=] identifier[ODecimalSerializer] operator[SEP] identifier[INSTANCE] operator[SEP] identifier[deserialize] operator[SEP] identifier[fieldValue1] operator[SEP] identifier[bytes] , identifier[fieldValue1] operator[SEP] identifier[offset] operator[SEP] operator[SEP] Keyword[switch] operator[SEP] identifier[iField2] operator[SEP] identifier[type] operator[SEP] { Keyword[case] identifier[INTEGER] operator[:] { Keyword[final] Keyword[int] identifier[value2] operator[=] identifier[OVarIntSerializer] operator[SEP] identifier[readAsInteger] operator[SEP] identifier[fieldValue2] operator[SEP] operator[SEP] Keyword[return] identifier[value1] operator[SEP] identifier[equals] operator[SEP] Keyword[new] identifier[BigDecimal] operator[SEP] identifier[value2] operator[SEP] operator[SEP] operator[SEP] } Keyword[case] identifier[LONG] operator[:] Keyword[case] identifier[DATETIME] operator[:] { Keyword[final] Keyword[long] identifier[value2] operator[=] identifier[OVarIntSerializer] operator[SEP] identifier[readAsLong] operator[SEP] identifier[fieldValue2] operator[SEP] operator[SEP] Keyword[return] identifier[value1] operator[SEP] identifier[equals] operator[SEP] Keyword[new] identifier[BigDecimal] operator[SEP] identifier[value2] operator[SEP] operator[SEP] operator[SEP] } Keyword[case] identifier[SHORT] operator[:] { Keyword[final] Keyword[short] identifier[value2] operator[=] identifier[OVarIntSerializer] operator[SEP] identifier[readAsShort] operator[SEP] identifier[fieldValue2] operator[SEP] operator[SEP] Keyword[return] identifier[value1] operator[SEP] identifier[equals] operator[SEP] Keyword[new] identifier[BigDecimal] operator[SEP] identifier[value2] operator[SEP] operator[SEP] operator[SEP] } Keyword[case] identifier[FLOAT] operator[:] { Keyword[final] Keyword[float] identifier[value2] operator[=] identifier[Float] operator[SEP] identifier[intBitsToFloat] operator[SEP] identifier[readInteger] operator[SEP] identifier[fieldValue2] operator[SEP] operator[SEP] operator[SEP] Keyword[return] identifier[value1] operator[SEP] identifier[equals] operator[SEP] Keyword[new] identifier[BigDecimal] operator[SEP] identifier[value2] operator[SEP] operator[SEP] operator[SEP] } Keyword[case] identifier[DOUBLE] operator[:] { Keyword[final] Keyword[double] identifier[value2] operator[=] identifier[Double] operator[SEP] identifier[longBitsToDouble] operator[SEP] identifier[readLong] operator[SEP] identifier[fieldValue2] operator[SEP] operator[SEP] operator[SEP] Keyword[return] identifier[value1] operator[SEP] identifier[equals] operator[SEP] Keyword[new] identifier[BigDecimal] operator[SEP] identifier[value2] operator[SEP] operator[SEP] operator[SEP] } Keyword[case] identifier[STRING] operator[:] { Keyword[return] identifier[value1] operator[SEP] identifier[toString] operator[SEP] operator[SEP] operator[SEP] identifier[equals] operator[SEP] identifier[readString] operator[SEP] identifier[fieldValue2] operator[SEP] operator[SEP] operator[SEP] } Keyword[case] identifier[DECIMAL] operator[:] { Keyword[final] identifier[BigDecimal] identifier[value2] operator[=] identifier[ODecimalSerializer] operator[SEP] identifier[INSTANCE] operator[SEP] identifier[deserialize] operator[SEP] identifier[fieldValue2] operator[SEP] identifier[bytes] , identifier[fieldValue2] operator[SEP] identifier[offset] operator[SEP] operator[SEP] Keyword[return] identifier[value1] operator[SEP] identifier[equals] operator[SEP] identifier[value2] operator[SEP] operator[SEP] } } Keyword[break] operator[SEP] } } } Keyword[finally] { identifier[fieldValue1] operator[SEP] identifier[offset] operator[=] identifier[offset1] operator[SEP] identifier[fieldValue2] operator[SEP] identifier[offset] operator[=] identifier[offset2] operator[SEP] } Keyword[return] literal[boolean] operator[SEP] }
@Override public void trainOnInstance(Instance inst) { // Update class statistics with weights int classIndex = (int) inst.classValue(); Double weight = this.classInstances.get(classIndex); if (weight == null) weight = 0.; this.classInstances.put(classIndex, weight + inst.weight()); // Get the class prototype Double classPrototype = this.classPrototypes.get(classIndex); if (classPrototype == null) classPrototype = 1.; // Iterate over the attributes of the given instance for (int attributePosition = 0; attributePosition < inst .numAttributes(); attributePosition++) { // Get the attribute index - Dense -> 1:1, Sparse is remapped int attributeID = inst.index(attributePosition); // Skip class attribute if (attributeID == inst.classIndex()) continue; // Get the attribute observer for the current attribute GaussianNumericAttributeClassObserver obs = this.attributeObservers .get(attributeID); // Lazy init of observers, if null, instantiate a new one if (obs == null) { // FIXME: At this point, we model everything as a numeric // attribute obs = new GaussianNumericAttributeClassObserver(); this.attributeObservers.put(attributeID, obs); } // Get the probability density function under the current model GaussianEstimator obs_estimator = obs.getEstimator(classIndex); if (obs_estimator != null) { // Fetch the probability that the feature value is zero double probDens_zero_current = obs_estimator.probabilityDensity(0); classPrototype -= probDens_zero_current; } // FIXME: Sanity check on data values, for now just learn // Learn attribute value for given class obs.observeAttributeClass(inst.valueSparse(attributePosition), (int) inst.classValue(), inst.weight()); // Update obs_estimator to fetch the pdf from the updated model obs_estimator = obs.getEstimator(classIndex); // Fetch the probability that the feature value is zero double probDens_zero_updated = obs_estimator.probabilityDensity(0); // Update the class prototype classPrototype += probDens_zero_updated; } // Store the class prototype this.classPrototypes.put(classIndex, classPrototype); // Count another training instance this.instancesSeen++; }
class class_name[name] begin[{] method[trainOnInstance, return_type[void], modifier[public], parameter[inst]] begin[{] local_variable[type[int], classIndex] local_variable[type[Double], weight] if[binary_operation[member[.weight], ==, literal[null]]] begin[{] assign[member[.weight], literal[0.]] else begin[{] None end[}] THIS[member[None.classInstances]call[None.put, parameter[member[.classIndex], binary_operation[member[.weight], +, call[inst.weight, parameter[]]]]]] local_variable[type[Double], classPrototype] if[binary_operation[member[.classPrototype], ==, literal[null]]] begin[{] assign[member[.classPrototype], literal[1.]] else begin[{] None end[}] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberReference(member=attributePosition, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=index, postfix_operators=[], prefix_operators=[], qualifier=inst, selectors=[], type_arguments=None), name=attributeID)], modifiers=set(), type=BasicType(dimensions=[], name=int)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=attributeID, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MethodInvocation(arguments=[], member=classIndex, postfix_operators=[], prefix_operators=[], qualifier=inst, selectors=[], type_arguments=None), operator===), else_statement=None, label=None, then_statement=ContinueStatement(goto=None, label=None)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=This(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[MemberReference(member=attributeObservers, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None), MethodInvocation(arguments=[MemberReference(member=attributeID, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=get, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)]), name=obs)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=GaussianNumericAttributeClassObserver, sub_type=None)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=obs, 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=obs, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=ClassCreator(arguments=[], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=GaussianNumericAttributeClassObserver, sub_type=None))), label=None), StatementExpression(expression=This(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[MemberReference(member=attributeObservers, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None), MethodInvocation(arguments=[MemberReference(member=attributeID, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=obs, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=put, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)]), label=None)])), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberReference(member=classIndex, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=getEstimator, postfix_operators=[], prefix_operators=[], qualifier=obs, selectors=[], type_arguments=None), name=obs_estimator)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=GaussianEstimator, sub_type=None)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=obs_estimator, 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=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0)], member=probabilityDensity, postfix_operators=[], prefix_operators=[], qualifier=obs_estimator, selectors=[], type_arguments=None), name=probDens_zero_current)], modifiers=set(), type=BasicType(dimensions=[], name=double)), StatementExpression(expression=Assignment(expressionl=MemberReference(member=classPrototype, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type=-=, value=MemberReference(member=probDens_zero_current, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])), label=None)])), StatementExpression(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[MemberReference(member=attributePosition, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=valueSparse, postfix_operators=[], prefix_operators=[], qualifier=inst, selectors=[], type_arguments=None), Cast(expression=MethodInvocation(arguments=[], member=classValue, postfix_operators=[], prefix_operators=[], qualifier=inst, selectors=[], type_arguments=None), type=BasicType(dimensions=[], name=int)), MethodInvocation(arguments=[], member=weight, postfix_operators=[], prefix_operators=[], qualifier=inst, selectors=[], type_arguments=None)], member=observeAttributeClass, postfix_operators=[], prefix_operators=[], qualifier=obs, selectors=[], type_arguments=None), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=obs_estimator, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MethodInvocation(arguments=[MemberReference(member=classIndex, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=getEstimator, postfix_operators=[], prefix_operators=[], qualifier=obs, selectors=[], type_arguments=None)), label=None), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0)], member=probabilityDensity, postfix_operators=[], prefix_operators=[], qualifier=obs_estimator, selectors=[], type_arguments=None), name=probDens_zero_updated)], modifiers=set(), type=BasicType(dimensions=[], name=double)), StatementExpression(expression=Assignment(expressionl=MemberReference(member=classPrototype, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type=+=, value=MemberReference(member=probDens_zero_updated, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])), label=None)]), control=ForControl(condition=BinaryOperation(operandl=MemberReference(member=attributePosition, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MethodInvocation(arguments=[], member=numAttributes, postfix_operators=[], prefix_operators=[], qualifier=inst, selectors=[], type_arguments=None), operator=<), init=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), name=attributePosition)], modifiers=set(), type=BasicType(dimensions=[], name=int)), update=[MemberReference(member=attributePosition, postfix_operators=['++'], prefix_operators=[], qualifier=, selectors=[])]), label=None) THIS[member[None.classPrototypes]call[None.put, parameter[member[.classIndex], member[.classPrototype]]]] THIS[member[None.instancesSeen]] end[}] END[}]
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[trainOnInstance] operator[SEP] identifier[Instance] identifier[inst] operator[SEP] { Keyword[int] identifier[classIndex] operator[=] operator[SEP] Keyword[int] operator[SEP] identifier[inst] operator[SEP] identifier[classValue] operator[SEP] operator[SEP] operator[SEP] identifier[Double] identifier[weight] operator[=] Keyword[this] operator[SEP] identifier[classInstances] operator[SEP] identifier[get] operator[SEP] identifier[classIndex] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[weight] operator[==] Other[null] operator[SEP] identifier[weight] operator[=] literal[Float] operator[SEP] Keyword[this] operator[SEP] identifier[classInstances] operator[SEP] identifier[put] operator[SEP] identifier[classIndex] , identifier[weight] operator[+] identifier[inst] operator[SEP] identifier[weight] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[Double] identifier[classPrototype] operator[=] Keyword[this] operator[SEP] identifier[classPrototypes] operator[SEP] identifier[get] operator[SEP] identifier[classIndex] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[classPrototype] operator[==] Other[null] operator[SEP] identifier[classPrototype] operator[=] literal[Float] operator[SEP] Keyword[for] operator[SEP] Keyword[int] identifier[attributePosition] operator[=] Other[0] operator[SEP] identifier[attributePosition] operator[<] identifier[inst] operator[SEP] identifier[numAttributes] operator[SEP] operator[SEP] operator[SEP] identifier[attributePosition] operator[++] operator[SEP] { Keyword[int] identifier[attributeID] operator[=] identifier[inst] operator[SEP] identifier[index] operator[SEP] identifier[attributePosition] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[attributeID] operator[==] identifier[inst] operator[SEP] identifier[classIndex] operator[SEP] operator[SEP] operator[SEP] Keyword[continue] operator[SEP] identifier[GaussianNumericAttributeClassObserver] identifier[obs] operator[=] Keyword[this] operator[SEP] identifier[attributeObservers] operator[SEP] identifier[get] operator[SEP] identifier[attributeID] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[obs] operator[==] Other[null] operator[SEP] { identifier[obs] operator[=] Keyword[new] identifier[GaussianNumericAttributeClassObserver] operator[SEP] operator[SEP] operator[SEP] Keyword[this] operator[SEP] identifier[attributeObservers] operator[SEP] identifier[put] operator[SEP] identifier[attributeID] , identifier[obs] operator[SEP] operator[SEP] } identifier[GaussianEstimator] identifier[obs_estimator] operator[=] identifier[obs] operator[SEP] identifier[getEstimator] operator[SEP] identifier[classIndex] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[obs_estimator] operator[!=] Other[null] operator[SEP] { Keyword[double] identifier[probDens_zero_current] operator[=] identifier[obs_estimator] operator[SEP] identifier[probabilityDensity] operator[SEP] Other[0] operator[SEP] operator[SEP] identifier[classPrototype] operator[-=] identifier[probDens_zero_current] operator[SEP] } identifier[obs] operator[SEP] identifier[observeAttributeClass] operator[SEP] identifier[inst] operator[SEP] identifier[valueSparse] operator[SEP] identifier[attributePosition] operator[SEP] , operator[SEP] Keyword[int] operator[SEP] identifier[inst] operator[SEP] identifier[classValue] operator[SEP] operator[SEP] , identifier[inst] operator[SEP] identifier[weight] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[obs_estimator] operator[=] identifier[obs] operator[SEP] identifier[getEstimator] operator[SEP] identifier[classIndex] operator[SEP] operator[SEP] Keyword[double] identifier[probDens_zero_updated] operator[=] identifier[obs_estimator] operator[SEP] identifier[probabilityDensity] operator[SEP] Other[0] operator[SEP] operator[SEP] identifier[classPrototype] operator[+=] identifier[probDens_zero_updated] operator[SEP] } Keyword[this] operator[SEP] identifier[classPrototypes] operator[SEP] identifier[put] operator[SEP] identifier[classIndex] , identifier[classPrototype] operator[SEP] operator[SEP] Keyword[this] operator[SEP] identifier[instancesSeen] operator[++] operator[SEP] }
public ListHostedZonesByNameResult withHostedZones(HostedZone... hostedZones) { if (this.hostedZones == null) { setHostedZones(new com.amazonaws.internal.SdkInternalList<HostedZone>(hostedZones.length)); } for (HostedZone ele : hostedZones) { this.hostedZones.add(ele); } return this; }
class class_name[name] begin[{] method[withHostedZones, return_type[type[ListHostedZonesByNameResult]], modifier[public], parameter[hostedZones]] begin[{] if[binary_operation[THIS[member[None.hostedZones]], ==, literal[null]]] begin[{] call[.setHostedZones, parameter[ClassCreator(arguments=[MemberReference(member=length, postfix_operators=[], prefix_operators=[], qualifier=hostedZones, 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=HostedZone, sub_type=None))], dimensions=None, name=SdkInternalList, 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=hostedZones, 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=hostedZones, 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=HostedZone, sub_type=None))), label=None) return[THIS[]] end[}] END[}]
Keyword[public] identifier[ListHostedZonesByNameResult] identifier[withHostedZones] operator[SEP] identifier[HostedZone] operator[...] identifier[hostedZones] operator[SEP] { Keyword[if] operator[SEP] Keyword[this] operator[SEP] identifier[hostedZones] operator[==] Other[null] operator[SEP] { identifier[setHostedZones] operator[SEP] Keyword[new] identifier[com] operator[SEP] identifier[amazonaws] operator[SEP] identifier[internal] operator[SEP] identifier[SdkInternalList] operator[<] identifier[HostedZone] operator[>] operator[SEP] identifier[hostedZones] operator[SEP] identifier[length] operator[SEP] operator[SEP] operator[SEP] } Keyword[for] operator[SEP] identifier[HostedZone] identifier[ele] operator[:] identifier[hostedZones] operator[SEP] { Keyword[this] operator[SEP] identifier[hostedZones] operator[SEP] identifier[add] operator[SEP] identifier[ele] operator[SEP] operator[SEP] } Keyword[return] Keyword[this] operator[SEP] }
public MultiMapConfig findMultiMapConfig(String name) { name = getBaseName(name); MultiMapConfig config = lookupByPattern(configPatternMatcher, multiMapConfigs, name); if (config != null) { return config.getAsReadOnly(); } return getMultiMapConfig("default").getAsReadOnly(); }
class class_name[name] begin[{] method[findMultiMapConfig, return_type[type[MultiMapConfig]], modifier[public], parameter[name]] begin[{] assign[member[.name], call[.getBaseName, parameter[member[.name]]]] local_variable[type[MultiMapConfig], config] if[binary_operation[member[.config], !=, literal[null]]] begin[{] return[call[config.getAsReadOnly, parameter[]]] else begin[{] None end[}] return[call[.getMultiMapConfig, parameter[literal["default"]]]] end[}] END[}]
Keyword[public] identifier[MultiMapConfig] identifier[findMultiMapConfig] operator[SEP] identifier[String] identifier[name] operator[SEP] { identifier[name] operator[=] identifier[getBaseName] operator[SEP] identifier[name] operator[SEP] operator[SEP] identifier[MultiMapConfig] identifier[config] operator[=] identifier[lookupByPattern] operator[SEP] identifier[configPatternMatcher] , identifier[multiMapConfigs] , identifier[name] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[config] operator[!=] Other[null] operator[SEP] { Keyword[return] identifier[config] operator[SEP] identifier[getAsReadOnly] operator[SEP] operator[SEP] operator[SEP] } Keyword[return] identifier[getMultiMapConfig] operator[SEP] literal[String] operator[SEP] operator[SEP] identifier[getAsReadOnly] operator[SEP] operator[SEP] operator[SEP] }
public static synchronized String getFullName(String cweId) { final String name = getName(cweId); if (name != null) { return cweId + " " + name; } return cweId; }
class class_name[name] begin[{] method[getFullName, return_type[type[String]], modifier[synchronized public static], parameter[cweId]] begin[{] local_variable[type[String], name] if[binary_operation[member[.name], !=, literal[null]]] begin[{] return[binary_operation[binary_operation[member[.cweId], +, literal[" "]], +, member[.name]]] else begin[{] None end[}] return[member[.cweId]] end[}] END[}]
Keyword[public] Keyword[static] Keyword[synchronized] identifier[String] identifier[getFullName] operator[SEP] identifier[String] identifier[cweId] operator[SEP] { Keyword[final] identifier[String] identifier[name] operator[=] identifier[getName] operator[SEP] identifier[cweId] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[name] operator[!=] Other[null] operator[SEP] { Keyword[return] identifier[cweId] operator[+] literal[String] operator[+] identifier[name] operator[SEP] } Keyword[return] identifier[cweId] operator[SEP] }
private static <T> T getContextualReference(Class<T> type, BeanManager beanManager, Bean<?> bean) { //noinspection unchecked return getContextualReference(type, beanManager, new HashSet<Bean<?>>((Collection) Arrays.asList(bean))); }
class class_name[name] begin[{] method[getContextualReference, return_type[type[T]], modifier[private static], parameter[type, beanManager, bean]] begin[{] return[call[.getContextualReference, parameter[member[.type], member[.beanManager], ClassCreator(arguments=[Cast(expression=MethodInvocation(arguments=[MemberReference(member=bean, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=asList, postfix_operators=[], prefix_operators=[], qualifier=Arrays, selectors=[], type_arguments=None), type=ReferenceType(arguments=None, dimensions=[], name=Collection, sub_type=None))], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=[TypeArgument(pattern_type=?, type=None)], dimensions=[], name=Bean, sub_type=None))], dimensions=None, name=HashSet, sub_type=None))]]] end[}] END[}]
Keyword[private] Keyword[static] operator[<] identifier[T] operator[>] identifier[T] identifier[getContextualReference] operator[SEP] identifier[Class] operator[<] identifier[T] operator[>] identifier[type] , identifier[BeanManager] identifier[beanManager] , identifier[Bean] operator[<] operator[?] operator[>] identifier[bean] operator[SEP] { Keyword[return] identifier[getContextualReference] operator[SEP] identifier[type] , identifier[beanManager] , Keyword[new] identifier[HashSet] operator[<] identifier[Bean] operator[<] operator[?] operator[>] operator[>] operator[SEP] operator[SEP] identifier[Collection] operator[SEP] identifier[Arrays] operator[SEP] identifier[asList] operator[SEP] identifier[bean] operator[SEP] operator[SEP] operator[SEP] operator[SEP] }
@Override public ClusterSubnetGroup createClusterSubnetGroup(CreateClusterSubnetGroupRequest request) { request = beforeClientExecution(request); return executeCreateClusterSubnetGroup(request); }
class class_name[name] begin[{] method[createClusterSubnetGroup, return_type[type[ClusterSubnetGroup]], modifier[public], parameter[request]] begin[{] assign[member[.request], call[.beforeClientExecution, parameter[member[.request]]]] return[call[.executeCreateClusterSubnetGroup, parameter[member[.request]]]] end[}] END[}]
annotation[@] identifier[Override] Keyword[public] identifier[ClusterSubnetGroup] identifier[createClusterSubnetGroup] operator[SEP] identifier[CreateClusterSubnetGroupRequest] identifier[request] operator[SEP] { identifier[request] operator[=] identifier[beforeClientExecution] operator[SEP] identifier[request] operator[SEP] operator[SEP] Keyword[return] identifier[executeCreateClusterSubnetGroup] operator[SEP] identifier[request] operator[SEP] operator[SEP] }
public BaseTypeId getBaseTypeId(final Class<? extends GraphObject> type) { final CMISInfo info = getCMISInfo(type); if (info != null) { return info.getBaseTypeId(); } return null; }
class class_name[name] begin[{] method[getBaseTypeId, return_type[type[BaseTypeId]], modifier[public], parameter[type]] begin[{] local_variable[type[CMISInfo], info] if[binary_operation[member[.info], !=, literal[null]]] begin[{] return[call[info.getBaseTypeId, parameter[]]] else begin[{] None end[}] return[literal[null]] end[}] END[}]
Keyword[public] identifier[BaseTypeId] identifier[getBaseTypeId] operator[SEP] Keyword[final] identifier[Class] operator[<] operator[?] Keyword[extends] identifier[GraphObject] operator[>] identifier[type] operator[SEP] { Keyword[final] identifier[CMISInfo] identifier[info] operator[=] identifier[getCMISInfo] operator[SEP] identifier[type] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[info] operator[!=] Other[null] operator[SEP] { Keyword[return] identifier[info] operator[SEP] identifier[getBaseTypeId] operator[SEP] operator[SEP] operator[SEP] } Keyword[return] Other[null] operator[SEP] }
public MapConfig getMapConfig(String name) { return ConfigUtils.getConfig(configPatternMatcher, mapConfigs, name, MapConfig.class); }
class class_name[name] begin[{] method[getMapConfig, return_type[type[MapConfig]], modifier[public], parameter[name]] begin[{] return[call[ConfigUtils.getConfig, parameter[member[.configPatternMatcher], member[.mapConfigs], member[.name], ClassReference(postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=MapConfig, sub_type=None))]]] end[}] END[}]
Keyword[public] identifier[MapConfig] identifier[getMapConfig] operator[SEP] identifier[String] identifier[name] operator[SEP] { Keyword[return] identifier[ConfigUtils] operator[SEP] identifier[getConfig] operator[SEP] identifier[configPatternMatcher] , identifier[mapConfigs] , identifier[name] , identifier[MapConfig] operator[SEP] Keyword[class] operator[SEP] operator[SEP] }
public void update(final Memory srcMem, final ArrayOfItemsSerDe<T> serDe) { final ItemsSketch<T> that = ItemsSketch.getInstance(srcMem, comparator_, serDe); gadget_ = updateLogic(maxK_, comparator_, gadget_, that); }
class class_name[name] begin[{] method[update, return_type[void], modifier[public], parameter[srcMem, serDe]] begin[{] local_variable[type[ItemsSketch], that] assign[member[.gadget_], call[.updateLogic, parameter[member[.maxK_], member[.comparator_], member[.gadget_], member[.that]]]] end[}] END[}]
Keyword[public] Keyword[void] identifier[update] operator[SEP] Keyword[final] identifier[Memory] identifier[srcMem] , Keyword[final] identifier[ArrayOfItemsSerDe] operator[<] identifier[T] operator[>] identifier[serDe] operator[SEP] { Keyword[final] identifier[ItemsSketch] operator[<] identifier[T] operator[>] identifier[that] operator[=] identifier[ItemsSketch] operator[SEP] identifier[getInstance] operator[SEP] identifier[srcMem] , identifier[comparator_] , identifier[serDe] operator[SEP] operator[SEP] identifier[gadget_] operator[=] identifier[updateLogic] operator[SEP] identifier[maxK_] , identifier[comparator_] , identifier[gadget_] , identifier[that] operator[SEP] operator[SEP] }
public Chunk setRemoteGoto(String filename, String name) { return setAttribute(REMOTEGOTO, new Object[] { filename, name }); }
class class_name[name] begin[{] method[setRemoteGoto, return_type[type[Chunk]], modifier[public], parameter[filename, name]] begin[{] return[call[.setAttribute, parameter[member[.REMOTEGOTO], ArrayCreator(dimensions=[None], initializer=ArrayInitializer(initializers=[MemberReference(member=filename, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=name, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])]), postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=Object, sub_type=None))]]] end[}] END[}]
Keyword[public] identifier[Chunk] identifier[setRemoteGoto] operator[SEP] identifier[String] identifier[filename] , identifier[String] identifier[name] operator[SEP] { Keyword[return] identifier[setAttribute] operator[SEP] identifier[REMOTEGOTO] , Keyword[new] identifier[Object] operator[SEP] operator[SEP] { identifier[filename] , identifier[name] } operator[SEP] operator[SEP] }
public static <T> String getKeysWhereSQL(T t, List<Object> keyValues) throws NoKeyColumnAnnotationException, NullKeyValueException { List<Field> keyFields = DOInfoReader.getKeyColumns(t.getClass()); List<Object> _keyValues = new ArrayList<Object>(); String where = joinWhereAndGetValue(keyFields, "AND", _keyValues, t); // 检查主键不允许为null for(Object value : keyValues) { if(value == null) { throw new NullKeyValueException(); } } if(keyValues != null) { keyValues.addAll(_keyValues); } return autoSetSoftDeleted("WHERE " + where, t.getClass()); }
class class_name[name] begin[{] method[getKeysWhereSQL, return_type[type[String]], modifier[public static], parameter[t, keyValues]] begin[{] local_variable[type[List], keyFields] local_variable[type[List], _keyValues] local_variable[type[String], where] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=value, 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=[ThrowStatement(expression=ClassCreator(arguments=[], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=NullKeyValueException, sub_type=None)), label=None)]))]), control=EnhancedForControl(iterable=MemberReference(member=keyValues, 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=Object, sub_type=None))), label=None) if[binary_operation[member[.keyValues], !=, literal[null]]] begin[{] call[keyValues.addAll, parameter[member[._keyValues]]] else begin[{] None end[}] return[call[.autoSetSoftDeleted, parameter[binary_operation[literal["WHERE "], +, member[.where]], call[t.getClass, parameter[]]]]] end[}] END[}]
Keyword[public] Keyword[static] operator[<] identifier[T] operator[>] identifier[String] identifier[getKeysWhereSQL] operator[SEP] identifier[T] identifier[t] , identifier[List] operator[<] identifier[Object] operator[>] identifier[keyValues] operator[SEP] Keyword[throws] identifier[NoKeyColumnAnnotationException] , identifier[NullKeyValueException] { identifier[List] operator[<] identifier[Field] operator[>] identifier[keyFields] operator[=] identifier[DOInfoReader] operator[SEP] identifier[getKeyColumns] operator[SEP] identifier[t] operator[SEP] identifier[getClass] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[List] operator[<] identifier[Object] operator[>] identifier[_keyValues] operator[=] Keyword[new] identifier[ArrayList] operator[<] identifier[Object] operator[>] operator[SEP] operator[SEP] operator[SEP] identifier[String] identifier[where] operator[=] identifier[joinWhereAndGetValue] operator[SEP] identifier[keyFields] , literal[String] , identifier[_keyValues] , identifier[t] operator[SEP] operator[SEP] Keyword[for] operator[SEP] identifier[Object] identifier[value] operator[:] identifier[keyValues] operator[SEP] { Keyword[if] operator[SEP] identifier[value] operator[==] Other[null] operator[SEP] { Keyword[throw] Keyword[new] identifier[NullKeyValueException] operator[SEP] operator[SEP] operator[SEP] } } Keyword[if] operator[SEP] identifier[keyValues] operator[!=] Other[null] operator[SEP] { identifier[keyValues] operator[SEP] identifier[addAll] operator[SEP] identifier[_keyValues] operator[SEP] operator[SEP] } Keyword[return] identifier[autoSetSoftDeleted] operator[SEP] literal[String] operator[+] identifier[where] , identifier[t] operator[SEP] identifier[getClass] operator[SEP] operator[SEP] operator[SEP] operator[SEP] }
@Override protected void processSetting(String name, String value) { super.processSetting(name, value); if (KAM_NAME_DESC.equals(name)) { kamName = value; } else if(KAM_DESCRIPTION_DESC.equals(name)) { kamDescription = value; } }
class class_name[name] begin[{] method[processSetting, return_type[void], modifier[protected], parameter[name, value]] begin[{] SuperMethodInvocation(arguments=[MemberReference(member=name, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=value, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=processSetting, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type_arguments=None) if[call[KAM_NAME_DESC.equals, parameter[member[.name]]]] begin[{] assign[member[.kamName], member[.value]] else begin[{] if[call[KAM_DESCRIPTION_DESC.equals, parameter[member[.name]]]] begin[{] assign[member[.kamDescription], member[.value]] else begin[{] None end[}] end[}] end[}] END[}]
annotation[@] identifier[Override] Keyword[protected] Keyword[void] identifier[processSetting] operator[SEP] identifier[String] identifier[name] , identifier[String] identifier[value] operator[SEP] { Keyword[super] operator[SEP] identifier[processSetting] operator[SEP] identifier[name] , identifier[value] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[KAM_NAME_DESC] operator[SEP] identifier[equals] operator[SEP] identifier[name] operator[SEP] operator[SEP] { identifier[kamName] operator[=] identifier[value] operator[SEP] } Keyword[else] Keyword[if] operator[SEP] identifier[KAM_DESCRIPTION_DESC] operator[SEP] identifier[equals] operator[SEP] identifier[name] operator[SEP] operator[SEP] { identifier[kamDescription] operator[=] identifier[value] operator[SEP] } }
public void writeAsMusicXML(Tune tune, File file) throws IOException { BufferedWriter writer = new BufferedWriter(new FileWriter(file)); Document doc = createMusicXmlDOM(tune); // dumpDOM(doc); writeAsMusicXML(doc, writer); writer.flush(); writer.close(); }
class class_name[name] begin[{] method[writeAsMusicXML, return_type[void], modifier[public], parameter[tune, file]] begin[{] local_variable[type[BufferedWriter], writer] local_variable[type[Document], doc] call[.writeAsMusicXML, parameter[member[.doc], member[.writer]]] call[writer.flush, parameter[]] call[writer.close, parameter[]] end[}] END[}]
Keyword[public] Keyword[void] identifier[writeAsMusicXML] operator[SEP] identifier[Tune] identifier[tune] , identifier[File] identifier[file] operator[SEP] Keyword[throws] identifier[IOException] { identifier[BufferedWriter] identifier[writer] operator[=] Keyword[new] identifier[BufferedWriter] operator[SEP] Keyword[new] identifier[FileWriter] operator[SEP] identifier[file] operator[SEP] operator[SEP] operator[SEP] identifier[Document] identifier[doc] operator[=] identifier[createMusicXmlDOM] operator[SEP] identifier[tune] operator[SEP] operator[SEP] identifier[writeAsMusicXML] operator[SEP] identifier[doc] , identifier[writer] operator[SEP] operator[SEP] identifier[writer] operator[SEP] identifier[flush] operator[SEP] operator[SEP] operator[SEP] identifier[writer] operator[SEP] identifier[close] operator[SEP] operator[SEP] operator[SEP] }
private static void initializeNucleotideTemplates() throws NucleotideLoadingException { InputStream in = null; File localFile = new File(LOCAL_NUCLEOTIDE_TEMPLATE_FILE_PATH); Map<String, Map<String, String>> templates = null; if (localFile.exists()) { try { in = new FileInputStream(localFile); templates = buildNucleotideTemplates(in); validate(templates); logger.log(Level.INFO, LOCAL_NUCLEOTIDE_TEMPLATE_FILE_PATH + " is used for nucleotide templates initialization"); } catch (Exception e) { logger.log(Level.INFO, "Unable to use local nucleotide templates for initialization"); localFile.delete(); logger.log(Level.INFO, "Deleted local nucleotide templates file"); } } if (null == templates) { in = NucleotideFactory.class.getResourceAsStream(NUCLEOTIDE_TEMPLATE_XML_RESOURCE); try { templates = buildNucleotideTemplates(in); validate(templates); } catch (IOException | JDOMException | NotationException e) { throw new NucleotideLoadingException( "Initializing NucleotideStore failed because of " + e.getClass().getSimpleName(), e); } logger.log(Level.INFO, NUCLEOTIDE_TEMPLATE_XML_RESOURCE + " is used for nucleotide templates initialization"); } nucleotideTemplates = templates; reverseNucleotideMap = getReverseNucleotideTemplateMap(NotationConstant.NOTATION_SOURCE); }
class class_name[name] begin[{] method[initializeNucleotideTemplates, return_type[void], modifier[private static], parameter[]] begin[{] local_variable[type[InputStream], in] local_variable[type[File], localFile] local_variable[type[Map], templates] if[call[localFile.exists, parameter[]]] begin[{] TryStatement(block=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=in, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=ClassCreator(arguments=[MemberReference(member=localFile, 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=FileInputStream, sub_type=None))), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=templates, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MethodInvocation(arguments=[MemberReference(member=in, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=buildNucleotideTemplates, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None)), label=None), StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=templates, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=validate, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=INFO, postfix_operators=[], prefix_operators=[], qualifier=Level, selectors=[]), BinaryOperation(operandl=MemberReference(member=LOCAL_NUCLEOTIDE_TEMPLATE_FILE_PATH, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=" is used for nucleotide templates initialization"), operator=+)], member=log, postfix_operators=[], prefix_operators=[], qualifier=logger, selectors=[], type_arguments=None), label=None)], catches=[CatchClause(block=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=INFO, postfix_operators=[], prefix_operators=[], qualifier=Level, selectors=[]), Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="Unable to use local nucleotide templates for initialization")], member=log, postfix_operators=[], prefix_operators=[], qualifier=logger, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[], member=delete, postfix_operators=[], prefix_operators=[], qualifier=localFile, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=INFO, postfix_operators=[], prefix_operators=[], qualifier=Level, selectors=[]), Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="Deleted local nucleotide templates file")], member=log, 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[}] if[binary_operation[literal[null], ==, member[.templates]]] begin[{] assign[member[.in], ClassReference(postfix_operators=[], prefix_operators=[], qualifier=, selectors=[MethodInvocation(arguments=[MemberReference(member=NUCLEOTIDE_TEMPLATE_XML_RESOURCE, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=getResourceAsStream, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)], type=ReferenceType(arguments=None, dimensions=None, name=NucleotideFactory, sub_type=None))] TryStatement(block=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=templates, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MethodInvocation(arguments=[MemberReference(member=in, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=buildNucleotideTemplates, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None)), label=None), StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=templates, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=validate, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), label=None)], catches=[CatchClause(block=[ThrowStatement(expression=ClassCreator(arguments=[BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="Initializing NucleotideStore failed because of "), operandr=MethodInvocation(arguments=[], member=getClass, postfix_operators=[], prefix_operators=[], qualifier=e, selectors=[MethodInvocation(arguments=[], member=getSimpleName, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)], 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=NucleotideLoadingException, sub_type=None)), label=None)], label=None, parameter=CatchClauseParameter(annotations=None, modifiers=None, name=e, types=['IOException', 'JDOMException', 'NotationException']))], finally_block=None, label=None, resources=None) call[logger.log, parameter[member[Level.INFO], binary_operation[member[.NUCLEOTIDE_TEMPLATE_XML_RESOURCE], +, literal[" is used for nucleotide templates initialization"]]]] else begin[{] None end[}] assign[member[.nucleotideTemplates], member[.templates]] assign[member[.reverseNucleotideMap], call[.getReverseNucleotideTemplateMap, parameter[member[NotationConstant.NOTATION_SOURCE]]]] end[}] END[}]
Keyword[private] Keyword[static] Keyword[void] identifier[initializeNucleotideTemplates] operator[SEP] operator[SEP] Keyword[throws] identifier[NucleotideLoadingException] { identifier[InputStream] identifier[in] operator[=] Other[null] operator[SEP] identifier[File] identifier[localFile] operator[=] Keyword[new] identifier[File] operator[SEP] identifier[LOCAL_NUCLEOTIDE_TEMPLATE_FILE_PATH] operator[SEP] operator[SEP] identifier[Map] operator[<] identifier[String] , identifier[Map] operator[<] identifier[String] , identifier[String] operator[>] operator[>] identifier[templates] operator[=] Other[null] operator[SEP] Keyword[if] operator[SEP] identifier[localFile] operator[SEP] identifier[exists] operator[SEP] operator[SEP] operator[SEP] { Keyword[try] { identifier[in] operator[=] Keyword[new] identifier[FileInputStream] operator[SEP] identifier[localFile] operator[SEP] operator[SEP] identifier[templates] operator[=] identifier[buildNucleotideTemplates] operator[SEP] identifier[in] operator[SEP] operator[SEP] identifier[validate] operator[SEP] identifier[templates] operator[SEP] operator[SEP] identifier[logger] operator[SEP] identifier[log] operator[SEP] identifier[Level] operator[SEP] identifier[INFO] , identifier[LOCAL_NUCLEOTIDE_TEMPLATE_FILE_PATH] operator[+] literal[String] operator[SEP] operator[SEP] } Keyword[catch] operator[SEP] identifier[Exception] identifier[e] operator[SEP] { identifier[logger] operator[SEP] identifier[log] operator[SEP] identifier[Level] operator[SEP] identifier[INFO] , literal[String] operator[SEP] operator[SEP] identifier[localFile] operator[SEP] identifier[delete] operator[SEP] operator[SEP] operator[SEP] identifier[logger] operator[SEP] identifier[log] operator[SEP] identifier[Level] operator[SEP] identifier[INFO] , literal[String] operator[SEP] operator[SEP] } } Keyword[if] operator[SEP] Other[null] operator[==] identifier[templates] operator[SEP] { identifier[in] operator[=] identifier[NucleotideFactory] operator[SEP] Keyword[class] operator[SEP] identifier[getResourceAsStream] operator[SEP] identifier[NUCLEOTIDE_TEMPLATE_XML_RESOURCE] operator[SEP] operator[SEP] Keyword[try] { identifier[templates] operator[=] identifier[buildNucleotideTemplates] operator[SEP] identifier[in] operator[SEP] operator[SEP] identifier[validate] operator[SEP] identifier[templates] operator[SEP] operator[SEP] } Keyword[catch] operator[SEP] identifier[IOException] operator[|] identifier[JDOMException] operator[|] identifier[NotationException] identifier[e] operator[SEP] { Keyword[throw] Keyword[new] identifier[NucleotideLoadingException] operator[SEP] literal[String] operator[+] identifier[e] operator[SEP] identifier[getClass] operator[SEP] operator[SEP] operator[SEP] identifier[getSimpleName] operator[SEP] operator[SEP] , identifier[e] operator[SEP] operator[SEP] } identifier[logger] operator[SEP] identifier[log] operator[SEP] identifier[Level] operator[SEP] identifier[INFO] , identifier[NUCLEOTIDE_TEMPLATE_XML_RESOURCE] operator[+] literal[String] operator[SEP] operator[SEP] } identifier[nucleotideTemplates] operator[=] identifier[templates] operator[SEP] identifier[reverseNucleotideMap] operator[=] identifier[getReverseNucleotideTemplateMap] operator[SEP] identifier[NotationConstant] operator[SEP] identifier[NOTATION_SOURCE] operator[SEP] operator[SEP] }
protected <T> long processUpdateGroup(T obj, String groupType, String groupName, Collection<CpoWhere> wheres, Collection<CpoOrderBy> orderBy, Collection<CpoNativeFunction> nativeExpressions, Session sess) throws CpoException { Logger localLogger = obj == null ? logger : LoggerFactory.getLogger(obj.getClass()); CpoClass cpoClass; if (obj == null) { throw new CpoException("NULL Object passed into insertObject, deleteObject, updateObject, or persistObject"); } try { cpoClass = metaDescriptor.getMetaClass(obj); List<CpoFunction> cpoFunctions = cpoClass.getFunctionGroup(getGroupType(obj, groupType, groupName, sess), groupName).getFunctions(); localLogger.info("=================== Class=<" + obj.getClass() + "> Type=<" + groupType + "> Name=<" + groupName + "> ========================="); for (CpoFunction cpoFunction : cpoFunctions) { CassandraBoundStatementFactory boundStatementFactory = new CassandraBoundStatementFactory(sess, this, cpoClass, cpoFunction, obj, wheres, orderBy, nativeExpressions); executeBoundStatement(sess, boundStatementFactory); } localLogger.info("=================== " + " Updates - Class=<" + obj.getClass() + "> Type=<" + groupType + "> Name=<" + groupName + "> ========================="); } catch (Throwable t) { String msg = "ProcessUpdateGroup failed:" + groupType + "," + groupName + "," + obj.getClass().getName(); // TODO FIX THIS // localLogger.error("bound values:" + this.parameterToString(jq)); localLogger.error(msg, t); throw new CpoException(msg, t); } return unknownModifyCount; }
class class_name[name] begin[{] method[processUpdateGroup, return_type[type[long]], modifier[protected], parameter[obj, groupType, groupName, wheres, orderBy, nativeExpressions, sess]] begin[{] local_variable[type[Logger], localLogger] local_variable[type[CpoClass], cpoClass] if[binary_operation[member[.obj], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="NULL Object passed into insertObject, deleteObject, updateObject, or persistObject")], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=CpoException, sub_type=None)), label=None) else begin[{] None end[}] TryStatement(block=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=cpoClass, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MethodInvocation(arguments=[MemberReference(member=obj, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=getMetaClass, postfix_operators=[], prefix_operators=[], qualifier=metaDescriptor, selectors=[], type_arguments=None)), label=None), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MethodInvocation(arguments=[MemberReference(member=obj, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=groupType, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=groupName, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=sess, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=getGroupType, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), MemberReference(member=groupName, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=getFunctionGroup, postfix_operators=[], prefix_operators=[], qualifier=cpoClass, selectors=[MethodInvocation(arguments=[], member=getFunctions, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)], type_arguments=None), name=cpoFunctions)], modifiers=set(), type=ReferenceType(arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=CpoFunction, sub_type=None))], dimensions=[], name=List, sub_type=None)), StatementExpression(expression=MethodInvocation(arguments=[BinaryOperation(operandl=BinaryOperation(operandl=BinaryOperation(operandl=BinaryOperation(operandl=BinaryOperation(operandl=BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="=================== Class=<"), operandr=MethodInvocation(arguments=[], member=getClass, postfix_operators=[], prefix_operators=[], qualifier=obj, selectors=[], type_arguments=None), operator=+), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="> Type=<"), operator=+), operandr=MemberReference(member=groupType, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=+), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="> Name=<"), operator=+), operandr=MemberReference(member=groupName, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=+), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="> ========================="), operator=+)], member=info, postfix_operators=[], prefix_operators=[], qualifier=localLogger, selectors=[], type_arguments=None), label=None), ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=ClassCreator(arguments=[MemberReference(member=sess, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), This(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[]), MemberReference(member=cpoClass, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=cpoFunction, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=obj, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=wheres, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=orderBy, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=nativeExpressions, 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=CassandraBoundStatementFactory, sub_type=None)), name=boundStatementFactory)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=CassandraBoundStatementFactory, sub_type=None)), StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=sess, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=boundStatementFactory, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=executeBoundStatement, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), label=None)]), control=EnhancedForControl(iterable=MemberReference(member=cpoFunctions, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), var=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=None, name=cpoFunction)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=CpoFunction, sub_type=None))), label=None), StatementExpression(expression=MethodInvocation(arguments=[BinaryOperation(operandl=BinaryOperation(operandl=BinaryOperation(operandl=BinaryOperation(operandl=BinaryOperation(operandl=BinaryOperation(operandl=BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="=================== "), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=" Updates - Class=<"), operator=+), operandr=MethodInvocation(arguments=[], member=getClass, postfix_operators=[], prefix_operators=[], qualifier=obj, selectors=[], type_arguments=None), operator=+), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="> Type=<"), operator=+), operandr=MemberReference(member=groupType, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=+), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="> Name=<"), operator=+), operandr=MemberReference(member=groupName, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=+), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="> ========================="), operator=+)], member=info, postfix_operators=[], prefix_operators=[], qualifier=localLogger, selectors=[], type_arguments=None), label=None)], catches=[CatchClause(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=BinaryOperation(operandl=BinaryOperation(operandl=BinaryOperation(operandl=BinaryOperation(operandl=BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="ProcessUpdateGroup failed:"), operandr=MemberReference(member=groupType, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=+), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=","), operator=+), operandr=MemberReference(member=groupName, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=+), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=","), operator=+), operandr=MethodInvocation(arguments=[], member=getClass, postfix_operators=[], prefix_operators=[], qualifier=obj, selectors=[MethodInvocation(arguments=[], member=getName, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)], type_arguments=None), operator=+), name=msg)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=String, sub_type=None)), StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=msg, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=t, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=error, postfix_operators=[], prefix_operators=[], qualifier=localLogger, selectors=[], type_arguments=None), label=None), ThrowStatement(expression=ClassCreator(arguments=[MemberReference(member=msg, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=t, 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=CpoException, sub_type=None)), label=None)], label=None, parameter=CatchClauseParameter(annotations=None, modifiers=None, name=t, types=['Throwable']))], finally_block=None, label=None, resources=None) return[member[.unknownModifyCount]] end[}] END[}]
Keyword[protected] operator[<] identifier[T] operator[>] Keyword[long] identifier[processUpdateGroup] operator[SEP] identifier[T] identifier[obj] , identifier[String] identifier[groupType] , identifier[String] identifier[groupName] , identifier[Collection] operator[<] identifier[CpoWhere] operator[>] identifier[wheres] , identifier[Collection] operator[<] identifier[CpoOrderBy] operator[>] identifier[orderBy] , identifier[Collection] operator[<] identifier[CpoNativeFunction] operator[>] identifier[nativeExpressions] , identifier[Session] identifier[sess] operator[SEP] Keyword[throws] identifier[CpoException] { identifier[Logger] identifier[localLogger] operator[=] identifier[obj] operator[==] Other[null] operator[?] identifier[logger] operator[:] identifier[LoggerFactory] operator[SEP] identifier[getLogger] operator[SEP] identifier[obj] operator[SEP] identifier[getClass] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[CpoClass] identifier[cpoClass] operator[SEP] Keyword[if] operator[SEP] identifier[obj] operator[==] Other[null] operator[SEP] { Keyword[throw] Keyword[new] identifier[CpoException] operator[SEP] literal[String] operator[SEP] operator[SEP] } Keyword[try] { identifier[cpoClass] operator[=] identifier[metaDescriptor] operator[SEP] identifier[getMetaClass] operator[SEP] identifier[obj] operator[SEP] operator[SEP] identifier[List] operator[<] identifier[CpoFunction] operator[>] identifier[cpoFunctions] operator[=] identifier[cpoClass] operator[SEP] identifier[getFunctionGroup] operator[SEP] identifier[getGroupType] operator[SEP] identifier[obj] , identifier[groupType] , identifier[groupName] , identifier[sess] operator[SEP] , identifier[groupName] operator[SEP] operator[SEP] identifier[getFunctions] operator[SEP] operator[SEP] operator[SEP] identifier[localLogger] operator[SEP] identifier[info] operator[SEP] literal[String] operator[+] identifier[obj] operator[SEP] identifier[getClass] operator[SEP] operator[SEP] operator[+] literal[String] operator[+] identifier[groupType] operator[+] literal[String] operator[+] identifier[groupName] operator[+] literal[String] operator[SEP] operator[SEP] Keyword[for] operator[SEP] identifier[CpoFunction] identifier[cpoFunction] operator[:] identifier[cpoFunctions] operator[SEP] { identifier[CassandraBoundStatementFactory] identifier[boundStatementFactory] operator[=] Keyword[new] identifier[CassandraBoundStatementFactory] operator[SEP] identifier[sess] , Keyword[this] , identifier[cpoClass] , identifier[cpoFunction] , identifier[obj] , identifier[wheres] , identifier[orderBy] , identifier[nativeExpressions] operator[SEP] operator[SEP] identifier[executeBoundStatement] operator[SEP] identifier[sess] , identifier[boundStatementFactory] operator[SEP] operator[SEP] } identifier[localLogger] operator[SEP] identifier[info] operator[SEP] literal[String] operator[+] literal[String] operator[+] identifier[obj] operator[SEP] identifier[getClass] operator[SEP] operator[SEP] operator[+] literal[String] operator[+] identifier[groupType] operator[+] literal[String] operator[+] identifier[groupName] operator[+] literal[String] operator[SEP] operator[SEP] } Keyword[catch] operator[SEP] identifier[Throwable] identifier[t] operator[SEP] { identifier[String] identifier[msg] operator[=] literal[String] operator[+] identifier[groupType] operator[+] literal[String] operator[+] identifier[groupName] operator[+] literal[String] operator[+] identifier[obj] operator[SEP] identifier[getClass] operator[SEP] operator[SEP] operator[SEP] identifier[getName] operator[SEP] operator[SEP] operator[SEP] identifier[localLogger] operator[SEP] identifier[error] operator[SEP] identifier[msg] , identifier[t] operator[SEP] operator[SEP] Keyword[throw] Keyword[new] identifier[CpoException] operator[SEP] identifier[msg] , identifier[t] operator[SEP] operator[SEP] } Keyword[return] identifier[unknownModifyCount] operator[SEP] }
public static void mapToFilters(final Map<String, String> map, final List<TagVFilter> filters, final boolean group_by) { if (map == null || map.isEmpty()) { return; } for (final Map.Entry<String, String> entry : map.entrySet()) { TagVFilter filter = getFilter(entry.getKey(), entry.getValue()); if (filter == null && entry.getValue().equals("*")) { filter = new TagVWildcardFilter(entry.getKey(), "*", true); } else if (filter == null) { filter = new TagVLiteralOrFilter(entry.getKey(), entry.getValue()); } if (group_by) { filter.setGroupBy(true); boolean duplicate = false; for (final TagVFilter existing : filters) { if (filter.equals(existing)) { LOG.debug("Skipping duplicate filter: " + existing); existing.setGroupBy(true); duplicate = true; break; } } if (!duplicate) { filters.add(filter); } } else { filters.add(filter); } } }
class class_name[name] begin[{] method[mapToFilters, return_type[void], modifier[public static], parameter[map, filters, group_by]] begin[{] if[binary_operation[binary_operation[member[.map], ==, literal[null]], ||, call[map.isEmpty, parameter[]]]] begin[{] return[None] else begin[{] None end[}] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MethodInvocation(arguments=[], member=getKey, postfix_operators=[], prefix_operators=[], qualifier=entry, selectors=[], type_arguments=None), MethodInvocation(arguments=[], member=getValue, postfix_operators=[], prefix_operators=[], qualifier=entry, selectors=[], type_arguments=None)], member=getFilter, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), name=filter)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=TagVFilter, sub_type=None)), IfStatement(condition=BinaryOperation(operandl=BinaryOperation(operandl=MemberReference(member=filter, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=null), operator===), operandr=MethodInvocation(arguments=[], member=getValue, postfix_operators=[], prefix_operators=[], qualifier=entry, selectors=[MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="*")], member=equals, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)], type_arguments=None), operator=&&), else_statement=IfStatement(condition=BinaryOperation(operandl=MemberReference(member=filter, 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=filter, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=ClassCreator(arguments=[MethodInvocation(arguments=[], member=getKey, postfix_operators=[], prefix_operators=[], qualifier=entry, selectors=[], type_arguments=None), MethodInvocation(arguments=[], member=getValue, postfix_operators=[], prefix_operators=[], qualifier=entry, selectors=[], type_arguments=None)], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=TagVLiteralOrFilter, sub_type=None))), label=None)])), label=None, then_statement=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=filter, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=ClassCreator(arguments=[MethodInvocation(arguments=[], member=getKey, postfix_operators=[], prefix_operators=[], qualifier=entry, selectors=[], type_arguments=None), Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="*"), Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=true)], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=TagVWildcardFilter, sub_type=None))), label=None)])), IfStatement(condition=MemberReference(member=group_by, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), else_statement=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=filter, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=add, postfix_operators=[], prefix_operators=[], qualifier=filters, selectors=[], type_arguments=None), label=None)]), label=None, then_statement=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=true)], member=setGroupBy, postfix_operators=[], prefix_operators=[], qualifier=filter, selectors=[], type_arguments=None), label=None), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=false), name=duplicate)], modifiers=set(), type=BasicType(dimensions=[], name=boolean)), ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=MethodInvocation(arguments=[MemberReference(member=existing, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=equals, postfix_operators=[], prefix_operators=[], qualifier=filter, selectors=[], type_arguments=None), else_statement=None, label=None, then_statement=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="Skipping duplicate filter: "), operandr=MemberReference(member=existing, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=+)], member=debug, postfix_operators=[], prefix_operators=[], qualifier=LOG, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=true)], member=setGroupBy, postfix_operators=[], prefix_operators=[], qualifier=existing, selectors=[], type_arguments=None), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=duplicate, 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)]))]), control=EnhancedForControl(iterable=MemberReference(member=filters, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), var=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=None, name=existing)], modifiers={'final'}, type=ReferenceType(arguments=None, dimensions=[], name=TagVFilter, sub_type=None))), label=None), IfStatement(condition=MemberReference(member=duplicate, postfix_operators=[], prefix_operators=['!'], qualifier=, selectors=[]), else_statement=None, label=None, then_statement=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=filter, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=add, postfix_operators=[], prefix_operators=[], qualifier=filters, selectors=[], type_arguments=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={'final'}, type=ReferenceType(arguments=None, dimensions=[], name=Map, sub_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=Entry, sub_type=None)))), label=None) end[}] END[}]
Keyword[public] Keyword[static] Keyword[void] identifier[mapToFilters] operator[SEP] Keyword[final] identifier[Map] operator[<] identifier[String] , identifier[String] operator[>] identifier[map] , Keyword[final] identifier[List] operator[<] identifier[TagVFilter] operator[>] identifier[filters] , Keyword[final] Keyword[boolean] identifier[group_by] operator[SEP] { Keyword[if] operator[SEP] identifier[map] operator[==] Other[null] operator[||] identifier[map] operator[SEP] identifier[isEmpty] operator[SEP] operator[SEP] operator[SEP] { Keyword[return] operator[SEP] } Keyword[for] operator[SEP] Keyword[final] identifier[Map] operator[SEP] identifier[Entry] operator[<] identifier[String] , identifier[String] operator[>] identifier[entry] operator[:] identifier[map] operator[SEP] identifier[entrySet] operator[SEP] operator[SEP] operator[SEP] { identifier[TagVFilter] identifier[filter] operator[=] identifier[getFilter] operator[SEP] identifier[entry] operator[SEP] identifier[getKey] operator[SEP] operator[SEP] , identifier[entry] operator[SEP] identifier[getValue] operator[SEP] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[filter] operator[==] Other[null] operator[&&] identifier[entry] operator[SEP] identifier[getValue] operator[SEP] operator[SEP] operator[SEP] identifier[equals] operator[SEP] literal[String] operator[SEP] operator[SEP] { identifier[filter] operator[=] Keyword[new] identifier[TagVWildcardFilter] operator[SEP] identifier[entry] operator[SEP] identifier[getKey] operator[SEP] operator[SEP] , literal[String] , literal[boolean] operator[SEP] operator[SEP] } Keyword[else] Keyword[if] operator[SEP] identifier[filter] operator[==] Other[null] operator[SEP] { identifier[filter] operator[=] Keyword[new] identifier[TagVLiteralOrFilter] operator[SEP] identifier[entry] operator[SEP] identifier[getKey] operator[SEP] operator[SEP] , identifier[entry] operator[SEP] identifier[getValue] operator[SEP] operator[SEP] operator[SEP] operator[SEP] } Keyword[if] operator[SEP] identifier[group_by] operator[SEP] { identifier[filter] operator[SEP] identifier[setGroupBy] operator[SEP] literal[boolean] operator[SEP] operator[SEP] Keyword[boolean] identifier[duplicate] operator[=] literal[boolean] operator[SEP] Keyword[for] operator[SEP] Keyword[final] identifier[TagVFilter] identifier[existing] operator[:] identifier[filters] operator[SEP] { Keyword[if] operator[SEP] identifier[filter] operator[SEP] identifier[equals] operator[SEP] identifier[existing] operator[SEP] operator[SEP] { identifier[LOG] operator[SEP] identifier[debug] operator[SEP] literal[String] operator[+] identifier[existing] operator[SEP] operator[SEP] identifier[existing] operator[SEP] identifier[setGroupBy] operator[SEP] literal[boolean] operator[SEP] operator[SEP] identifier[duplicate] operator[=] literal[boolean] operator[SEP] Keyword[break] operator[SEP] } } Keyword[if] operator[SEP] operator[!] identifier[duplicate] operator[SEP] { identifier[filters] operator[SEP] identifier[add] operator[SEP] identifier[filter] operator[SEP] operator[SEP] } } Keyword[else] { identifier[filters] operator[SEP] identifier[add] operator[SEP] identifier[filter] operator[SEP] operator[SEP] } } }
protected B fields(List<F> fields) { if (instance.def.fields == null) { instance.def.fields = new ArrayList<F>(fields.size()); } instance.def.fields.addAll(fields); return returnThis(); }
class class_name[name] begin[{] method[fields, return_type[type[B]], modifier[protected], parameter[fields]] begin[{] if[binary_operation[member[instance.def.fields], ==, literal[null]]] begin[{] assign[member[instance.def.fields], ClassCreator(arguments=[MethodInvocation(arguments=[], member=size, postfix_operators=[], prefix_operators=[], qualifier=fields, selectors=[], type_arguments=None)], 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=F, sub_type=None))], dimensions=None, name=ArrayList, sub_type=None))] else begin[{] None end[}] call[instance.def.fields.addAll, parameter[member[.fields]]] return[call[.returnThis, parameter[]]] end[}] END[}]
Keyword[protected] identifier[B] identifier[fields] operator[SEP] identifier[List] operator[<] identifier[F] operator[>] identifier[fields] operator[SEP] { Keyword[if] operator[SEP] identifier[instance] operator[SEP] identifier[def] operator[SEP] identifier[fields] operator[==] Other[null] operator[SEP] { identifier[instance] operator[SEP] identifier[def] operator[SEP] identifier[fields] operator[=] Keyword[new] identifier[ArrayList] operator[<] identifier[F] operator[>] operator[SEP] identifier[fields] operator[SEP] identifier[size] operator[SEP] operator[SEP] operator[SEP] operator[SEP] } identifier[instance] operator[SEP] identifier[def] operator[SEP] identifier[fields] operator[SEP] identifier[addAll] operator[SEP] identifier[fields] operator[SEP] operator[SEP] Keyword[return] identifier[returnThis] operator[SEP] operator[SEP] operator[SEP] }
private Long getAccountIdArg(Object[] arguments) { if (arguments.length <= ACCT_ID_INDEX) { log.error("Illegal number of args: " + arguments.length); } return (Long) arguments[ACCT_ID_INDEX]; }
class class_name[name] begin[{] method[getAccountIdArg, return_type[type[Long]], modifier[private], parameter[arguments]] begin[{] if[binary_operation[member[arguments.length], <=, member[.ACCT_ID_INDEX]]] begin[{] call[log.error, parameter[binary_operation[literal["Illegal number of args: "], +, member[arguments.length]]]] else begin[{] None end[}] return[Cast(expression=MemberReference(member=arguments, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=MemberReference(member=ACCT_ID_INDEX, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]))]), type=ReferenceType(arguments=None, dimensions=[], name=Long, sub_type=None))] end[}] END[}]
Keyword[private] identifier[Long] identifier[getAccountIdArg] operator[SEP] identifier[Object] operator[SEP] operator[SEP] identifier[arguments] operator[SEP] { Keyword[if] operator[SEP] identifier[arguments] operator[SEP] identifier[length] operator[<=] identifier[ACCT_ID_INDEX] operator[SEP] { identifier[log] operator[SEP] identifier[error] operator[SEP] literal[String] operator[+] identifier[arguments] operator[SEP] identifier[length] operator[SEP] operator[SEP] } Keyword[return] operator[SEP] identifier[Long] operator[SEP] identifier[arguments] operator[SEP] identifier[ACCT_ID_INDEX] operator[SEP] operator[SEP] }
public CmsSolrResultList search( CmsObject cms, final CmsSolrQuery query, boolean ignoreMaxRows, ServletResponse response, boolean ignoreSearchExclude, CmsResourceFilter filter) throws CmsSearchException { return search(cms, query, ignoreMaxRows, response, ignoreSearchExclude, filter, getMaxProcessedResults()); }
class class_name[name] begin[{] method[search, return_type[type[CmsSolrResultList]], modifier[public], parameter[cms, query, ignoreMaxRows, response, ignoreSearchExclude, filter]] begin[{] return[call[.search, parameter[member[.cms], member[.query], member[.ignoreMaxRows], member[.response], member[.ignoreSearchExclude], member[.filter], call[.getMaxProcessedResults, parameter[]]]]] end[}] END[}]
Keyword[public] identifier[CmsSolrResultList] identifier[search] operator[SEP] identifier[CmsObject] identifier[cms] , Keyword[final] identifier[CmsSolrQuery] identifier[query] , Keyword[boolean] identifier[ignoreMaxRows] , identifier[ServletResponse] identifier[response] , Keyword[boolean] identifier[ignoreSearchExclude] , identifier[CmsResourceFilter] identifier[filter] operator[SEP] Keyword[throws] identifier[CmsSearchException] { Keyword[return] identifier[search] operator[SEP] identifier[cms] , identifier[query] , identifier[ignoreMaxRows] , identifier[response] , identifier[ignoreSearchExclude] , identifier[filter] , identifier[getMaxProcessedResults] operator[SEP] operator[SEP] operator[SEP] operator[SEP] }
private void clean(Connection conn) { this.selectColumns = null; this.isSQLLimit = false; this.orderBySQL = new StringBuilder(); this.conditionSQL = new StringBuilder(); this.paramValues.clear(); this.excludedColumns.clear(); this.updateColumns.clear(); ifThen(localConnection.get() == null && conn != null, () -> conn.close()); }
class class_name[name] begin[{] method[clean, return_type[void], modifier[private], parameter[conn]] begin[{] assign[THIS[member[None.selectColumns]], literal[null]] assign[THIS[member[None.isSQLLimit]], literal[false]] assign[THIS[member[None.orderBySQL]], ClassCreator(arguments=[], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=StringBuilder, sub_type=None))] assign[THIS[member[None.conditionSQL]], ClassCreator(arguments=[], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=StringBuilder, sub_type=None))] THIS[member[None.paramValues]call[None.clear, parameter[]]] THIS[member[None.excludedColumns]call[None.clear, parameter[]]] THIS[member[None.updateColumns]call[None.clear, parameter[]]] call[.ifThen, parameter[binary_operation[binary_operation[call[localConnection.get, parameter[]], ==, literal[null]], &&, binary_operation[member[.conn], !=, literal[null]]], LambdaExpression(body=MethodInvocation(arguments=[], member=close, postfix_operators=[], prefix_operators=[], qualifier=conn, selectors=[], type_arguments=None), parameters=[])]] end[}] END[}]
Keyword[private] Keyword[void] identifier[clean] operator[SEP] identifier[Connection] identifier[conn] operator[SEP] { Keyword[this] operator[SEP] identifier[selectColumns] operator[=] Other[null] operator[SEP] Keyword[this] operator[SEP] identifier[isSQLLimit] operator[=] literal[boolean] operator[SEP] Keyword[this] operator[SEP] identifier[orderBySQL] operator[=] Keyword[new] identifier[StringBuilder] operator[SEP] operator[SEP] operator[SEP] Keyword[this] operator[SEP] identifier[conditionSQL] operator[=] Keyword[new] identifier[StringBuilder] operator[SEP] operator[SEP] operator[SEP] Keyword[this] operator[SEP] identifier[paramValues] operator[SEP] identifier[clear] operator[SEP] operator[SEP] operator[SEP] Keyword[this] operator[SEP] identifier[excludedColumns] operator[SEP] identifier[clear] operator[SEP] operator[SEP] operator[SEP] Keyword[this] operator[SEP] identifier[updateColumns] operator[SEP] identifier[clear] operator[SEP] operator[SEP] operator[SEP] identifier[ifThen] operator[SEP] identifier[localConnection] operator[SEP] identifier[get] operator[SEP] operator[SEP] operator[==] Other[null] operator[&&] identifier[conn] operator[!=] Other[null] , operator[SEP] operator[SEP] operator[->] identifier[conn] operator[SEP] identifier[close] operator[SEP] operator[SEP] operator[SEP] operator[SEP] }
public void unpublishWsdlFiles() throws IOException { String deploymentDir = (dep.getParent() != null ? dep.getParent().getSimpleName() : dep.getSimpleName()); File serviceDir = new File(serverConfig.getServerDataDir().getCanonicalPath() + "/wsdl/" + deploymentDir); deleteWsdlPublishDirectory(serviceDir); }
class class_name[name] begin[{] method[unpublishWsdlFiles, return_type[void], modifier[public], parameter[]] begin[{] local_variable[type[String], deploymentDir] local_variable[type[File], serviceDir] call[.deleteWsdlPublishDirectory, parameter[member[.serviceDir]]] end[}] END[}]
Keyword[public] Keyword[void] identifier[unpublishWsdlFiles] operator[SEP] operator[SEP] Keyword[throws] identifier[IOException] { identifier[String] identifier[deploymentDir] operator[=] operator[SEP] identifier[dep] operator[SEP] identifier[getParent] operator[SEP] operator[SEP] operator[!=] Other[null] operator[?] identifier[dep] operator[SEP] identifier[getParent] operator[SEP] operator[SEP] operator[SEP] identifier[getSimpleName] operator[SEP] operator[SEP] operator[:] identifier[dep] operator[SEP] identifier[getSimpleName] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[File] identifier[serviceDir] operator[=] Keyword[new] identifier[File] operator[SEP] identifier[serverConfig] operator[SEP] identifier[getServerDataDir] operator[SEP] operator[SEP] operator[SEP] identifier[getCanonicalPath] operator[SEP] operator[SEP] operator[+] literal[String] operator[+] identifier[deploymentDir] operator[SEP] operator[SEP] identifier[deleteWsdlPublishDirectory] operator[SEP] identifier[serviceDir] operator[SEP] operator[SEP] }
public static String reader2String(final Reader reader) throws IOException { final StringBuffer stringBuffer = new StringBuffer(); final char[] charArray = new char[FileConst.BLOCKSIZE]; int tmp; while ((tmp = reader.read(charArray)) > 0) { stringBuffer.append(charArray, 0, tmp); } return stringBuffer.toString(); }
class class_name[name] begin[{] method[reader2String, return_type[type[String]], modifier[public static], parameter[reader]] begin[{] local_variable[type[StringBuffer], stringBuffer] local_variable[type[char], charArray] local_variable[type[int], tmp] while[binary_operation[assign[member[.tmp], call[reader.read, parameter[member[.charArray]]]], >, literal[0]]] begin[{] call[stringBuffer.append, parameter[member[.charArray], literal[0], member[.tmp]]] end[}] return[call[stringBuffer.toString, parameter[]]] end[}] END[}]
Keyword[public] Keyword[static] identifier[String] identifier[reader2String] operator[SEP] Keyword[final] identifier[Reader] identifier[reader] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[final] identifier[StringBuffer] identifier[stringBuffer] operator[=] Keyword[new] identifier[StringBuffer] operator[SEP] operator[SEP] operator[SEP] Keyword[final] Keyword[char] operator[SEP] operator[SEP] identifier[charArray] operator[=] Keyword[new] Keyword[char] operator[SEP] identifier[FileConst] operator[SEP] identifier[BLOCKSIZE] operator[SEP] operator[SEP] Keyword[int] identifier[tmp] operator[SEP] Keyword[while] operator[SEP] operator[SEP] identifier[tmp] operator[=] identifier[reader] operator[SEP] identifier[read] operator[SEP] identifier[charArray] operator[SEP] operator[SEP] operator[>] Other[0] operator[SEP] { identifier[stringBuffer] operator[SEP] identifier[append] operator[SEP] identifier[charArray] , Other[0] , identifier[tmp] operator[SEP] operator[SEP] } Keyword[return] identifier[stringBuffer] operator[SEP] identifier[toString] operator[SEP] operator[SEP] operator[SEP] }
@RequestMapping(value = "branches/{branchId}/sync", method = RequestMethod.POST) public Ack syncTemplateInstance(@PathVariable ID branchId) { return branchTemplateService.syncInstance(branchId); }
class class_name[name] begin[{] method[syncTemplateInstance, return_type[type[Ack]], modifier[public], parameter[branchId]] begin[{] return[call[branchTemplateService.syncInstance, parameter[member[.branchId]]]] end[}] END[}]
annotation[@] identifier[RequestMapping] operator[SEP] identifier[value] operator[=] literal[String] , identifier[method] operator[=] identifier[RequestMethod] operator[SEP] identifier[POST] operator[SEP] Keyword[public] identifier[Ack] identifier[syncTemplateInstance] operator[SEP] annotation[@] identifier[PathVariable] identifier[ID] identifier[branchId] operator[SEP] { Keyword[return] identifier[branchTemplateService] operator[SEP] identifier[syncInstance] operator[SEP] identifier[branchId] operator[SEP] operator[SEP] }
public int getRowIndex(String[] searchKeys) { int numKey = searchKeys.length; int rowCount = getNumberOfRows(); String xPathBase, xPath, value; xPathBase = getXPathBase(); int rowIndex = -1; for (int i = getDataStartIndex(); i <= rowCount; i++) { xPath = xPathBase + "tr[" + i + "]"; // get table row as text value = HtmlElementUtils.locateElement(xPath).getText(); // search the table row for the key words if (value.length() > 0) { for (int s = 0; s < numKey; s++) { if (searchKeys[s] != null && ((String) searchKeys[s]).length() > 0) { if (value.contains((CharSequence) searchKeys[s])) { rowIndex = i; } else { rowIndex = -1; break; } } } } if (rowIndex > 0) { break; } } return rowIndex; }
class class_name[name] begin[{] method[getRowIndex, return_type[type[int]], modifier[public], parameter[searchKeys]] begin[{] local_variable[type[int], numKey] local_variable[type[int], rowCount] local_variable[type[String], xPathBase] assign[member[.xPathBase], call[.getXPathBase, parameter[]]] local_variable[type[int], rowIndex] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=xPath, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=BinaryOperation(operandl=BinaryOperation(operandl=BinaryOperation(operandl=MemberReference(member=xPathBase, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="tr["), operator=+), operandr=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=+), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="]"), operator=+)), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=value, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MethodInvocation(arguments=[MemberReference(member=xPath, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=locateElement, postfix_operators=[], prefix_operators=[], qualifier=HtmlElementUtils, selectors=[MethodInvocation(arguments=[], member=getText, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)], type_arguments=None)), label=None), IfStatement(condition=BinaryOperation(operandl=MethodInvocation(arguments=[], member=length, postfix_operators=[], prefix_operators=[], qualifier=value, selectors=[], type_arguments=None), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), operator=>), else_statement=None, label=None, then_statement=BlockStatement(label=None, statements=[ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=BinaryOperation(operandl=BinaryOperation(operandl=MemberReference(member=searchKeys, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=MemberReference(member=s, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]))]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=null), operator=!=), operandr=BinaryOperation(operandl=Cast(expression=MemberReference(member=searchKeys, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=MemberReference(member=s, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]))]), type=ReferenceType(arguments=None, dimensions=[], name=String, sub_type=None)), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), operator=>), operator=&&), else_statement=None, label=None, then_statement=BlockStatement(label=None, statements=[IfStatement(condition=MethodInvocation(arguments=[Cast(expression=MemberReference(member=searchKeys, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=MemberReference(member=s, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]))]), type=ReferenceType(arguments=None, dimensions=[], name=CharSequence, sub_type=None))], member=contains, postfix_operators=[], prefix_operators=[], qualifier=value, selectors=[], type_arguments=None), else_statement=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=rowIndex, 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)]), label=None, then_statement=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=rowIndex, 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=s, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=numKey, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=<), init=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), name=s)], modifiers=set(), type=BasicType(dimensions=[], name=int)), update=[MemberReference(member=s, postfix_operators=['++'], prefix_operators=[], qualifier=, selectors=[])]), label=None)])), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=rowIndex, 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=BlockStatement(label=None, statements=[BreakStatement(goto=None, label=None)]))]), control=ForControl(condition=BinaryOperation(operandl=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=rowCount, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=<=), init=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=MethodInvocation(arguments=[], member=getDataStartIndex, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), name=i)], modifiers=set(), type=BasicType(dimensions=[], name=int)), update=[MemberReference(member=i, postfix_operators=['++'], prefix_operators=[], qualifier=, selectors=[])]), label=None) return[member[.rowIndex]] end[}] END[}]
Keyword[public] Keyword[int] identifier[getRowIndex] operator[SEP] identifier[String] operator[SEP] operator[SEP] identifier[searchKeys] operator[SEP] { Keyword[int] identifier[numKey] operator[=] identifier[searchKeys] operator[SEP] identifier[length] operator[SEP] Keyword[int] identifier[rowCount] operator[=] identifier[getNumberOfRows] operator[SEP] operator[SEP] operator[SEP] identifier[String] identifier[xPathBase] , identifier[xPath] , identifier[value] operator[SEP] identifier[xPathBase] operator[=] identifier[getXPathBase] operator[SEP] operator[SEP] operator[SEP] Keyword[int] identifier[rowIndex] operator[=] operator[-] Other[1] operator[SEP] Keyword[for] operator[SEP] Keyword[int] identifier[i] operator[=] identifier[getDataStartIndex] operator[SEP] operator[SEP] operator[SEP] identifier[i] operator[<=] identifier[rowCount] operator[SEP] identifier[i] operator[++] operator[SEP] { identifier[xPath] operator[=] identifier[xPathBase] operator[+] literal[String] operator[+] identifier[i] operator[+] literal[String] operator[SEP] identifier[value] operator[=] identifier[HtmlElementUtils] operator[SEP] identifier[locateElement] operator[SEP] identifier[xPath] operator[SEP] operator[SEP] identifier[getText] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[value] operator[SEP] identifier[length] operator[SEP] operator[SEP] operator[>] Other[0] operator[SEP] { Keyword[for] operator[SEP] Keyword[int] identifier[s] operator[=] Other[0] operator[SEP] identifier[s] operator[<] identifier[numKey] operator[SEP] identifier[s] operator[++] operator[SEP] { Keyword[if] operator[SEP] identifier[searchKeys] operator[SEP] identifier[s] operator[SEP] operator[!=] Other[null] operator[&&] operator[SEP] operator[SEP] identifier[String] operator[SEP] identifier[searchKeys] operator[SEP] identifier[s] operator[SEP] operator[SEP] operator[SEP] identifier[length] operator[SEP] operator[SEP] operator[>] Other[0] operator[SEP] { Keyword[if] operator[SEP] identifier[value] operator[SEP] identifier[contains] operator[SEP] operator[SEP] identifier[CharSequence] operator[SEP] identifier[searchKeys] operator[SEP] identifier[s] operator[SEP] operator[SEP] operator[SEP] { identifier[rowIndex] operator[=] identifier[i] operator[SEP] } Keyword[else] { identifier[rowIndex] operator[=] operator[-] Other[1] operator[SEP] Keyword[break] operator[SEP] } } } } Keyword[if] operator[SEP] identifier[rowIndex] operator[>] Other[0] operator[SEP] { Keyword[break] operator[SEP] } } Keyword[return] identifier[rowIndex] operator[SEP] }
public ResourcePoolsBuilder withReplacing(ResourcePool resourcePool) { Map<ResourceType<?>, ResourcePool> newPools = new HashMap<>(resourcePools); newPools.put(resourcePool.getType(), resourcePool); return new ResourcePoolsBuilder(newPools); }
class class_name[name] begin[{] method[withReplacing, return_type[type[ResourcePoolsBuilder]], modifier[public], parameter[resourcePool]] begin[{] local_variable[type[Map], newPools] call[newPools.put, parameter[call[resourcePool.getType, parameter[]], member[.resourcePool]]] return[ClassCreator(arguments=[MemberReference(member=newPools, 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=ResourcePoolsBuilder, sub_type=None))] end[}] END[}]
Keyword[public] identifier[ResourcePoolsBuilder] identifier[withReplacing] operator[SEP] identifier[ResourcePool] identifier[resourcePool] operator[SEP] { identifier[Map] operator[<] identifier[ResourceType] operator[<] operator[?] operator[>] , identifier[ResourcePool] operator[>] identifier[newPools] operator[=] Keyword[new] identifier[HashMap] operator[<] operator[>] operator[SEP] identifier[resourcePools] operator[SEP] operator[SEP] identifier[newPools] operator[SEP] identifier[put] operator[SEP] identifier[resourcePool] operator[SEP] identifier[getType] operator[SEP] operator[SEP] , identifier[resourcePool] operator[SEP] operator[SEP] Keyword[return] Keyword[new] identifier[ResourcePoolsBuilder] operator[SEP] identifier[newPools] operator[SEP] operator[SEP] }
public DynamicReportBuilder addAutoText(String message, byte position, byte alignment, int width) { HorizontalBandAlignment alignment_ = HorizontalBandAlignment.buildAligment(alignment); AutoText text = new AutoText(message, position, alignment_, width); addAutoText(text); return this; }
class class_name[name] begin[{] method[addAutoText, return_type[type[DynamicReportBuilder]], modifier[public], parameter[message, position, alignment, width]] begin[{] local_variable[type[HorizontalBandAlignment], alignment_] local_variable[type[AutoText], text] call[.addAutoText, parameter[member[.text]]] return[THIS[]] end[}] END[}]
Keyword[public] identifier[DynamicReportBuilder] identifier[addAutoText] operator[SEP] identifier[String] identifier[message] , Keyword[byte] identifier[position] , Keyword[byte] identifier[alignment] , Keyword[int] identifier[width] operator[SEP] { identifier[HorizontalBandAlignment] identifier[alignment_] operator[=] identifier[HorizontalBandAlignment] operator[SEP] identifier[buildAligment] operator[SEP] identifier[alignment] operator[SEP] operator[SEP] identifier[AutoText] identifier[text] operator[=] Keyword[new] identifier[AutoText] operator[SEP] identifier[message] , identifier[position] , identifier[alignment_] , identifier[width] operator[SEP] operator[SEP] identifier[addAutoText] operator[SEP] identifier[text] operator[SEP] operator[SEP] Keyword[return] Keyword[this] operator[SEP] }
@Override public long until(Temporal endExclusive, TemporalUnit unit) { Objects.requireNonNull(endExclusive, "endExclusive"); @SuppressWarnings("unchecked") ChronoZonedDateTime<D> end = (ChronoZonedDateTime<D>) getChronology().zonedDateTime(endExclusive); if (unit instanceof ChronoUnit) { end = end.withZoneSameInstant(offset); return dateTime.until(end.toLocalDateTime(), unit); } Objects.requireNonNull(unit, "unit"); return unit.between(this, end); }
class class_name[name] begin[{] method[until, return_type[type[long]], modifier[public], parameter[endExclusive, unit]] begin[{] call[Objects.requireNonNull, parameter[member[.endExclusive], literal["endExclusive"]]] local_variable[type[ChronoZonedDateTime], end] if[binary_operation[member[.unit], instanceof, type[ChronoUnit]]] begin[{] assign[member[.end], call[end.withZoneSameInstant, parameter[member[.offset]]]] return[call[dateTime.until, parameter[call[end.toLocalDateTime, parameter[]], member[.unit]]]] else begin[{] None end[}] call[Objects.requireNonNull, parameter[member[.unit], literal["unit"]]] return[call[unit.between, parameter[THIS[], member[.end]]]] end[}] END[}]
annotation[@] identifier[Override] Keyword[public] Keyword[long] identifier[until] operator[SEP] identifier[Temporal] identifier[endExclusive] , identifier[TemporalUnit] identifier[unit] operator[SEP] { identifier[Objects] operator[SEP] identifier[requireNonNull] operator[SEP] identifier[endExclusive] , literal[String] operator[SEP] operator[SEP] annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] identifier[ChronoZonedDateTime] operator[<] identifier[D] operator[>] identifier[end] operator[=] operator[SEP] identifier[ChronoZonedDateTime] operator[<] identifier[D] operator[>] operator[SEP] identifier[getChronology] operator[SEP] operator[SEP] operator[SEP] identifier[zonedDateTime] operator[SEP] identifier[endExclusive] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[unit] Keyword[instanceof] identifier[ChronoUnit] operator[SEP] { identifier[end] operator[=] identifier[end] operator[SEP] identifier[withZoneSameInstant] operator[SEP] identifier[offset] operator[SEP] operator[SEP] Keyword[return] identifier[dateTime] operator[SEP] identifier[until] operator[SEP] identifier[end] operator[SEP] identifier[toLocalDateTime] operator[SEP] operator[SEP] , identifier[unit] operator[SEP] operator[SEP] } identifier[Objects] operator[SEP] identifier[requireNonNull] operator[SEP] identifier[unit] , literal[String] operator[SEP] operator[SEP] Keyword[return] identifier[unit] operator[SEP] identifier[between] operator[SEP] Keyword[this] , identifier[end] operator[SEP] operator[SEP] }
public void marshall(Certificate certificate, ProtocolMarshaller protocolMarshaller) { if (certificate == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(certificate.getData(), DATA_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[certificate, protocolMarshaller]] begin[{] if[binary_operation[member[.certificate], ==, 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=getData, postfix_operators=[], prefix_operators=[], qualifier=certificate, selectors=[], type_arguments=None), MemberReference(member=DATA_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[Certificate] identifier[certificate] , identifier[ProtocolMarshaller] identifier[protocolMarshaller] operator[SEP] { Keyword[if] operator[SEP] identifier[certificate] 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[certificate] operator[SEP] identifier[getData] operator[SEP] operator[SEP] , identifier[DATA_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 static SipSessionKey getSipSessionKey(final String applicationSessionId, final String applicationName, final Message message, boolean inverted) { if (logger.isDebugEnabled()){ logger.debug("getSipSessionKey - applicationSessionId=" + applicationSessionId + ", applicationName=" + applicationName + ", message=" + message + ", inverted=" + inverted); } if(applicationName == null) { throw new NullPointerException("the application name cannot be null for sip session key creation"); } final ToHeader to = (ToHeader) message.getHeader(ToHeader.NAME); final FromHeader from = (FromHeader) message.getHeader(FromHeader.NAME); // final URI toUri = to.getAddress().getURI(); // final URI fromUri = from.getAddress().getURI(); // String toUriString = null; // String fromURIString = null; // if(toUri.isSipURI()) { // toUriString = encode(((SipUri)toUri)); // } else { // toUriString = toUri.toString(); // } // if(fromUri.isSipURI()) { // fromURIString = encode(((SipUri)fromUri)); // } else { // fromURIString = fromUri.toString(); // } final String toTag = to.getTag(); final String fromTag = from.getTag(); if(inverted) { return new SipSessionKey( toTag, fromTag, ((CallIdHeader) message.getHeader(CallIdHeader.NAME)).getCallId(), applicationSessionId, applicationName); } else { return new SipSessionKey( fromTag, toTag, ((CallIdHeader) message.getHeader(CallIdHeader.NAME)).getCallId(), applicationSessionId, applicationName); } }
class class_name[name] begin[{] method[getSipSessionKey, return_type[type[SipSessionKey]], modifier[public static], parameter[applicationSessionId, applicationName, message, inverted]] begin[{] if[call[logger.isDebugEnabled, parameter[]]] begin[{] call[logger.debug, parameter[binary_operation[binary_operation[binary_operation[binary_operation[binary_operation[binary_operation[binary_operation[literal["getSipSessionKey - applicationSessionId="], +, member[.applicationSessionId]], +, literal[", applicationName="]], +, member[.applicationName]], +, literal[", message="]], +, member[.message]], +, literal[", inverted="]], +, member[.inverted]]]] else begin[{] None end[}] if[binary_operation[member[.applicationName], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="the application name cannot be null for sip session key creation")], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=NullPointerException, sub_type=None)), label=None) else begin[{] None end[}] local_variable[type[ToHeader], to] local_variable[type[FromHeader], from] local_variable[type[String], toTag] local_variable[type[String], fromTag] if[member[.inverted]] begin[{] return[ClassCreator(arguments=[MemberReference(member=toTag, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=fromTag, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), Cast(expression=MethodInvocation(arguments=[MemberReference(member=NAME, postfix_operators=[], prefix_operators=[], qualifier=CallIdHeader, selectors=[])], member=getHeader, postfix_operators=[], prefix_operators=[], qualifier=message, selectors=[], type_arguments=None), type=ReferenceType(arguments=None, dimensions=[], name=CallIdHeader, sub_type=None)), MemberReference(member=applicationSessionId, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=applicationName, 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=SipSessionKey, sub_type=None))] else begin[{] return[ClassCreator(arguments=[MemberReference(member=fromTag, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=toTag, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), Cast(expression=MethodInvocation(arguments=[MemberReference(member=NAME, postfix_operators=[], prefix_operators=[], qualifier=CallIdHeader, selectors=[])], member=getHeader, postfix_operators=[], prefix_operators=[], qualifier=message, selectors=[], type_arguments=None), type=ReferenceType(arguments=None, dimensions=[], name=CallIdHeader, sub_type=None)), MemberReference(member=applicationSessionId, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=applicationName, 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=SipSessionKey, sub_type=None))] end[}] end[}] END[}]
Keyword[public] Keyword[static] identifier[SipSessionKey] identifier[getSipSessionKey] operator[SEP] Keyword[final] identifier[String] identifier[applicationSessionId] , Keyword[final] identifier[String] identifier[applicationName] , Keyword[final] identifier[Message] identifier[message] , Keyword[boolean] identifier[inverted] operator[SEP] { Keyword[if] operator[SEP] identifier[logger] operator[SEP] identifier[isDebugEnabled] operator[SEP] operator[SEP] operator[SEP] { identifier[logger] operator[SEP] identifier[debug] operator[SEP] literal[String] operator[+] identifier[applicationSessionId] operator[+] literal[String] operator[+] identifier[applicationName] operator[+] literal[String] operator[+] identifier[message] operator[+] literal[String] operator[+] identifier[inverted] operator[SEP] operator[SEP] } Keyword[if] operator[SEP] identifier[applicationName] operator[==] Other[null] operator[SEP] { Keyword[throw] Keyword[new] identifier[NullPointerException] operator[SEP] literal[String] operator[SEP] operator[SEP] } Keyword[final] identifier[ToHeader] identifier[to] operator[=] operator[SEP] identifier[ToHeader] operator[SEP] identifier[message] operator[SEP] identifier[getHeader] operator[SEP] identifier[ToHeader] operator[SEP] identifier[NAME] operator[SEP] operator[SEP] Keyword[final] identifier[FromHeader] identifier[from] operator[=] operator[SEP] identifier[FromHeader] operator[SEP] identifier[message] operator[SEP] identifier[getHeader] operator[SEP] identifier[FromHeader] operator[SEP] identifier[NAME] operator[SEP] operator[SEP] Keyword[final] identifier[String] identifier[toTag] operator[=] identifier[to] operator[SEP] identifier[getTag] operator[SEP] operator[SEP] operator[SEP] Keyword[final] identifier[String] identifier[fromTag] operator[=] identifier[from] operator[SEP] identifier[getTag] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[inverted] operator[SEP] { Keyword[return] Keyword[new] identifier[SipSessionKey] operator[SEP] identifier[toTag] , identifier[fromTag] , operator[SEP] operator[SEP] identifier[CallIdHeader] operator[SEP] identifier[message] operator[SEP] identifier[getHeader] operator[SEP] identifier[CallIdHeader] operator[SEP] identifier[NAME] operator[SEP] operator[SEP] operator[SEP] identifier[getCallId] operator[SEP] operator[SEP] , identifier[applicationSessionId] , identifier[applicationName] operator[SEP] operator[SEP] } Keyword[else] { Keyword[return] Keyword[new] identifier[SipSessionKey] operator[SEP] identifier[fromTag] , identifier[toTag] , operator[SEP] operator[SEP] identifier[CallIdHeader] operator[SEP] identifier[message] operator[SEP] identifier[getHeader] operator[SEP] identifier[CallIdHeader] operator[SEP] identifier[NAME] operator[SEP] operator[SEP] operator[SEP] identifier[getCallId] operator[SEP] operator[SEP] , identifier[applicationSessionId] , identifier[applicationName] operator[SEP] operator[SEP] } }
public double valueAt(double[] x, double xscale, int[] batch) { double prob = 0; // the log prob of the sequence given the model, which is the negation of value at this point double[] weights = x; int[][] wis = getWeightIndices(); int[] given = new int[window - 1]; int[][] docCliqueLabels = new int[window][]; for (int j = 0; j < window; j++) { docCliqueLabels[j] = new int[j+1]; } // iterate over all the documents for (int m = 0; m < batch.length; m++) { int ind = batch[m]; int[][][] docData = data[ind]; int[] docLabels = labels[ind]; // make a clique tree for this document CRFCliqueTree cliqueTree = CRFCliqueTree.getCalibratedCliqueTree(weights, xscale, wis, docData, labelIndices, numClasses, classIndex, backgroundSymbol); // compute the log probability of the document given the model with the parameters x Arrays.fill(given, classIndex.indexOf(backgroundSymbol)); if (docLabels.length>docData.length) { // only true for self-training // fill the given array with the extra docLabels System.arraycopy(docLabels, 0, given, 0, given.length); // shift the docLabels array left int[] newDocLabels = new int[docData.length]; System.arraycopy(docLabels, docLabels.length-newDocLabels.length, newDocLabels, 0, newDocLabels.length); docLabels = newDocLabels; } // iterate over the positions in this document for (int i = 0; i < docData.length; i++) { int label = docLabels[i]; double p = cliqueTree.condLogProbGivenPrevious(i, label, given); if (VERBOSE) { System.err.println("P(" + label + "|" + ArrayMath.toString(given) + ")=" + p); } prob += p; // Shift window over System.arraycopy(given, 1, given, 0, given.length - 1); given[given.length - 1] = label; } } if (Double.isNaN(prob)) { // shouldn't be the case throw new RuntimeException("Got NaN for prob in CRFLogConditionalObjectiveFunction.calculate()"); } value = -prob; return value; }
class class_name[name] begin[{] method[valueAt, return_type[type[double]], modifier[public], parameter[x, xscale, batch]] begin[{] local_variable[type[double], prob] local_variable[type[double], weights] local_variable[type[int], wis] local_variable[type[int], given] local_variable[type[int], docCliqueLabels] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=docCliqueLabels, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=MemberReference(member=j, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]))]), type==, value=ArrayCreator(dimensions=[BinaryOperation(operandl=MemberReference(member=j, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), operator=+)], initializer=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=BasicType(dimensions=None, name=int))), label=None)]), control=ForControl(condition=BinaryOperation(operandl=MemberReference(member=j, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=window, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=<), init=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), name=j)], modifiers=set(), type=BasicType(dimensions=[], name=int)), update=[MemberReference(member=j, postfix_operators=['++'], prefix_operators=[], qualifier=, selectors=[])]), label=None) ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MemberReference(member=batch, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=MemberReference(member=m, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]))]), name=ind)], modifiers=set(), type=BasicType(dimensions=[], name=int)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MemberReference(member=data, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=MemberReference(member=ind, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]))]), name=docData)], modifiers=set(), type=BasicType(dimensions=[None, None, None], name=int)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MemberReference(member=labels, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=MemberReference(member=ind, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]))]), name=docLabels)], modifiers=set(), type=BasicType(dimensions=[None], name=int)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberReference(member=weights, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=xscale, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=wis, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=docData, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=labelIndices, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=numClasses, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=classIndex, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=backgroundSymbol, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=getCalibratedCliqueTree, postfix_operators=[], prefix_operators=[], qualifier=CRFCliqueTree, selectors=[], type_arguments=None), name=cliqueTree)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=CRFCliqueTree, sub_type=None)), StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=given, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MethodInvocation(arguments=[MemberReference(member=backgroundSymbol, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=indexOf, postfix_operators=[], prefix_operators=[], qualifier=classIndex, selectors=[], type_arguments=None)], member=fill, postfix_operators=[], prefix_operators=[], qualifier=Arrays, selectors=[], type_arguments=None), label=None), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=length, postfix_operators=[], prefix_operators=[], qualifier=docLabels, selectors=[]), operandr=MemberReference(member=length, postfix_operators=[], prefix_operators=[], qualifier=docData, selectors=[]), operator=>), else_statement=None, label=None, then_statement=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=docLabels, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), MemberReference(member=given, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), MemberReference(member=length, postfix_operators=[], prefix_operators=[], qualifier=given, selectors=[])], member=arraycopy, postfix_operators=[], prefix_operators=[], qualifier=System, selectors=[], type_arguments=None), label=None), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=ArrayCreator(dimensions=[MemberReference(member=length, postfix_operators=[], prefix_operators=[], qualifier=docData, selectors=[])], initializer=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=BasicType(dimensions=None, name=int)), name=newDocLabels)], modifiers=set(), type=BasicType(dimensions=[None], name=int)), StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=docLabels, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), BinaryOperation(operandl=MemberReference(member=length, postfix_operators=[], prefix_operators=[], qualifier=docLabels, selectors=[]), operandr=MemberReference(member=length, postfix_operators=[], prefix_operators=[], qualifier=newDocLabels, selectors=[]), operator=-), MemberReference(member=newDocLabels, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), MemberReference(member=length, postfix_operators=[], prefix_operators=[], qualifier=newDocLabels, selectors=[])], member=arraycopy, postfix_operators=[], prefix_operators=[], qualifier=System, selectors=[], type_arguments=None), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=docLabels, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MemberReference(member=newDocLabels, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])), label=None)])), ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MemberReference(member=docLabels, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]))]), name=label)], modifiers=set(), type=BasicType(dimensions=[], name=int)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=label, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=given, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=condLogProbGivenPrevious, postfix_operators=[], prefix_operators=[], qualifier=cliqueTree, selectors=[], type_arguments=None), name=p)], modifiers=set(), type=BasicType(dimensions=[], name=double)), 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=BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="P("), operandr=MemberReference(member=label, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=+), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="|"), operator=+), operandr=MethodInvocation(arguments=[MemberReference(member=given, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=toString, postfix_operators=[], prefix_operators=[], qualifier=ArrayMath, selectors=[], type_arguments=None), operator=+), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=")="), operator=+), operandr=MemberReference(member=p, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=+)], member=println, postfix_operators=[], prefix_operators=[], qualifier=System.err, selectors=[], type_arguments=None), label=None)])), StatementExpression(expression=Assignment(expressionl=MemberReference(member=prob, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type=+=, value=MemberReference(member=p, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])), label=None), StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=given, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), MemberReference(member=given, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), BinaryOperation(operandl=MemberReference(member=length, postfix_operators=[], prefix_operators=[], qualifier=given, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), operator=-)], member=arraycopy, postfix_operators=[], prefix_operators=[], qualifier=System, selectors=[], type_arguments=None), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=given, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=BinaryOperation(operandl=MemberReference(member=length, postfix_operators=[], prefix_operators=[], qualifier=given, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), operator=-))]), type==, value=MemberReference(member=label, 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=length, postfix_operators=[], prefix_operators=[], qualifier=docData, 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)]), control=ForControl(condition=BinaryOperation(operandl=MemberReference(member=m, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=length, postfix_operators=[], prefix_operators=[], qualifier=batch, selectors=[]), operator=<), init=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), name=m)], modifiers=set(), type=BasicType(dimensions=[], name=int)), update=[MemberReference(member=m, postfix_operators=['++'], prefix_operators=[], qualifier=, selectors=[])]), label=None) if[call[Double.isNaN, parameter[member[.prob]]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="Got NaN for prob in CRFLogConditionalObjectiveFunction.calculate()")], 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) else begin[{] None end[}] assign[member[.value], member[.prob]] return[member[.value]] end[}] END[}]
Keyword[public] Keyword[double] identifier[valueAt] operator[SEP] Keyword[double] operator[SEP] operator[SEP] identifier[x] , Keyword[double] identifier[xscale] , Keyword[int] operator[SEP] operator[SEP] identifier[batch] operator[SEP] { Keyword[double] identifier[prob] operator[=] Other[0] operator[SEP] Keyword[double] operator[SEP] operator[SEP] identifier[weights] operator[=] identifier[x] operator[SEP] Keyword[int] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[wis] operator[=] identifier[getWeightIndices] operator[SEP] operator[SEP] operator[SEP] Keyword[int] operator[SEP] operator[SEP] identifier[given] operator[=] Keyword[new] Keyword[int] operator[SEP] identifier[window] operator[-] Other[1] operator[SEP] operator[SEP] Keyword[int] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[docCliqueLabels] operator[=] Keyword[new] Keyword[int] operator[SEP] identifier[window] operator[SEP] operator[SEP] operator[SEP] operator[SEP] Keyword[for] operator[SEP] Keyword[int] identifier[j] operator[=] Other[0] operator[SEP] identifier[j] operator[<] identifier[window] operator[SEP] identifier[j] operator[++] operator[SEP] { identifier[docCliqueLabels] operator[SEP] identifier[j] operator[SEP] operator[=] Keyword[new] Keyword[int] operator[SEP] identifier[j] operator[+] Other[1] operator[SEP] operator[SEP] } Keyword[for] operator[SEP] Keyword[int] identifier[m] operator[=] Other[0] operator[SEP] identifier[m] operator[<] identifier[batch] operator[SEP] identifier[length] operator[SEP] identifier[m] operator[++] operator[SEP] { Keyword[int] identifier[ind] operator[=] identifier[batch] operator[SEP] identifier[m] operator[SEP] operator[SEP] Keyword[int] operator[SEP] operator[SEP] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[docData] operator[=] identifier[data] operator[SEP] identifier[ind] operator[SEP] operator[SEP] Keyword[int] operator[SEP] operator[SEP] identifier[docLabels] operator[=] identifier[labels] operator[SEP] identifier[ind] operator[SEP] operator[SEP] identifier[CRFCliqueTree] identifier[cliqueTree] operator[=] identifier[CRFCliqueTree] operator[SEP] identifier[getCalibratedCliqueTree] operator[SEP] identifier[weights] , identifier[xscale] , identifier[wis] , identifier[docData] , identifier[labelIndices] , identifier[numClasses] , identifier[classIndex] , identifier[backgroundSymbol] operator[SEP] operator[SEP] identifier[Arrays] operator[SEP] identifier[fill] operator[SEP] identifier[given] , identifier[classIndex] operator[SEP] identifier[indexOf] operator[SEP] identifier[backgroundSymbol] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[docLabels] operator[SEP] identifier[length] operator[>] identifier[docData] operator[SEP] identifier[length] operator[SEP] { identifier[System] operator[SEP] identifier[arraycopy] operator[SEP] identifier[docLabels] , Other[0] , identifier[given] , Other[0] , identifier[given] operator[SEP] identifier[length] operator[SEP] operator[SEP] Keyword[int] operator[SEP] operator[SEP] identifier[newDocLabels] operator[=] Keyword[new] Keyword[int] operator[SEP] identifier[docData] operator[SEP] identifier[length] operator[SEP] operator[SEP] identifier[System] operator[SEP] identifier[arraycopy] operator[SEP] identifier[docLabels] , identifier[docLabels] operator[SEP] identifier[length] operator[-] identifier[newDocLabels] operator[SEP] identifier[length] , identifier[newDocLabels] , Other[0] , identifier[newDocLabels] operator[SEP] identifier[length] operator[SEP] operator[SEP] identifier[docLabels] operator[=] identifier[newDocLabels] operator[SEP] } Keyword[for] operator[SEP] Keyword[int] identifier[i] operator[=] Other[0] operator[SEP] identifier[i] operator[<] identifier[docData] operator[SEP] identifier[length] operator[SEP] identifier[i] operator[++] operator[SEP] { Keyword[int] identifier[label] operator[=] identifier[docLabels] operator[SEP] identifier[i] operator[SEP] operator[SEP] Keyword[double] identifier[p] operator[=] identifier[cliqueTree] operator[SEP] identifier[condLogProbGivenPrevious] operator[SEP] identifier[i] , identifier[label] , identifier[given] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[VERBOSE] operator[SEP] { identifier[System] operator[SEP] identifier[err] operator[SEP] identifier[println] operator[SEP] literal[String] operator[+] identifier[label] operator[+] literal[String] operator[+] identifier[ArrayMath] operator[SEP] identifier[toString] operator[SEP] identifier[given] operator[SEP] operator[+] literal[String] operator[+] identifier[p] operator[SEP] operator[SEP] } identifier[prob] operator[+=] identifier[p] operator[SEP] identifier[System] operator[SEP] identifier[arraycopy] operator[SEP] identifier[given] , Other[1] , identifier[given] , Other[0] , identifier[given] operator[SEP] identifier[length] operator[-] Other[1] operator[SEP] operator[SEP] identifier[given] operator[SEP] identifier[given] operator[SEP] identifier[length] operator[-] Other[1] operator[SEP] operator[=] identifier[label] operator[SEP] } } Keyword[if] operator[SEP] identifier[Double] operator[SEP] identifier[isNaN] operator[SEP] identifier[prob] operator[SEP] operator[SEP] { Keyword[throw] Keyword[new] identifier[RuntimeException] operator[SEP] literal[String] operator[SEP] operator[SEP] } identifier[value] operator[=] operator[-] identifier[prob] operator[SEP] Keyword[return] identifier[value] operator[SEP] }
private static byte[] processStatusCodeReply(final RedisInputStream is) { final String statusCode = is.readLine(); log.trace("[RedisProtocol] Reply status-code. +{}", statusCode); return SafeEncoder.encode(statusCode); }
class class_name[name] begin[{] method[processStatusCodeReply, return_type[type[byte]], modifier[private static], parameter[is]] begin[{] local_variable[type[String], statusCode] call[log.trace, parameter[literal["[RedisProtocol] Reply status-code. +{}"], member[.statusCode]]] return[call[SafeEncoder.encode, parameter[member[.statusCode]]]] end[}] END[}]
Keyword[private] Keyword[static] Keyword[byte] operator[SEP] operator[SEP] identifier[processStatusCodeReply] operator[SEP] Keyword[final] identifier[RedisInputStream] identifier[is] operator[SEP] { Keyword[final] identifier[String] identifier[statusCode] operator[=] identifier[is] operator[SEP] identifier[readLine] operator[SEP] operator[SEP] operator[SEP] identifier[log] operator[SEP] identifier[trace] operator[SEP] literal[String] , identifier[statusCode] operator[SEP] operator[SEP] Keyword[return] identifier[SafeEncoder] operator[SEP] identifier[encode] operator[SEP] identifier[statusCode] operator[SEP] operator[SEP] }
public boolean matches(MediaExpression e) { String fs = e.getFeature(); boolean isMin = false; boolean isMax = false; if (fs.startsWith("min-")) { isMin = true; fs = fs.substring(4); } else if (fs.startsWith("max-")) { isMax = true; fs = fs.substring(4); } Feature feature = getFeatureByName(fs); if (feature != null && (!(isMin || isMax) || feature.isPrefixed())) //the name (including prefixes) is allowed { switch (feature) { case WIDTH: return valueMatches(getExpressionLengthPx(e), width, isMin, isMax); case HEIGHT: return valueMatches(getExpressionLengthPx(e), height, isMin, isMax); case DEVICE_WIDTH: return valueMatches(getExpressionLengthPx(e), deviceWidth, isMin, isMax); case DEVICE_HEIGHT: return valueMatches(getExpressionLengthPx(e), deviceHeight, isMin, isMax); case ORIENTATION: String oid = getExpressionIdentifier(e); if (oid == null) return false; else if (oid.equals("portrait")) return isPortrait(); else if (oid.equals("landscape")) return !isPortrait(); else return false; case ASPECT_RATIO: return valueMatches(getExpressionRatio(e), getAspectRatio(), isMin, isMax); case DEVICE_ASPECT_RATIO: return valueMatches(getExpressionRatio(e), getDeviceAspectRation(), isMin, isMax); case COLOR: return valueMatches(getExpressionInteger(e), color, isMin, isMax); case COLOR_INDEX: return valueMatches(getExpressionInteger(e), colorIndex, isMin, isMax); case MONOCHROME: return valueMatches(getExpressionInteger(e), monochrome, isMin, isMax); case RESOLUTION: return valueMatches(getExpressionResolution(e), resolution, isMin, isMax); case SCAN: String sid = getExpressionIdentifier(e); if (sid == null) return false; else if (sid.equals("progressive")) return !scanInterlace; else if (sid.equals("interlace")) return scanInterlace; else return false; case GRID: Integer gval = getExpressionInteger(e); if (gval == null) return false; else if (gval == 0 || gval == 1) //0 and 1 are the only allowed values return gval == grid; else return false; default: return false; } } else return false; //results in "not all" for the whole query }
class class_name[name] begin[{] method[matches, return_type[type[boolean]], modifier[public], parameter[e]] begin[{] local_variable[type[String], fs] local_variable[type[boolean], isMin] local_variable[type[boolean], isMax] if[call[fs.startsWith, parameter[literal["min-"]]]] begin[{] assign[member[.isMin], literal[true]] assign[member[.fs], call[fs.substring, parameter[literal[4]]]] else begin[{] if[call[fs.startsWith, parameter[literal["max-"]]]] begin[{] assign[member[.isMax], literal[true]] assign[member[.fs], call[fs.substring, parameter[literal[4]]]] else begin[{] None end[}] end[}] local_variable[type[Feature], feature] if[binary_operation[binary_operation[member[.feature], !=, literal[null]], &&, binary_operation[binary_operation[member[.isMin], ||, member[.isMax]], ||, call[feature.isPrefixed, parameter[]]]]] begin[{] SwitchStatement(cases=[SwitchStatementCase(case=['WIDTH'], statements=[ReturnStatement(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[MemberReference(member=e, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=getExpressionLengthPx, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), MemberReference(member=width, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=isMin, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=isMax, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=valueMatches, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), label=None)]), SwitchStatementCase(case=['HEIGHT'], statements=[ReturnStatement(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[MemberReference(member=e, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=getExpressionLengthPx, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), MemberReference(member=height, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=isMin, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=isMax, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=valueMatches, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), label=None)]), SwitchStatementCase(case=['DEVICE_WIDTH'], statements=[ReturnStatement(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[MemberReference(member=e, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=getExpressionLengthPx, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), MemberReference(member=deviceWidth, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=isMin, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=isMax, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=valueMatches, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), label=None)]), SwitchStatementCase(case=['DEVICE_HEIGHT'], statements=[ReturnStatement(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[MemberReference(member=e, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=getExpressionLengthPx, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), MemberReference(member=deviceHeight, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=isMin, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=isMax, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=valueMatches, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), label=None)]), SwitchStatementCase(case=['ORIENTATION'], statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberReference(member=e, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=getExpressionIdentifier, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), name=oid)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=String, sub_type=None)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=oid, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=null), operator===), else_statement=IfStatement(condition=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="portrait")], member=equals, postfix_operators=[], prefix_operators=[], qualifier=oid, selectors=[], type_arguments=None), else_statement=IfStatement(condition=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="landscape")], member=equals, postfix_operators=[], prefix_operators=[], qualifier=oid, selectors=[], type_arguments=None), else_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=false), label=None), label=None, then_statement=ReturnStatement(expression=MethodInvocation(arguments=[], member=isPortrait, postfix_operators=[], prefix_operators=['!'], qualifier=, selectors=[], type_arguments=None), label=None)), label=None, then_statement=ReturnStatement(expression=MethodInvocation(arguments=[], member=isPortrait, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), label=None)), label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=false), label=None))]), SwitchStatementCase(case=['ASPECT_RATIO'], statements=[ReturnStatement(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[MemberReference(member=e, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=getExpressionRatio, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), MethodInvocation(arguments=[], member=getAspectRatio, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), MemberReference(member=isMin, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=isMax, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=valueMatches, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), label=None)]), SwitchStatementCase(case=['DEVICE_ASPECT_RATIO'], statements=[ReturnStatement(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[MemberReference(member=e, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=getExpressionRatio, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), MethodInvocation(arguments=[], member=getDeviceAspectRation, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), MemberReference(member=isMin, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=isMax, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=valueMatches, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), label=None)]), SwitchStatementCase(case=['COLOR'], statements=[ReturnStatement(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[MemberReference(member=e, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=getExpressionInteger, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), MemberReference(member=color, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=isMin, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=isMax, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=valueMatches, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), label=None)]), SwitchStatementCase(case=['COLOR_INDEX'], statements=[ReturnStatement(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[MemberReference(member=e, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=getExpressionInteger, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), MemberReference(member=colorIndex, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=isMin, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=isMax, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=valueMatches, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), label=None)]), SwitchStatementCase(case=['MONOCHROME'], statements=[ReturnStatement(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[MemberReference(member=e, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=getExpressionInteger, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), MemberReference(member=monochrome, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=isMin, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=isMax, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=valueMatches, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), label=None)]), SwitchStatementCase(case=['RESOLUTION'], statements=[ReturnStatement(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[MemberReference(member=e, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=getExpressionResolution, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), MemberReference(member=resolution, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=isMin, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=isMax, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=valueMatches, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), label=None)]), SwitchStatementCase(case=['SCAN'], statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberReference(member=e, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=getExpressionIdentifier, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), name=sid)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=String, sub_type=None)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=sid, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=null), operator===), else_statement=IfStatement(condition=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="progressive")], member=equals, postfix_operators=[], prefix_operators=[], qualifier=sid, selectors=[], type_arguments=None), else_statement=IfStatement(condition=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="interlace")], member=equals, postfix_operators=[], prefix_operators=[], qualifier=sid, selectors=[], type_arguments=None), else_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=false), label=None), label=None, then_statement=ReturnStatement(expression=MemberReference(member=scanInterlace, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), label=None)), label=None, then_statement=ReturnStatement(expression=MemberReference(member=scanInterlace, postfix_operators=[], prefix_operators=['!'], qualifier=, selectors=[]), label=None)), label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=false), label=None))]), SwitchStatementCase(case=['GRID'], statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberReference(member=e, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=getExpressionInteger, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), name=gval)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=Integer, sub_type=None)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=gval, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=null), operator===), else_statement=IfStatement(condition=BinaryOperation(operandl=BinaryOperation(operandl=MemberReference(member=gval, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), operator===), operandr=BinaryOperation(operandl=MemberReference(member=gval, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), operator===), operator=||), else_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=false), label=None), label=None, then_statement=ReturnStatement(expression=BinaryOperation(operandl=MemberReference(member=gval, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=grid, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator===), label=None)), label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=false), label=None))]), SwitchStatementCase(case=[], statements=[ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=false), label=None)])], expression=MemberReference(member=feature, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), label=None) else begin[{] return[literal[false]] end[}] end[}] END[}]
Keyword[public] Keyword[boolean] identifier[matches] operator[SEP] identifier[MediaExpression] identifier[e] operator[SEP] { identifier[String] identifier[fs] operator[=] identifier[e] operator[SEP] identifier[getFeature] operator[SEP] operator[SEP] operator[SEP] Keyword[boolean] identifier[isMin] operator[=] literal[boolean] operator[SEP] Keyword[boolean] identifier[isMax] operator[=] literal[boolean] operator[SEP] Keyword[if] operator[SEP] identifier[fs] operator[SEP] identifier[startsWith] operator[SEP] literal[String] operator[SEP] operator[SEP] { identifier[isMin] operator[=] literal[boolean] operator[SEP] identifier[fs] operator[=] identifier[fs] operator[SEP] identifier[substring] operator[SEP] Other[4] operator[SEP] operator[SEP] } Keyword[else] Keyword[if] operator[SEP] identifier[fs] operator[SEP] identifier[startsWith] operator[SEP] literal[String] operator[SEP] operator[SEP] { identifier[isMax] operator[=] literal[boolean] operator[SEP] identifier[fs] operator[=] identifier[fs] operator[SEP] identifier[substring] operator[SEP] Other[4] operator[SEP] operator[SEP] } identifier[Feature] identifier[feature] operator[=] identifier[getFeatureByName] operator[SEP] identifier[fs] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[feature] operator[!=] Other[null] operator[&&] operator[SEP] operator[!] operator[SEP] identifier[isMin] operator[||] identifier[isMax] operator[SEP] operator[||] identifier[feature] operator[SEP] identifier[isPrefixed] operator[SEP] operator[SEP] operator[SEP] operator[SEP] { Keyword[switch] operator[SEP] identifier[feature] operator[SEP] { Keyword[case] identifier[WIDTH] operator[:] Keyword[return] identifier[valueMatches] operator[SEP] identifier[getExpressionLengthPx] operator[SEP] identifier[e] operator[SEP] , identifier[width] , identifier[isMin] , identifier[isMax] operator[SEP] operator[SEP] Keyword[case] identifier[HEIGHT] operator[:] Keyword[return] identifier[valueMatches] operator[SEP] identifier[getExpressionLengthPx] operator[SEP] identifier[e] operator[SEP] , identifier[height] , identifier[isMin] , identifier[isMax] operator[SEP] operator[SEP] Keyword[case] identifier[DEVICE_WIDTH] operator[:] Keyword[return] identifier[valueMatches] operator[SEP] identifier[getExpressionLengthPx] operator[SEP] identifier[e] operator[SEP] , identifier[deviceWidth] , identifier[isMin] , identifier[isMax] operator[SEP] operator[SEP] Keyword[case] identifier[DEVICE_HEIGHT] operator[:] Keyword[return] identifier[valueMatches] operator[SEP] identifier[getExpressionLengthPx] operator[SEP] identifier[e] operator[SEP] , identifier[deviceHeight] , identifier[isMin] , identifier[isMax] operator[SEP] operator[SEP] Keyword[case] identifier[ORIENTATION] operator[:] identifier[String] identifier[oid] operator[=] identifier[getExpressionIdentifier] operator[SEP] identifier[e] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[oid] operator[==] Other[null] operator[SEP] Keyword[return] literal[boolean] operator[SEP] Keyword[else] Keyword[if] operator[SEP] identifier[oid] operator[SEP] identifier[equals] operator[SEP] literal[String] operator[SEP] operator[SEP] Keyword[return] identifier[isPortrait] operator[SEP] operator[SEP] operator[SEP] Keyword[else] Keyword[if] operator[SEP] identifier[oid] operator[SEP] identifier[equals] operator[SEP] literal[String] operator[SEP] operator[SEP] Keyword[return] operator[!] identifier[isPortrait] operator[SEP] operator[SEP] operator[SEP] Keyword[else] Keyword[return] literal[boolean] operator[SEP] Keyword[case] identifier[ASPECT_RATIO] operator[:] Keyword[return] identifier[valueMatches] operator[SEP] identifier[getExpressionRatio] operator[SEP] identifier[e] operator[SEP] , identifier[getAspectRatio] operator[SEP] operator[SEP] , identifier[isMin] , identifier[isMax] operator[SEP] operator[SEP] Keyword[case] identifier[DEVICE_ASPECT_RATIO] operator[:] Keyword[return] identifier[valueMatches] operator[SEP] identifier[getExpressionRatio] operator[SEP] identifier[e] operator[SEP] , identifier[getDeviceAspectRation] operator[SEP] operator[SEP] , identifier[isMin] , identifier[isMax] operator[SEP] operator[SEP] Keyword[case] identifier[COLOR] operator[:] Keyword[return] identifier[valueMatches] operator[SEP] identifier[getExpressionInteger] operator[SEP] identifier[e] operator[SEP] , identifier[color] , identifier[isMin] , identifier[isMax] operator[SEP] operator[SEP] Keyword[case] identifier[COLOR_INDEX] operator[:] Keyword[return] identifier[valueMatches] operator[SEP] identifier[getExpressionInteger] operator[SEP] identifier[e] operator[SEP] , identifier[colorIndex] , identifier[isMin] , identifier[isMax] operator[SEP] operator[SEP] Keyword[case] identifier[MONOCHROME] operator[:] Keyword[return] identifier[valueMatches] operator[SEP] identifier[getExpressionInteger] operator[SEP] identifier[e] operator[SEP] , identifier[monochrome] , identifier[isMin] , identifier[isMax] operator[SEP] operator[SEP] Keyword[case] identifier[RESOLUTION] operator[:] Keyword[return] identifier[valueMatches] operator[SEP] identifier[getExpressionResolution] operator[SEP] identifier[e] operator[SEP] , identifier[resolution] , identifier[isMin] , identifier[isMax] operator[SEP] operator[SEP] Keyword[case] identifier[SCAN] operator[:] identifier[String] identifier[sid] operator[=] identifier[getExpressionIdentifier] operator[SEP] identifier[e] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[sid] operator[==] Other[null] operator[SEP] Keyword[return] literal[boolean] operator[SEP] Keyword[else] Keyword[if] operator[SEP] identifier[sid] operator[SEP] identifier[equals] operator[SEP] literal[String] operator[SEP] operator[SEP] Keyword[return] operator[!] identifier[scanInterlace] operator[SEP] Keyword[else] Keyword[if] operator[SEP] identifier[sid] operator[SEP] identifier[equals] operator[SEP] literal[String] operator[SEP] operator[SEP] Keyword[return] identifier[scanInterlace] operator[SEP] Keyword[else] Keyword[return] literal[boolean] operator[SEP] Keyword[case] identifier[GRID] operator[:] identifier[Integer] identifier[gval] operator[=] identifier[getExpressionInteger] operator[SEP] identifier[e] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[gval] operator[==] Other[null] operator[SEP] Keyword[return] literal[boolean] operator[SEP] Keyword[else] Keyword[if] operator[SEP] identifier[gval] operator[==] Other[0] operator[||] identifier[gval] operator[==] Other[1] operator[SEP] Keyword[return] identifier[gval] operator[==] identifier[grid] operator[SEP] Keyword[else] Keyword[return] literal[boolean] operator[SEP] Keyword[default] operator[:] Keyword[return] literal[boolean] operator[SEP] } } Keyword[else] Keyword[return] literal[boolean] operator[SEP] }
public final String entryRuleArgument() throws RecognitionException { String current = null; AntlrDatatypeRuleToken iv_ruleArgument = null; try { // InternalSimpleExpressions.g:721:2: (iv_ruleArgument= ruleArgument EOF ) // InternalSimpleExpressions.g:722:2: iv_ruleArgument= ruleArgument EOF { newCompositeNode(grammarAccess.getArgumentRule()); pushFollow(FOLLOW_1); iv_ruleArgument=ruleArgument(); state._fsp--; current =iv_ruleArgument.getText(); match(input,EOF,FOLLOW_2); } } catch (RecognitionException re) { recover(input,re); appendSkippedTokens(); } finally { } return current; }
class class_name[name] begin[{] method[entryRuleArgument, return_type[type[String]], modifier[final public], parameter[]] begin[{] local_variable[type[String], current] local_variable[type[AntlrDatatypeRuleToken], iv_ruleArgument] TryStatement(block=[BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[], member=getArgumentRule, postfix_operators=[], prefix_operators=[], qualifier=grammarAccess, selectors=[], type_arguments=None)], member=newCompositeNode, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=FOLLOW_1, 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=iv_ruleArgument, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MethodInvocation(arguments=[], member=ruleArgument, 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=MethodInvocation(arguments=[], member=getText, postfix_operators=[], prefix_operators=[], qualifier=iv_ruleArgument, selectors=[], type_arguments=None)), label=None), StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=input, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=EOF, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=FOLLOW_2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=match, 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[String] identifier[entryRuleArgument] operator[SEP] operator[SEP] Keyword[throws] identifier[RecognitionException] { identifier[String] identifier[current] operator[=] Other[null] operator[SEP] identifier[AntlrDatatypeRuleToken] identifier[iv_ruleArgument] operator[=] Other[null] operator[SEP] Keyword[try] { { identifier[newCompositeNode] operator[SEP] identifier[grammarAccess] operator[SEP] identifier[getArgumentRule] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[pushFollow] operator[SEP] identifier[FOLLOW_1] operator[SEP] operator[SEP] identifier[iv_ruleArgument] operator[=] identifier[ruleArgument] operator[SEP] operator[SEP] operator[SEP] identifier[state] operator[SEP] identifier[_fsp] operator[--] operator[SEP] identifier[current] operator[=] identifier[iv_ruleArgument] operator[SEP] identifier[getText] operator[SEP] operator[SEP] operator[SEP] identifier[match] operator[SEP] identifier[input] , identifier[EOF] , identifier[FOLLOW_2] 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] }
protected void initialize() { if ("w_silver".equals(Configuration.getAttribute(ConfigAttribute.DOJO_MODALCLASS))) { setCssClassName(ModalWindow.CSS_CLASS_GRAY); } else if ("w_blue".equals(Configuration.getAttribute(ConfigAttribute.DOJO_MODALCLASS))) { setCssClassName(ModalWindow.CSS_CLASS_BLUE); } showUnloadConfirmation(false); setTitle(DBProperties.getProperty("Logo.Version.Label")); }
class class_name[name] begin[{] method[initialize, return_type[void], modifier[protected], parameter[]] begin[{] if[literal["w_silver"]] begin[{] call[.setCssClassName, parameter[member[ModalWindow.CSS_CLASS_GRAY]]] else begin[{] if[literal["w_blue"]] begin[{] call[.setCssClassName, parameter[member[ModalWindow.CSS_CLASS_BLUE]]] else begin[{] None end[}] end[}] call[.showUnloadConfirmation, parameter[literal[false]]] call[.setTitle, parameter[call[DBProperties.getProperty, parameter[literal["Logo.Version.Label"]]]]] end[}] END[}]
Keyword[protected] Keyword[void] identifier[initialize] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] literal[String] operator[SEP] identifier[equals] operator[SEP] identifier[Configuration] operator[SEP] identifier[getAttribute] operator[SEP] identifier[ConfigAttribute] operator[SEP] identifier[DOJO_MODALCLASS] operator[SEP] operator[SEP] operator[SEP] { identifier[setCssClassName] operator[SEP] identifier[ModalWindow] operator[SEP] identifier[CSS_CLASS_GRAY] operator[SEP] operator[SEP] } Keyword[else] Keyword[if] operator[SEP] literal[String] operator[SEP] identifier[equals] operator[SEP] identifier[Configuration] operator[SEP] identifier[getAttribute] operator[SEP] identifier[ConfigAttribute] operator[SEP] identifier[DOJO_MODALCLASS] operator[SEP] operator[SEP] operator[SEP] { identifier[setCssClassName] operator[SEP] identifier[ModalWindow] operator[SEP] identifier[CSS_CLASS_BLUE] operator[SEP] operator[SEP] } identifier[showUnloadConfirmation] operator[SEP] literal[boolean] operator[SEP] operator[SEP] identifier[setTitle] operator[SEP] identifier[DBProperties] operator[SEP] identifier[getProperty] operator[SEP] literal[String] operator[SEP] operator[SEP] operator[SEP] }
public List<Entity> weakEntities(Entity e) { final List<Entity> res = new ArrayList<Entity>(); for (Entity entity : getEntities().values()) { if (entity.getOwner() != null && entity.getOwner().getEntityId().compareTo(e.getId()) == 0) { res.add(entity); } } if (res.isEmpty()) { return null; } else { return res; } }
class class_name[name] begin[{] method[weakEntities, return_type[type[List]], modifier[public], parameter[e]] begin[{] local_variable[type[List], res] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=BinaryOperation(operandl=BinaryOperation(operandl=MethodInvocation(arguments=[], member=getOwner, postfix_operators=[], prefix_operators=[], qualifier=entity, selectors=[], type_arguments=None), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=null), operator=!=), operandr=BinaryOperation(operandl=MethodInvocation(arguments=[], member=getOwner, postfix_operators=[], prefix_operators=[], qualifier=entity, selectors=[MethodInvocation(arguments=[], member=getEntityId, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None), MethodInvocation(arguments=[MethodInvocation(arguments=[], member=getId, postfix_operators=[], prefix_operators=[], qualifier=e, selectors=[], type_arguments=None)], member=compareTo, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)], type_arguments=None), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), operator===), operator=&&), else_statement=None, label=None, then_statement=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=entity, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=add, postfix_operators=[], prefix_operators=[], qualifier=res, selectors=[], type_arguments=None), label=None)]))]), control=EnhancedForControl(iterable=MethodInvocation(arguments=[], member=getEntities, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[MethodInvocation(arguments=[], member=values, 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=entity)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=Entity, sub_type=None))), label=None) if[call[res.isEmpty, parameter[]]] begin[{] return[literal[null]] else begin[{] return[member[.res]] end[}] end[}] END[}]
Keyword[public] identifier[List] operator[<] identifier[Entity] operator[>] identifier[weakEntities] operator[SEP] identifier[Entity] identifier[e] operator[SEP] { Keyword[final] identifier[List] operator[<] identifier[Entity] operator[>] identifier[res] operator[=] Keyword[new] identifier[ArrayList] operator[<] identifier[Entity] operator[>] operator[SEP] operator[SEP] operator[SEP] Keyword[for] operator[SEP] identifier[Entity] identifier[entity] operator[:] identifier[getEntities] operator[SEP] operator[SEP] operator[SEP] identifier[values] operator[SEP] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[entity] operator[SEP] identifier[getOwner] operator[SEP] operator[SEP] operator[!=] Other[null] operator[&&] identifier[entity] operator[SEP] identifier[getOwner] operator[SEP] operator[SEP] operator[SEP] identifier[getEntityId] operator[SEP] operator[SEP] operator[SEP] identifier[compareTo] operator[SEP] identifier[e] operator[SEP] identifier[getId] operator[SEP] operator[SEP] operator[SEP] operator[==] Other[0] operator[SEP] { identifier[res] operator[SEP] identifier[add] operator[SEP] identifier[entity] operator[SEP] operator[SEP] } } Keyword[if] operator[SEP] identifier[res] operator[SEP] identifier[isEmpty] operator[SEP] operator[SEP] operator[SEP] { Keyword[return] Other[null] operator[SEP] } Keyword[else] { Keyword[return] identifier[res] operator[SEP] } }
public static <T extends Throwable> void printHistory(final T th, final Logger logger) { printHistory(th, logger, LogLevel.ERROR); }
class class_name[name] begin[{] method[printHistory, return_type[void], modifier[public static], parameter[th, logger]] begin[{] call[.printHistory, parameter[member[.th], member[.logger], member[LogLevel.ERROR]]] end[}] END[}]
Keyword[public] Keyword[static] operator[<] identifier[T] Keyword[extends] identifier[Throwable] operator[>] Keyword[void] identifier[printHistory] operator[SEP] Keyword[final] identifier[T] identifier[th] , Keyword[final] identifier[Logger] identifier[logger] operator[SEP] { identifier[printHistory] operator[SEP] identifier[th] , identifier[logger] , identifier[LogLevel] operator[SEP] identifier[ERROR] operator[SEP] operator[SEP] }
public static <T extends ImageBase<T>> double meanDiffSq( T inputA , T inputB ) { if( inputA instanceof ImageGray) { if (GrayU8.class == inputA.getClass()) { return ImageStatistics.meanDiffSq((GrayU8) inputA, (GrayU8) inputB); } else if (GrayS8.class == inputA.getClass()) { return ImageStatistics.meanDiffSq((GrayS8) inputA, (GrayS8) inputB); } else if (GrayU16.class == inputA.getClass()) { return ImageStatistics.meanDiffSq((GrayU16) inputA, (GrayU16) inputB); } else if (GrayS16.class == inputA.getClass()) { return ImageStatistics.meanDiffSq((GrayS16) inputA, (GrayS16) inputB); } else if (GrayS32.class == inputA.getClass()) { return ImageStatistics.meanDiffSq((GrayS32) inputA, (GrayS32) inputB); } else if (GrayS64.class == inputA.getClass()) { return ImageStatistics.meanDiffSq((GrayS64) inputA, (GrayS64) inputB); } else if (GrayF32.class == inputA.getClass()) { return ImageStatistics.meanDiffSq((GrayF32) inputA, (GrayF32) inputB); } else if (GrayF64.class == inputA.getClass()) { return ImageStatistics.meanDiffSq((GrayF64) inputA, (GrayF64) inputB); } else { throw new IllegalArgumentException("Unknown image Type"); } } else if( inputA instanceof ImageInterleaved ) { if (InterleavedU8.class == inputA.getClass()) { return ImageStatistics.meanDiffSq((InterleavedU8) inputA, (InterleavedU8) inputB); } else if (InterleavedS8.class == inputA.getClass()) { return ImageStatistics.meanDiffSq((InterleavedS8) inputA, (InterleavedS8) inputB); } else if (InterleavedU16.class == inputA.getClass()) { return ImageStatistics.meanDiffSq((InterleavedU16) inputA, (InterleavedU16) inputB); } else if (InterleavedS16.class == inputA.getClass()) { return ImageStatistics.meanDiffSq((InterleavedS16) inputA, (InterleavedS16) inputB); } else if (InterleavedS32.class == inputA.getClass()) { return ImageStatistics.meanDiffSq((InterleavedS32) inputA, (InterleavedS32) inputB); } else if (InterleavedS64.class == inputA.getClass()) { return ImageStatistics.meanDiffSq((InterleavedS64) inputA, (InterleavedS64) inputB); } else if (InterleavedF32.class == inputA.getClass()) { return ImageStatistics.meanDiffSq((InterleavedF32) inputA, (InterleavedF32) inputB); } else if (InterleavedF64.class == inputA.getClass()) { return ImageStatistics.meanDiffSq((InterleavedF64) inputA, (InterleavedF64) inputB); } else { throw new IllegalArgumentException("Unknown image Type"); } } else if( inputA instanceof Planar ) { double mean = 0; Planar inA = (Planar) inputA; Planar inB = (Planar) inputB; for (int i = 0; i < inA.getNumBands(); i++) { mean += meanDiffSq( inA.getBand(i), inB.getBand(i)); } return mean/inA.getNumBands(); } else { throw new IllegalArgumentException("Image type not yet supported "+inputA.getClass().getSimpleName()); } }
class class_name[name] begin[{] method[meanDiffSq, return_type[type[double]], modifier[public static], parameter[inputA, inputB]] begin[{] if[binary_operation[member[.inputA], instanceof, type[ImageGray]]] begin[{] if[binary_operation[ClassReference(postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=GrayU8, sub_type=None)), ==, call[inputA.getClass, parameter[]]]] begin[{] return[call[ImageStatistics.meanDiffSq, parameter[Cast(expression=MemberReference(member=inputA, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type=ReferenceType(arguments=None, dimensions=[], name=GrayU8, sub_type=None)), Cast(expression=MemberReference(member=inputB, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type=ReferenceType(arguments=None, dimensions=[], name=GrayU8, sub_type=None))]]] else begin[{] if[binary_operation[ClassReference(postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=GrayS8, sub_type=None)), ==, call[inputA.getClass, parameter[]]]] begin[{] return[call[ImageStatistics.meanDiffSq, parameter[Cast(expression=MemberReference(member=inputA, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type=ReferenceType(arguments=None, dimensions=[], name=GrayS8, sub_type=None)), Cast(expression=MemberReference(member=inputB, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type=ReferenceType(arguments=None, dimensions=[], name=GrayS8, sub_type=None))]]] else begin[{] if[binary_operation[ClassReference(postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=GrayU16, sub_type=None)), ==, call[inputA.getClass, parameter[]]]] begin[{] return[call[ImageStatistics.meanDiffSq, parameter[Cast(expression=MemberReference(member=inputA, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type=ReferenceType(arguments=None, dimensions=[], name=GrayU16, sub_type=None)), Cast(expression=MemberReference(member=inputB, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type=ReferenceType(arguments=None, dimensions=[], name=GrayU16, sub_type=None))]]] else begin[{] if[binary_operation[ClassReference(postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=GrayS16, sub_type=None)), ==, call[inputA.getClass, parameter[]]]] begin[{] return[call[ImageStatistics.meanDiffSq, parameter[Cast(expression=MemberReference(member=inputA, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type=ReferenceType(arguments=None, dimensions=[], name=GrayS16, sub_type=None)), Cast(expression=MemberReference(member=inputB, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type=ReferenceType(arguments=None, dimensions=[], name=GrayS16, sub_type=None))]]] else begin[{] if[binary_operation[ClassReference(postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=GrayS32, sub_type=None)), ==, call[inputA.getClass, parameter[]]]] begin[{] return[call[ImageStatistics.meanDiffSq, parameter[Cast(expression=MemberReference(member=inputA, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type=ReferenceType(arguments=None, dimensions=[], name=GrayS32, sub_type=None)), Cast(expression=MemberReference(member=inputB, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type=ReferenceType(arguments=None, dimensions=[], name=GrayS32, sub_type=None))]]] else begin[{] if[binary_operation[ClassReference(postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=GrayS64, sub_type=None)), ==, call[inputA.getClass, parameter[]]]] begin[{] return[call[ImageStatistics.meanDiffSq, parameter[Cast(expression=MemberReference(member=inputA, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type=ReferenceType(arguments=None, dimensions=[], name=GrayS64, sub_type=None)), Cast(expression=MemberReference(member=inputB, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type=ReferenceType(arguments=None, dimensions=[], name=GrayS64, sub_type=None))]]] else begin[{] if[binary_operation[ClassReference(postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=GrayF32, sub_type=None)), ==, call[inputA.getClass, parameter[]]]] begin[{] return[call[ImageStatistics.meanDiffSq, parameter[Cast(expression=MemberReference(member=inputA, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type=ReferenceType(arguments=None, dimensions=[], name=GrayF32, sub_type=None)), Cast(expression=MemberReference(member=inputB, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type=ReferenceType(arguments=None, dimensions=[], name=GrayF32, sub_type=None))]]] else begin[{] if[binary_operation[ClassReference(postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=GrayF64, sub_type=None)), ==, call[inputA.getClass, parameter[]]]] begin[{] return[call[ImageStatistics.meanDiffSq, parameter[Cast(expression=MemberReference(member=inputA, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type=ReferenceType(arguments=None, dimensions=[], name=GrayF64, sub_type=None)), Cast(expression=MemberReference(member=inputB, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type=ReferenceType(arguments=None, dimensions=[], name=GrayF64, sub_type=None))]]] else begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="Unknown image Type")], 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) end[}] end[}] end[}] end[}] end[}] end[}] end[}] end[}] else begin[{] if[binary_operation[member[.inputA], instanceof, type[ImageInterleaved]]] begin[{] if[binary_operation[ClassReference(postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=InterleavedU8, sub_type=None)), ==, call[inputA.getClass, parameter[]]]] begin[{] return[call[ImageStatistics.meanDiffSq, parameter[Cast(expression=MemberReference(member=inputA, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type=ReferenceType(arguments=None, dimensions=[], name=InterleavedU8, sub_type=None)), Cast(expression=MemberReference(member=inputB, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type=ReferenceType(arguments=None, dimensions=[], name=InterleavedU8, sub_type=None))]]] else begin[{] if[binary_operation[ClassReference(postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=InterleavedS8, sub_type=None)), ==, call[inputA.getClass, parameter[]]]] begin[{] return[call[ImageStatistics.meanDiffSq, parameter[Cast(expression=MemberReference(member=inputA, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type=ReferenceType(arguments=None, dimensions=[], name=InterleavedS8, sub_type=None)), Cast(expression=MemberReference(member=inputB, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type=ReferenceType(arguments=None, dimensions=[], name=InterleavedS8, sub_type=None))]]] else begin[{] if[binary_operation[ClassReference(postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=InterleavedU16, sub_type=None)), ==, call[inputA.getClass, parameter[]]]] begin[{] return[call[ImageStatistics.meanDiffSq, parameter[Cast(expression=MemberReference(member=inputA, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type=ReferenceType(arguments=None, dimensions=[], name=InterleavedU16, sub_type=None)), Cast(expression=MemberReference(member=inputB, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type=ReferenceType(arguments=None, dimensions=[], name=InterleavedU16, sub_type=None))]]] else begin[{] if[binary_operation[ClassReference(postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=InterleavedS16, sub_type=None)), ==, call[inputA.getClass, parameter[]]]] begin[{] return[call[ImageStatistics.meanDiffSq, parameter[Cast(expression=MemberReference(member=inputA, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type=ReferenceType(arguments=None, dimensions=[], name=InterleavedS16, sub_type=None)), Cast(expression=MemberReference(member=inputB, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type=ReferenceType(arguments=None, dimensions=[], name=InterleavedS16, sub_type=None))]]] else begin[{] if[binary_operation[ClassReference(postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=InterleavedS32, sub_type=None)), ==, call[inputA.getClass, parameter[]]]] begin[{] return[call[ImageStatistics.meanDiffSq, parameter[Cast(expression=MemberReference(member=inputA, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type=ReferenceType(arguments=None, dimensions=[], name=InterleavedS32, sub_type=None)), Cast(expression=MemberReference(member=inputB, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type=ReferenceType(arguments=None, dimensions=[], name=InterleavedS32, sub_type=None))]]] else begin[{] if[binary_operation[ClassReference(postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=InterleavedS64, sub_type=None)), ==, call[inputA.getClass, parameter[]]]] begin[{] return[call[ImageStatistics.meanDiffSq, parameter[Cast(expression=MemberReference(member=inputA, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type=ReferenceType(arguments=None, dimensions=[], name=InterleavedS64, sub_type=None)), Cast(expression=MemberReference(member=inputB, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type=ReferenceType(arguments=None, dimensions=[], name=InterleavedS64, sub_type=None))]]] else begin[{] if[binary_operation[ClassReference(postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=InterleavedF32, sub_type=None)), ==, call[inputA.getClass, parameter[]]]] begin[{] return[call[ImageStatistics.meanDiffSq, parameter[Cast(expression=MemberReference(member=inputA, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type=ReferenceType(arguments=None, dimensions=[], name=InterleavedF32, sub_type=None)), Cast(expression=MemberReference(member=inputB, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type=ReferenceType(arguments=None, dimensions=[], name=InterleavedF32, sub_type=None))]]] else begin[{] if[binary_operation[ClassReference(postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=InterleavedF64, sub_type=None)), ==, call[inputA.getClass, parameter[]]]] begin[{] return[call[ImageStatistics.meanDiffSq, parameter[Cast(expression=MemberReference(member=inputA, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type=ReferenceType(arguments=None, dimensions=[], name=InterleavedF64, sub_type=None)), Cast(expression=MemberReference(member=inputB, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type=ReferenceType(arguments=None, dimensions=[], name=InterleavedF64, sub_type=None))]]] else begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="Unknown image Type")], 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) end[}] end[}] end[}] end[}] end[}] end[}] end[}] end[}] else begin[{] if[binary_operation[member[.inputA], instanceof, type[Planar]]] begin[{] local_variable[type[double], mean] local_variable[type[Planar], inA] local_variable[type[Planar], inB] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=mean, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type=+=, value=MethodInvocation(arguments=[MethodInvocation(arguments=[MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=getBand, postfix_operators=[], prefix_operators=[], qualifier=inA, selectors=[], type_arguments=None), MethodInvocation(arguments=[MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=getBand, postfix_operators=[], prefix_operators=[], qualifier=inB, selectors=[], type_arguments=None)], member=meanDiffSq, 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=MethodInvocation(arguments=[], member=getNumBands, postfix_operators=[], prefix_operators=[], qualifier=inA, selectors=[], type_arguments=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[binary_operation[member[.mean], /, call[inA.getNumBands, parameter[]]]] else begin[{] ThrowStatement(expression=ClassCreator(arguments=[BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="Image type not yet supported "), operandr=MethodInvocation(arguments=[], member=getClass, postfix_operators=[], prefix_operators=[], qualifier=inputA, selectors=[MethodInvocation(arguments=[], member=getSimpleName, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)], type_arguments=None), 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) end[}] end[}] end[}] end[}] END[}]
Keyword[public] Keyword[static] operator[<] identifier[T] Keyword[extends] identifier[ImageBase] operator[<] identifier[T] operator[>] operator[>] Keyword[double] identifier[meanDiffSq] operator[SEP] identifier[T] identifier[inputA] , identifier[T] identifier[inputB] operator[SEP] { Keyword[if] operator[SEP] identifier[inputA] Keyword[instanceof] identifier[ImageGray] operator[SEP] { Keyword[if] operator[SEP] identifier[GrayU8] operator[SEP] Keyword[class] operator[==] identifier[inputA] operator[SEP] identifier[getClass] operator[SEP] operator[SEP] operator[SEP] { Keyword[return] identifier[ImageStatistics] operator[SEP] identifier[meanDiffSq] operator[SEP] operator[SEP] identifier[GrayU8] operator[SEP] identifier[inputA] , operator[SEP] identifier[GrayU8] operator[SEP] identifier[inputB] operator[SEP] operator[SEP] } Keyword[else] Keyword[if] operator[SEP] identifier[GrayS8] operator[SEP] Keyword[class] operator[==] identifier[inputA] operator[SEP] identifier[getClass] operator[SEP] operator[SEP] operator[SEP] { Keyword[return] identifier[ImageStatistics] operator[SEP] identifier[meanDiffSq] operator[SEP] operator[SEP] identifier[GrayS8] operator[SEP] identifier[inputA] , operator[SEP] identifier[GrayS8] operator[SEP] identifier[inputB] operator[SEP] operator[SEP] } Keyword[else] Keyword[if] operator[SEP] identifier[GrayU16] operator[SEP] Keyword[class] operator[==] identifier[inputA] operator[SEP] identifier[getClass] operator[SEP] operator[SEP] operator[SEP] { Keyword[return] identifier[ImageStatistics] operator[SEP] identifier[meanDiffSq] operator[SEP] operator[SEP] identifier[GrayU16] operator[SEP] identifier[inputA] , operator[SEP] identifier[GrayU16] operator[SEP] identifier[inputB] operator[SEP] operator[SEP] } Keyword[else] Keyword[if] operator[SEP] identifier[GrayS16] operator[SEP] Keyword[class] operator[==] identifier[inputA] operator[SEP] identifier[getClass] operator[SEP] operator[SEP] operator[SEP] { Keyword[return] identifier[ImageStatistics] operator[SEP] identifier[meanDiffSq] operator[SEP] operator[SEP] identifier[GrayS16] operator[SEP] identifier[inputA] , operator[SEP] identifier[GrayS16] operator[SEP] identifier[inputB] operator[SEP] operator[SEP] } Keyword[else] Keyword[if] operator[SEP] identifier[GrayS32] operator[SEP] Keyword[class] operator[==] identifier[inputA] operator[SEP] identifier[getClass] operator[SEP] operator[SEP] operator[SEP] { Keyword[return] identifier[ImageStatistics] operator[SEP] identifier[meanDiffSq] operator[SEP] operator[SEP] identifier[GrayS32] operator[SEP] identifier[inputA] , operator[SEP] identifier[GrayS32] operator[SEP] identifier[inputB] operator[SEP] operator[SEP] } Keyword[else] Keyword[if] operator[SEP] identifier[GrayS64] operator[SEP] Keyword[class] operator[==] identifier[inputA] operator[SEP] identifier[getClass] operator[SEP] operator[SEP] operator[SEP] { Keyword[return] identifier[ImageStatistics] operator[SEP] identifier[meanDiffSq] operator[SEP] operator[SEP] identifier[GrayS64] operator[SEP] identifier[inputA] , operator[SEP] identifier[GrayS64] operator[SEP] identifier[inputB] operator[SEP] operator[SEP] } Keyword[else] Keyword[if] operator[SEP] identifier[GrayF32] operator[SEP] Keyword[class] operator[==] identifier[inputA] operator[SEP] identifier[getClass] operator[SEP] operator[SEP] operator[SEP] { Keyword[return] identifier[ImageStatistics] operator[SEP] identifier[meanDiffSq] operator[SEP] operator[SEP] identifier[GrayF32] operator[SEP] identifier[inputA] , operator[SEP] identifier[GrayF32] operator[SEP] identifier[inputB] operator[SEP] operator[SEP] } Keyword[else] Keyword[if] operator[SEP] identifier[GrayF64] operator[SEP] Keyword[class] operator[==] identifier[inputA] operator[SEP] identifier[getClass] operator[SEP] operator[SEP] operator[SEP] { Keyword[return] identifier[ImageStatistics] operator[SEP] identifier[meanDiffSq] operator[SEP] operator[SEP] identifier[GrayF64] operator[SEP] identifier[inputA] , operator[SEP] identifier[GrayF64] operator[SEP] identifier[inputB] operator[SEP] operator[SEP] } Keyword[else] { Keyword[throw] Keyword[new] identifier[IllegalArgumentException] operator[SEP] literal[String] operator[SEP] operator[SEP] } } Keyword[else] Keyword[if] operator[SEP] identifier[inputA] Keyword[instanceof] identifier[ImageInterleaved] operator[SEP] { Keyword[if] operator[SEP] identifier[InterleavedU8] operator[SEP] Keyword[class] operator[==] identifier[inputA] operator[SEP] identifier[getClass] operator[SEP] operator[SEP] operator[SEP] { Keyword[return] identifier[ImageStatistics] operator[SEP] identifier[meanDiffSq] operator[SEP] operator[SEP] identifier[InterleavedU8] operator[SEP] identifier[inputA] , operator[SEP] identifier[InterleavedU8] operator[SEP] identifier[inputB] operator[SEP] operator[SEP] } Keyword[else] Keyword[if] operator[SEP] identifier[InterleavedS8] operator[SEP] Keyword[class] operator[==] identifier[inputA] operator[SEP] identifier[getClass] operator[SEP] operator[SEP] operator[SEP] { Keyword[return] identifier[ImageStatistics] operator[SEP] identifier[meanDiffSq] operator[SEP] operator[SEP] identifier[InterleavedS8] operator[SEP] identifier[inputA] , operator[SEP] identifier[InterleavedS8] operator[SEP] identifier[inputB] operator[SEP] operator[SEP] } Keyword[else] Keyword[if] operator[SEP] identifier[InterleavedU16] operator[SEP] Keyword[class] operator[==] identifier[inputA] operator[SEP] identifier[getClass] operator[SEP] operator[SEP] operator[SEP] { Keyword[return] identifier[ImageStatistics] operator[SEP] identifier[meanDiffSq] operator[SEP] operator[SEP] identifier[InterleavedU16] operator[SEP] identifier[inputA] , operator[SEP] identifier[InterleavedU16] operator[SEP] identifier[inputB] operator[SEP] operator[SEP] } Keyword[else] Keyword[if] operator[SEP] identifier[InterleavedS16] operator[SEP] Keyword[class] operator[==] identifier[inputA] operator[SEP] identifier[getClass] operator[SEP] operator[SEP] operator[SEP] { Keyword[return] identifier[ImageStatistics] operator[SEP] identifier[meanDiffSq] operator[SEP] operator[SEP] identifier[InterleavedS16] operator[SEP] identifier[inputA] , operator[SEP] identifier[InterleavedS16] operator[SEP] identifier[inputB] operator[SEP] operator[SEP] } Keyword[else] Keyword[if] operator[SEP] identifier[InterleavedS32] operator[SEP] Keyword[class] operator[==] identifier[inputA] operator[SEP] identifier[getClass] operator[SEP] operator[SEP] operator[SEP] { Keyword[return] identifier[ImageStatistics] operator[SEP] identifier[meanDiffSq] operator[SEP] operator[SEP] identifier[InterleavedS32] operator[SEP] identifier[inputA] , operator[SEP] identifier[InterleavedS32] operator[SEP] identifier[inputB] operator[SEP] operator[SEP] } Keyword[else] Keyword[if] operator[SEP] identifier[InterleavedS64] operator[SEP] Keyword[class] operator[==] identifier[inputA] operator[SEP] identifier[getClass] operator[SEP] operator[SEP] operator[SEP] { Keyword[return] identifier[ImageStatistics] operator[SEP] identifier[meanDiffSq] operator[SEP] operator[SEP] identifier[InterleavedS64] operator[SEP] identifier[inputA] , operator[SEP] identifier[InterleavedS64] operator[SEP] identifier[inputB] operator[SEP] operator[SEP] } Keyword[else] Keyword[if] operator[SEP] identifier[InterleavedF32] operator[SEP] Keyword[class] operator[==] identifier[inputA] operator[SEP] identifier[getClass] operator[SEP] operator[SEP] operator[SEP] { Keyword[return] identifier[ImageStatistics] operator[SEP] identifier[meanDiffSq] operator[SEP] operator[SEP] identifier[InterleavedF32] operator[SEP] identifier[inputA] , operator[SEP] identifier[InterleavedF32] operator[SEP] identifier[inputB] operator[SEP] operator[SEP] } Keyword[else] Keyword[if] operator[SEP] identifier[InterleavedF64] operator[SEP] Keyword[class] operator[==] identifier[inputA] operator[SEP] identifier[getClass] operator[SEP] operator[SEP] operator[SEP] { Keyword[return] identifier[ImageStatistics] operator[SEP] identifier[meanDiffSq] operator[SEP] operator[SEP] identifier[InterleavedF64] operator[SEP] identifier[inputA] , operator[SEP] identifier[InterleavedF64] operator[SEP] identifier[inputB] operator[SEP] operator[SEP] } Keyword[else] { Keyword[throw] Keyword[new] identifier[IllegalArgumentException] operator[SEP] literal[String] operator[SEP] operator[SEP] } } Keyword[else] Keyword[if] operator[SEP] identifier[inputA] Keyword[instanceof] identifier[Planar] operator[SEP] { Keyword[double] identifier[mean] operator[=] Other[0] operator[SEP] identifier[Planar] identifier[inA] operator[=] operator[SEP] identifier[Planar] operator[SEP] identifier[inputA] operator[SEP] identifier[Planar] identifier[inB] operator[=] operator[SEP] identifier[Planar] operator[SEP] identifier[inputB] operator[SEP] Keyword[for] operator[SEP] Keyword[int] identifier[i] operator[=] Other[0] operator[SEP] identifier[i] operator[<] identifier[inA] operator[SEP] identifier[getNumBands] operator[SEP] operator[SEP] operator[SEP] identifier[i] operator[++] operator[SEP] { identifier[mean] operator[+=] identifier[meanDiffSq] operator[SEP] identifier[inA] operator[SEP] identifier[getBand] operator[SEP] identifier[i] operator[SEP] , identifier[inB] operator[SEP] identifier[getBand] operator[SEP] identifier[i] operator[SEP] operator[SEP] operator[SEP] } Keyword[return] identifier[mean] operator[/] identifier[inA] operator[SEP] identifier[getNumBands] operator[SEP] operator[SEP] operator[SEP] } Keyword[else] { Keyword[throw] Keyword[new] identifier[IllegalArgumentException] operator[SEP] literal[String] operator[+] identifier[inputA] operator[SEP] identifier[getClass] operator[SEP] operator[SEP] operator[SEP] identifier[getSimpleName] operator[SEP] operator[SEP] operator[SEP] operator[SEP] } }
public Collection<Event> findEvents(SearchCriteria criteria, Collection<Event> events) { if (criteria == null) { throw new IllegalArgumentException("criteria must be non-null"); } Collection<Event> matches = new ArrayList<Event>(); for (Event event : events) { if (isMatchingEvent(criteria, event)) { matches.add(event); } } return matches; }
class class_name[name] begin[{] method[findEvents, return_type[type[Collection]], modifier[public], parameter[criteria, events]] begin[{] if[binary_operation[member[.criteria], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="criteria must be non-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[Collection], matches] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=MethodInvocation(arguments=[MemberReference(member=criteria, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=event, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=isMatchingEvent, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), else_statement=None, label=None, then_statement=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=event, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=add, postfix_operators=[], prefix_operators=[], qualifier=matches, selectors=[], type_arguments=None), label=None)]))]), control=EnhancedForControl(iterable=MemberReference(member=events, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), var=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=None, name=event)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=Event, sub_type=None))), label=None) return[member[.matches]] end[}] END[}]
Keyword[public] identifier[Collection] operator[<] identifier[Event] operator[>] identifier[findEvents] operator[SEP] identifier[SearchCriteria] identifier[criteria] , identifier[Collection] operator[<] identifier[Event] operator[>] identifier[events] operator[SEP] { Keyword[if] operator[SEP] identifier[criteria] operator[==] Other[null] operator[SEP] { Keyword[throw] Keyword[new] identifier[IllegalArgumentException] operator[SEP] literal[String] operator[SEP] operator[SEP] } identifier[Collection] operator[<] identifier[Event] operator[>] identifier[matches] operator[=] Keyword[new] identifier[ArrayList] operator[<] identifier[Event] operator[>] operator[SEP] operator[SEP] operator[SEP] Keyword[for] operator[SEP] identifier[Event] identifier[event] operator[:] identifier[events] operator[SEP] { Keyword[if] operator[SEP] identifier[isMatchingEvent] operator[SEP] identifier[criteria] , identifier[event] operator[SEP] operator[SEP] { identifier[matches] operator[SEP] identifier[add] operator[SEP] identifier[event] operator[SEP] operator[SEP] } } Keyword[return] identifier[matches] operator[SEP] }
@Override public void addLonePair(ILonePair lonePair) { ensureLonePairCapacity(lonePairCount + 1); lonePairs[lonePairCount++] = lonePair; notifyChanged(); }
class class_name[name] begin[{] method[addLonePair, return_type[void], modifier[public], parameter[lonePair]] begin[{] call[.ensureLonePairCapacity, parameter[binary_operation[member[.lonePairCount], +, literal[1]]]] assign[member[.lonePairs], member[.lonePair]] call[.notifyChanged, parameter[]] end[}] END[}]
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[addLonePair] operator[SEP] identifier[ILonePair] identifier[lonePair] operator[SEP] { identifier[ensureLonePairCapacity] operator[SEP] identifier[lonePairCount] operator[+] Other[1] operator[SEP] operator[SEP] identifier[lonePairs] operator[SEP] identifier[lonePairCount] operator[++] operator[SEP] operator[=] identifier[lonePair] operator[SEP] identifier[notifyChanged] operator[SEP] operator[SEP] operator[SEP] }
@Override public Iterable<Team> getAllTeams() { // Get all available teams Iterable<Team> teams = teamRepository.findAll(); for (Team team : teams) { Collector collector = collectorRepository .findOne(team.getCollectorId()); team.setCollector(collector); } return teams; }
class class_name[name] begin[{] method[getAllTeams, return_type[type[Iterable]], modifier[public], parameter[]] begin[{] local_variable[type[Iterable], teams] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MethodInvocation(arguments=[], member=getCollectorId, postfix_operators=[], prefix_operators=[], qualifier=team, selectors=[], type_arguments=None)], member=findOne, postfix_operators=[], prefix_operators=[], qualifier=collectorRepository, selectors=[], type_arguments=None), name=collector)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=Collector, sub_type=None)), StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=collector, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=setCollector, postfix_operators=[], prefix_operators=[], qualifier=team, selectors=[], type_arguments=None), label=None)]), control=EnhancedForControl(iterable=MemberReference(member=teams, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), var=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=None, name=team)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=Team, sub_type=None))), label=None) return[member[.teams]] end[}] END[}]
annotation[@] identifier[Override] Keyword[public] identifier[Iterable] operator[<] identifier[Team] operator[>] identifier[getAllTeams] operator[SEP] operator[SEP] { identifier[Iterable] operator[<] identifier[Team] operator[>] identifier[teams] operator[=] identifier[teamRepository] operator[SEP] identifier[findAll] operator[SEP] operator[SEP] operator[SEP] Keyword[for] operator[SEP] identifier[Team] identifier[team] operator[:] identifier[teams] operator[SEP] { identifier[Collector] identifier[collector] operator[=] identifier[collectorRepository] operator[SEP] identifier[findOne] operator[SEP] identifier[team] operator[SEP] identifier[getCollectorId] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[team] operator[SEP] identifier[setCollector] operator[SEP] identifier[collector] operator[SEP] operator[SEP] } Keyword[return] identifier[teams] operator[SEP] }
@Override public EClass getIfcLShapeProfileDef() { if (ifcLShapeProfileDefEClass == null) { ifcLShapeProfileDefEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI) .getEClassifiers().get(332); } return ifcLShapeProfileDefEClass; }
class class_name[name] begin[{] method[getIfcLShapeProfileDef, return_type[type[EClass]], modifier[public], parameter[]] begin[{] if[binary_operation[member[.ifcLShapeProfileDefEClass], ==, literal[null]]] begin[{] assign[member[.ifcLShapeProfileDefEClass], Cast(expression=MethodInvocation(arguments=[MemberReference(member=eNS_URI, postfix_operators=[], prefix_operators=[], qualifier=Ifc4Package, 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=332)], 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[.ifcLShapeProfileDefEClass]] end[}] END[}]
annotation[@] identifier[Override] Keyword[public] identifier[EClass] identifier[getIfcLShapeProfileDef] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[ifcLShapeProfileDefEClass] operator[==] Other[null] operator[SEP] { identifier[ifcLShapeProfileDefEClass] operator[=] operator[SEP] identifier[EClass] operator[SEP] identifier[EPackage] operator[SEP] identifier[Registry] operator[SEP] identifier[INSTANCE] operator[SEP] identifier[getEPackage] operator[SEP] identifier[Ifc4Package] operator[SEP] identifier[eNS_URI] operator[SEP] operator[SEP] identifier[getEClassifiers] operator[SEP] operator[SEP] operator[SEP] identifier[get] operator[SEP] Other[332] operator[SEP] operator[SEP] } Keyword[return] identifier[ifcLShapeProfileDefEClass] operator[SEP] }
@Test public void MPJwtNoMpJwtConfig_formLoginInWebXML_notInApp() throws Exception { genericLoginConfigFormLoginVariationTest( MpJwtFatConstants.LOGINCONFIG_FORM_LOGIN_IN_WEB_XML_SERVLET_NOT_IN_APP_ROOT_CONTEXT, MpJwtFatConstants.LOGINCONFIG_FORM_LOGIN_IN_WEB_XML_SERVLET_NOT_IN_APP, MpJwtFatConstants.MPJWT_APP_CLASS_LOGIN_CONFIG_FORMLOGININWEBXML_NOTINAPP, UseJWTToken.NO); }
class class_name[name] begin[{] method[MPJwtNoMpJwtConfig_formLoginInWebXML_notInApp, return_type[void], modifier[public], parameter[]] begin[{] call[.genericLoginConfigFormLoginVariationTest, parameter[member[MpJwtFatConstants.LOGINCONFIG_FORM_LOGIN_IN_WEB_XML_SERVLET_NOT_IN_APP_ROOT_CONTEXT], member[MpJwtFatConstants.LOGINCONFIG_FORM_LOGIN_IN_WEB_XML_SERVLET_NOT_IN_APP], member[MpJwtFatConstants.MPJWT_APP_CLASS_LOGIN_CONFIG_FORMLOGININWEBXML_NOTINAPP], member[UseJWTToken.NO]]] end[}] END[}]
annotation[@] identifier[Test] Keyword[public] Keyword[void] identifier[MPJwtNoMpJwtConfig_formLoginInWebXML_notInApp] operator[SEP] operator[SEP] Keyword[throws] identifier[Exception] { identifier[genericLoginConfigFormLoginVariationTest] operator[SEP] identifier[MpJwtFatConstants] operator[SEP] identifier[LOGINCONFIG_FORM_LOGIN_IN_WEB_XML_SERVLET_NOT_IN_APP_ROOT_CONTEXT] , identifier[MpJwtFatConstants] operator[SEP] identifier[LOGINCONFIG_FORM_LOGIN_IN_WEB_XML_SERVLET_NOT_IN_APP] , identifier[MpJwtFatConstants] operator[SEP] identifier[MPJWT_APP_CLASS_LOGIN_CONFIG_FORMLOGININWEBXML_NOTINAPP] , identifier[UseJWTToken] operator[SEP] identifier[NO] operator[SEP] operator[SEP] }
public Bitmap getScaledBitmap(Bitmap bitmap, int scaleToWidth, int scaleToHeight, boolean recycleOriginal, int density) { bitmap.setDensity(density); Bitmap original = bitmap; if (scaleToWidth > 0 || scaleToHeight > 0) { int width = bitmap.getWidth(); int height = bitmap.getHeight(); // scale lowest and crop highes if (height != scaleToHeight || width != scaleToWidth) { float ratio = 1.0f; // Scale to smallest if (height > width) { ratio = (float) scaleToWidth / (float) width; width = scaleToWidth; height = Math.round((float) height * ratio); bitmap = bitmapBuilder.scale(bitmap, width, height); width = bitmap.getWidth(); height = bitmap.getHeight(); if (height > scaleToHeight) { // crop height int diff = height - scaleToHeight; int half = Math.round((float) diff / 2.0f); bitmap = bitmapBuilder.crop(bitmap, 0, half, width, scaleToHeight); } } else { ratio = (float) scaleToHeight / (float) height; height = scaleToHeight; width = Math.round((float) width * ratio); bitmap = bitmapBuilder.scale(bitmap, width, height); width = bitmap.getWidth(); height = bitmap.getHeight(); if (width > scaleToWidth) { // crop width int diff = width - scaleToWidth; int half = Math.round((float) diff / 2.0f); bitmap = bitmapBuilder.crop(bitmap, half, 0, scaleToWidth, height); } } if(recycleOriginal) { original.recycle(); } } } return bitmap; }
class class_name[name] begin[{] method[getScaledBitmap, return_type[type[Bitmap]], modifier[public], parameter[bitmap, scaleToWidth, scaleToHeight, recycleOriginal, density]] begin[{] call[bitmap.setDensity, parameter[member[.density]]] local_variable[type[Bitmap], original] if[binary_operation[binary_operation[member[.scaleToWidth], >, literal[0]], ||, binary_operation[member[.scaleToHeight], >, literal[0]]]] begin[{] local_variable[type[int], width] local_variable[type[int], height] if[binary_operation[binary_operation[member[.height], !=, member[.scaleToHeight]], ||, binary_operation[member[.width], !=, member[.scaleToWidth]]]] begin[{] local_variable[type[float], ratio] if[binary_operation[member[.height], >, member[.width]]] begin[{] assign[member[.ratio], binary_operation[Cast(expression=MemberReference(member=scaleToWidth, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type=BasicType(dimensions=[], name=float)), /, Cast(expression=MemberReference(member=width, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type=BasicType(dimensions=[], name=float))]] assign[member[.width], member[.scaleToWidth]] assign[member[.height], call[Math.round, parameter[binary_operation[Cast(expression=MemberReference(member=height, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type=BasicType(dimensions=[], name=float)), *, member[.ratio]]]]] assign[member[.bitmap], call[bitmapBuilder.scale, parameter[member[.bitmap], member[.width], member[.height]]]] assign[member[.width], call[bitmap.getWidth, parameter[]]] assign[member[.height], call[bitmap.getHeight, parameter[]]] if[binary_operation[member[.height], >, member[.scaleToHeight]]] begin[{] local_variable[type[int], diff] local_variable[type[int], half] assign[member[.bitmap], call[bitmapBuilder.crop, parameter[member[.bitmap], literal[0], member[.half], member[.width], member[.scaleToHeight]]]] else begin[{] None end[}] else begin[{] assign[member[.ratio], binary_operation[Cast(expression=MemberReference(member=scaleToHeight, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type=BasicType(dimensions=[], name=float)), /, Cast(expression=MemberReference(member=height, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type=BasicType(dimensions=[], name=float))]] assign[member[.height], member[.scaleToHeight]] assign[member[.width], call[Math.round, parameter[binary_operation[Cast(expression=MemberReference(member=width, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type=BasicType(dimensions=[], name=float)), *, member[.ratio]]]]] assign[member[.bitmap], call[bitmapBuilder.scale, parameter[member[.bitmap], member[.width], member[.height]]]] assign[member[.width], call[bitmap.getWidth, parameter[]]] assign[member[.height], call[bitmap.getHeight, parameter[]]] if[binary_operation[member[.width], >, member[.scaleToWidth]]] begin[{] local_variable[type[int], diff] local_variable[type[int], half] assign[member[.bitmap], call[bitmapBuilder.crop, parameter[member[.bitmap], member[.half], literal[0], member[.scaleToWidth], member[.height]]]] else begin[{] None end[}] end[}] if[member[.recycleOriginal]] begin[{] call[original.recycle, parameter[]] else begin[{] None end[}] else begin[{] None end[}] else begin[{] None end[}] return[member[.bitmap]] end[}] END[}]
Keyword[public] identifier[Bitmap] identifier[getScaledBitmap] operator[SEP] identifier[Bitmap] identifier[bitmap] , Keyword[int] identifier[scaleToWidth] , Keyword[int] identifier[scaleToHeight] , Keyword[boolean] identifier[recycleOriginal] , Keyword[int] identifier[density] operator[SEP] { identifier[bitmap] operator[SEP] identifier[setDensity] operator[SEP] identifier[density] operator[SEP] operator[SEP] identifier[Bitmap] identifier[original] operator[=] identifier[bitmap] operator[SEP] Keyword[if] operator[SEP] identifier[scaleToWidth] operator[>] Other[0] operator[||] identifier[scaleToHeight] operator[>] Other[0] operator[SEP] { Keyword[int] identifier[width] operator[=] identifier[bitmap] operator[SEP] identifier[getWidth] operator[SEP] operator[SEP] operator[SEP] Keyword[int] identifier[height] operator[=] identifier[bitmap] operator[SEP] identifier[getHeight] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[height] operator[!=] identifier[scaleToHeight] operator[||] identifier[width] operator[!=] identifier[scaleToWidth] operator[SEP] { Keyword[float] identifier[ratio] operator[=] literal[Float] operator[SEP] Keyword[if] operator[SEP] identifier[height] operator[>] identifier[width] operator[SEP] { identifier[ratio] operator[=] operator[SEP] Keyword[float] operator[SEP] identifier[scaleToWidth] operator[/] operator[SEP] Keyword[float] operator[SEP] identifier[width] operator[SEP] identifier[width] operator[=] identifier[scaleToWidth] operator[SEP] identifier[height] operator[=] identifier[Math] operator[SEP] identifier[round] operator[SEP] operator[SEP] Keyword[float] operator[SEP] identifier[height] operator[*] identifier[ratio] operator[SEP] operator[SEP] identifier[bitmap] operator[=] identifier[bitmapBuilder] operator[SEP] identifier[scale] operator[SEP] identifier[bitmap] , identifier[width] , identifier[height] operator[SEP] operator[SEP] identifier[width] operator[=] identifier[bitmap] operator[SEP] identifier[getWidth] operator[SEP] operator[SEP] operator[SEP] identifier[height] operator[=] identifier[bitmap] operator[SEP] identifier[getHeight] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[height] operator[>] identifier[scaleToHeight] operator[SEP] { Keyword[int] identifier[diff] operator[=] identifier[height] operator[-] identifier[scaleToHeight] operator[SEP] Keyword[int] identifier[half] operator[=] identifier[Math] operator[SEP] identifier[round] operator[SEP] operator[SEP] Keyword[float] operator[SEP] identifier[diff] operator[/] literal[Float] operator[SEP] operator[SEP] identifier[bitmap] operator[=] identifier[bitmapBuilder] operator[SEP] identifier[crop] operator[SEP] identifier[bitmap] , Other[0] , identifier[half] , identifier[width] , identifier[scaleToHeight] operator[SEP] operator[SEP] } } Keyword[else] { identifier[ratio] operator[=] operator[SEP] Keyword[float] operator[SEP] identifier[scaleToHeight] operator[/] operator[SEP] Keyword[float] operator[SEP] identifier[height] operator[SEP] identifier[height] operator[=] identifier[scaleToHeight] operator[SEP] identifier[width] operator[=] identifier[Math] operator[SEP] identifier[round] operator[SEP] operator[SEP] Keyword[float] operator[SEP] identifier[width] operator[*] identifier[ratio] operator[SEP] operator[SEP] identifier[bitmap] operator[=] identifier[bitmapBuilder] operator[SEP] identifier[scale] operator[SEP] identifier[bitmap] , identifier[width] , identifier[height] operator[SEP] operator[SEP] identifier[width] operator[=] identifier[bitmap] operator[SEP] identifier[getWidth] operator[SEP] operator[SEP] operator[SEP] identifier[height] operator[=] identifier[bitmap] operator[SEP] identifier[getHeight] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[width] operator[>] identifier[scaleToWidth] operator[SEP] { Keyword[int] identifier[diff] operator[=] identifier[width] operator[-] identifier[scaleToWidth] operator[SEP] Keyword[int] identifier[half] operator[=] identifier[Math] operator[SEP] identifier[round] operator[SEP] operator[SEP] Keyword[float] operator[SEP] identifier[diff] operator[/] literal[Float] operator[SEP] operator[SEP] identifier[bitmap] operator[=] identifier[bitmapBuilder] operator[SEP] identifier[crop] operator[SEP] identifier[bitmap] , identifier[half] , Other[0] , identifier[scaleToWidth] , identifier[height] operator[SEP] operator[SEP] } } Keyword[if] operator[SEP] identifier[recycleOriginal] operator[SEP] { identifier[original] operator[SEP] identifier[recycle] operator[SEP] operator[SEP] operator[SEP] } } } Keyword[return] identifier[bitmap] operator[SEP] }
public ApiResponse<UniverseAsteroidBeltsResponse> getUniverseAsteroidBeltsAsteroidBeltIdWithHttpInfo( Integer asteroidBeltId, String datasource, String ifNoneMatch) throws ApiException { com.squareup.okhttp.Call call = getUniverseAsteroidBeltsAsteroidBeltIdValidateBeforeCall(asteroidBeltId, datasource, ifNoneMatch, null); Type localVarReturnType = new TypeToken<UniverseAsteroidBeltsResponse>() { }.getType(); return apiClient.execute(call, localVarReturnType); }
class class_name[name] begin[{] method[getUniverseAsteroidBeltsAsteroidBeltIdWithHttpInfo, return_type[type[ApiResponse]], modifier[public], parameter[asteroidBeltId, datasource, ifNoneMatch]] begin[{] local_variable[type[com], call] local_variable[type[Type], localVarReturnType] return[call[apiClient.execute, parameter[member[.call], member[.localVarReturnType]]]] end[}] END[}]
Keyword[public] identifier[ApiResponse] operator[<] identifier[UniverseAsteroidBeltsResponse] operator[>] identifier[getUniverseAsteroidBeltsAsteroidBeltIdWithHttpInfo] operator[SEP] identifier[Integer] identifier[asteroidBeltId] , identifier[String] identifier[datasource] , identifier[String] identifier[ifNoneMatch] operator[SEP] Keyword[throws] identifier[ApiException] { identifier[com] operator[SEP] identifier[squareup] operator[SEP] identifier[okhttp] operator[SEP] identifier[Call] identifier[call] operator[=] identifier[getUniverseAsteroidBeltsAsteroidBeltIdValidateBeforeCall] operator[SEP] identifier[asteroidBeltId] , identifier[datasource] , identifier[ifNoneMatch] , Other[null] operator[SEP] operator[SEP] identifier[Type] identifier[localVarReturnType] operator[=] Keyword[new] identifier[TypeToken] operator[<] identifier[UniverseAsteroidBeltsResponse] operator[>] operator[SEP] operator[SEP] { } operator[SEP] identifier[getType] operator[SEP] operator[SEP] operator[SEP] Keyword[return] identifier[apiClient] operator[SEP] identifier[execute] operator[SEP] identifier[call] , identifier[localVarReturnType] operator[SEP] operator[SEP] }
public static void intValue(final MethodVisitor mv) { mv.visitTypeInsn(CHECKCAST, SIGNATURE_JAVA_LANG_INTEGER); mv.visitMethodInsn(INVOKEVIRTUAL, SIGNATURE_JAVA_LANG_INTEGER, "intValue", "()I", false); }
class class_name[name] begin[{] method[intValue, return_type[void], modifier[public static], parameter[mv]] begin[{] call[mv.visitTypeInsn, parameter[member[.CHECKCAST], member[.SIGNATURE_JAVA_LANG_INTEGER]]] call[mv.visitMethodInsn, parameter[member[.INVOKEVIRTUAL], member[.SIGNATURE_JAVA_LANG_INTEGER], literal["intValue"], literal["()I"], literal[false]]] end[}] END[}]
Keyword[public] Keyword[static] Keyword[void] identifier[intValue] operator[SEP] Keyword[final] identifier[MethodVisitor] identifier[mv] operator[SEP] { identifier[mv] operator[SEP] identifier[visitTypeInsn] operator[SEP] identifier[CHECKCAST] , identifier[SIGNATURE_JAVA_LANG_INTEGER] operator[SEP] operator[SEP] identifier[mv] operator[SEP] identifier[visitMethodInsn] operator[SEP] identifier[INVOKEVIRTUAL] , identifier[SIGNATURE_JAVA_LANG_INTEGER] , literal[String] , literal[String] , literal[boolean] operator[SEP] operator[SEP] }
public static int getEndValue(Calendar calendar, int dateField) { if(Calendar.DAY_OF_WEEK == dateField) { return (calendar.getFirstDayOfWeek() + 6) % 7; } return calendar.getActualMaximum(dateField); }
class class_name[name] begin[{] method[getEndValue, return_type[type[int]], modifier[public static], parameter[calendar, dateField]] begin[{] if[binary_operation[member[Calendar.DAY_OF_WEEK], ==, member[.dateField]]] begin[{] return[binary_operation[binary_operation[call[calendar.getFirstDayOfWeek, parameter[]], +, literal[6]], %, literal[7]]] else begin[{] None end[}] return[call[calendar.getActualMaximum, parameter[member[.dateField]]]] end[}] END[}]
Keyword[public] Keyword[static] Keyword[int] identifier[getEndValue] operator[SEP] identifier[Calendar] identifier[calendar] , Keyword[int] identifier[dateField] operator[SEP] { Keyword[if] operator[SEP] identifier[Calendar] operator[SEP] identifier[DAY_OF_WEEK] operator[==] identifier[dateField] operator[SEP] { Keyword[return] operator[SEP] identifier[calendar] operator[SEP] identifier[getFirstDayOfWeek] operator[SEP] operator[SEP] operator[+] Other[6] operator[SEP] operator[%] Other[7] operator[SEP] } Keyword[return] identifier[calendar] operator[SEP] identifier[getActualMaximum] operator[SEP] identifier[dateField] operator[SEP] operator[SEP] }
private boolean createGeometryIndexTable() { boolean created = false; // Create the geometry index table if needed as well try { if (!geometryIndexDao.isTableExists()) { created = geoPackage.createGeometryIndexTable(); } } catch (SQLException e) { throw new GeoPackageException( "Failed to create Geometry Index table for GeoPackage: " + geoPackage.getName() + ", Table Name: " + tableName + ", Column Name: " + columnName, e); } return created; }
class class_name[name] begin[{] method[createGeometryIndexTable, return_type[type[boolean]], modifier[private], parameter[]] begin[{] local_variable[type[boolean], created] TryStatement(block=[IfStatement(condition=MethodInvocation(arguments=[], member=isTableExists, postfix_operators=[], prefix_operators=['!'], qualifier=geometryIndexDao, selectors=[], type_arguments=None), else_statement=None, label=None, then_statement=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=created, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MethodInvocation(arguments=[], member=createGeometryIndexTable, postfix_operators=[], prefix_operators=[], qualifier=geoPackage, selectors=[], type_arguments=None)), label=None)]))], catches=[CatchClause(block=[ThrowStatement(expression=ClassCreator(arguments=[BinaryOperation(operandl=BinaryOperation(operandl=BinaryOperation(operandl=BinaryOperation(operandl=BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="Failed to create Geometry Index table for GeoPackage: "), operandr=MethodInvocation(arguments=[], member=getName, postfix_operators=[], prefix_operators=[], qualifier=geoPackage, selectors=[], type_arguments=None), operator=+), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=", Table Name: "), operator=+), operandr=MemberReference(member=tableName, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=+), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=", Column Name: "), operator=+), operandr=MemberReference(member=columnName, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), 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=GeoPackageException, sub_type=None)), label=None)], label=None, parameter=CatchClauseParameter(annotations=None, modifiers=None, name=e, types=['SQLException']))], finally_block=None, label=None, resources=None) return[member[.created]] end[}] END[}]
Keyword[private] Keyword[boolean] identifier[createGeometryIndexTable] operator[SEP] operator[SEP] { Keyword[boolean] identifier[created] operator[=] literal[boolean] operator[SEP] Keyword[try] { Keyword[if] operator[SEP] operator[!] identifier[geometryIndexDao] operator[SEP] identifier[isTableExists] operator[SEP] operator[SEP] operator[SEP] { identifier[created] operator[=] identifier[geoPackage] operator[SEP] identifier[createGeometryIndexTable] operator[SEP] operator[SEP] operator[SEP] } } Keyword[catch] operator[SEP] identifier[SQLException] identifier[e] operator[SEP] { Keyword[throw] Keyword[new] identifier[GeoPackageException] operator[SEP] literal[String] operator[+] identifier[geoPackage] operator[SEP] identifier[getName] operator[SEP] operator[SEP] operator[+] literal[String] operator[+] identifier[tableName] operator[+] literal[String] operator[+] identifier[columnName] , identifier[e] operator[SEP] operator[SEP] } Keyword[return] identifier[created] operator[SEP] }