Package zombie.scripting
Class ScriptParser.Block
java.lang.Object
zombie.scripting.ScriptParser.Block
- All Implemented Interfaces:
ScriptParser.BlockElement
- Enclosing class:
- ScriptParser
public static class ScriptParser.Block extends java.lang.Object implements ScriptParser.BlockElement
-
Field Summary
-
Constructor Summary
Constructors Constructor Description Block()
-
Method Summary
Modifier and Type Method Description ScriptParser.Block
addBlock(java.lang.String string, java.lang.String string2)
ScriptParser.Value
addValue(java.lang.String string, java.lang.String string2)
ScriptParser.Block
asBlock()
ScriptParser.Value
asValue()
ScriptParser.Block
getBlock(java.lang.String string, java.lang.String string2)
ScriptParser.Value
getValue(java.lang.String string)
boolean
isEmpty()
void
moveValueAfter(java.lang.String string, java.lang.String string2)
void
prettyPrint(int int1, java.lang.StringBuilder stringBuilder, java.lang.String string)
void
prettyPrintElements(int int1, java.lang.StringBuilder stringBuilder, java.lang.String string)
void
setValue(java.lang.String string, java.lang.String string2)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
type
public java.lang.String type -
id
public java.lang.String id -
elements
public final java.util.ArrayList elements -
values
public final java.util.ArrayList values -
children
public final java.util.ArrayList children
-
-
Constructor Details
-
Block
public Block()
-
-
Method Details
-
asBlock
- Specified by:
asBlock
in interfaceScriptParser.BlockElement
-
asValue
- Specified by:
asValue
in interfaceScriptParser.BlockElement
-
isEmpty
public boolean isEmpty() -
prettyPrint
public void prettyPrint(int int1, java.lang.StringBuilder stringBuilder, java.lang.String string)- Specified by:
prettyPrint
in interfaceScriptParser.BlockElement
-
prettyPrintElements
public void prettyPrintElements(int int1, java.lang.StringBuilder stringBuilder, java.lang.String string) -
addBlock
-
getBlock
-
getValue
-
setValue
public void setValue(java.lang.String string, java.lang.String string2) -
addValue
-
moveValueAfter
public void moveValueAfter(java.lang.String string, java.lang.String string2)
-