Package org.exbin.xbup.parser_tree
Class XBTTree
- java.lang.Object
-
- org.exbin.xbup.parser_tree.XBTTree
-
- All Implemented Interfaces:
java.io.Serializable
,org.exbin.xbup.core.ubnumber.UBStreamable
- Direct Known Subclasses:
XBTTreeDocument
@ParametersAreNonnullByDefault public class XBTTree extends java.lang.Object implements org.exbin.xbup.core.ubnumber.UBStreamable
XBUP level 1 object model parser tree.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected org.exbin.xbup.core.block.declaration.XBContext
rootContext
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clear()
java.util.Optional<org.exbin.xbup.core.block.XBTBlock>
findNodeByIndex(long index)
int
fromStreamUB(java.io.InputStream stream)
org.exbin.xbup.core.catalog.XBCatalog
getCatalog()
XBTTreeNode
getRoot()
java.util.Optional<org.exbin.xbup.core.block.XBTBlock>
getRootBlock()
org.exbin.xbup.core.block.declaration.XBContext
getRootContext()
int
getSizeUB()
XBTTreeNode
newNodeInstance(XBTTreeNode parent)
void
processSpec()
void
setCatalog(org.exbin.xbup.core.catalog.XBCatalog catalog)
void
setRoot(XBTTreeNode rootNode)
void
setRootContext(org.exbin.xbup.core.block.declaration.XBContext rootContext)
int
toStreamUB(java.io.OutputStream stream)
-
-
-
Method Detail
-
fromStreamUB
public int fromStreamUB(java.io.InputStream stream) throws java.io.IOException, org.exbin.xbup.core.parser.XBProcessingException
- Specified by:
fromStreamUB
in interfaceorg.exbin.xbup.core.ubnumber.UBStreamable
- Throws:
java.io.IOException
org.exbin.xbup.core.parser.XBProcessingException
-
setCatalog
public void setCatalog(@Nullable org.exbin.xbup.core.catalog.XBCatalog catalog)
-
processSpec
public void processSpec()
-
newNodeInstance
@Nonnull public XBTTreeNode newNodeInstance(@Nullable XBTTreeNode parent)
-
clear
public void clear()
-
toStreamUB
public int toStreamUB(java.io.OutputStream stream) throws java.io.IOException
- Specified by:
toStreamUB
in interfaceorg.exbin.xbup.core.ubnumber.UBStreamable
- Throws:
java.io.IOException
-
getSizeUB
public int getSizeUB()
- Specified by:
getSizeUB
in interfaceorg.exbin.xbup.core.ubnumber.UBStreamable
-
findNodeByIndex
@Nonnull public java.util.Optional<org.exbin.xbup.core.block.XBTBlock> findNodeByIndex(long index)
-
getRoot
@Nullable public XBTTreeNode getRoot()
-
getRootBlock
@Nonnull public java.util.Optional<org.exbin.xbup.core.block.XBTBlock> getRootBlock()
-
setRoot
public void setRoot(@Nullable XBTTreeNode rootNode)
-
getRootContext
@Nullable public org.exbin.xbup.core.block.declaration.XBContext getRootContext()
-
setRootContext
public void setRootContext(@Nullable org.exbin.xbup.core.block.declaration.XBContext rootContext)
-
getCatalog
@Nullable public org.exbin.xbup.core.catalog.XBCatalog getCatalog()
-
-