public class TreeIndenode
extends io.odysz.anson.Anson
Constructor and Description |
---|
TreeIndenode() |
TreeIndenode(String id,
TreeIndenode... parent) |
Modifier and Type | Method and Description |
---|---|
TreeIndenode |
asLastSibling() |
Object |
child(int cx) |
TreeIndenode |
child(TreeIndenode ch) |
TreeIndenode |
children_(List<? extends TreeIndenode> childrenArray) |
List<?> |
children() |
void |
children(List<Object> arrChildren)
node: { children: arrChildren<List> }
|
String |
fullpath() |
Object |
get(String k) |
ArrayList<IndentFlag> |
getChildIndents() |
String |
id() |
ArrayList<IndentFlag> |
indents() |
String |
parent() |
TreeIndenode |
put(String k,
Object v) |
TreeIndenode |
tagLast()
Set last child as the last sibling.
|
io.odysz.anson.Anson |
toBlock(OutputStream stream,
io.odysz.anson.JsonOpt... opts) |
appendArr, appendObjStr, appendPair, escape, fromBlock, fromJson, fromJson, toEnvelope, toJson, toJson, toMapBlock, toString, unescape
public TreeIndenode()
public TreeIndenode(String id, TreeIndenode... parent)
public io.odysz.anson.Anson toBlock(OutputStream stream, io.odysz.anson.JsonOpt... opts) throws io.odysz.anson.x.AnsonException, IOException
toBlock
in interface io.odysz.anson.IJsonable
toBlock
in class io.odysz.anson.Anson
io.odysz.anson.x.AnsonException
IOException
public ArrayList<IndentFlag> getChildIndents()
public ArrayList<IndentFlag> indents()
public TreeIndenode put(String k, Object v)
public String id()
public String parent()
public String fullpath()
public List<?> children()
public Object child(int cx)
public TreeIndenode child(TreeIndenode ch)
public void children(List<Object> arrChildren)
arrChildren
- public TreeIndenode children_(List<? extends TreeIndenode> childrenArray)
public TreeIndenode tagLast()
public TreeIndenode asLastSibling()
Copyright © 2024. All rights reserved.