Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

6
LINES

< > BotCompany Repo | #1027903 // parseSimpleJavaObject

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (2521L/16K).

sO parseSimpleJavaObject(S s) {
  if (eq(s, "null")) null;
  if (isQuoted(s)) ret unquote(s);
  if (isInteger(s)) ret parseInt(s);
  fail("Can't parse simple Java object: " + s);
}

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv

No comments. add comment

Snippet ID: #1027903
Snippet name: parseSimpleJavaObject
Eternal ID of this version: #1027903/1
Text MD5: 2c26eb07e194e185b2551775707f4b58
Transpilation MD5: 3fc87e3287c849019c23059613036d9b
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-04-16 17:19:36
Source code size: 185 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 198 / 273
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)