public class SimpleSupply extends Object implements com.github.siwenyan.dish_parser.ISupply
| 构造器和说明 |
|---|
SimpleSupply() |
SimpleSupply(List<com.github.siwenyan.dish_parser.SupplyLine> supplyLines) |
SimpleSupply(String line) |
SimpleSupply(String[] lines) |
SimpleSupply(com.github.siwenyan.dish_parser.SupplyLine supplyLine) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addStack(int cutInCount,
List<com.github.siwenyan.dish_parser.Trace> stack) |
void |
addStack(List<com.github.siwenyan.dish_parser.Trace> stack) |
void |
addStack(String traceString) |
void |
appendSupply(com.github.siwenyan.dish_parser.ISupply supply) |
void |
beDelicious(boolean delicious) |
void |
clear() |
SimpleSupply |
clone() |
void |
cutInSupply(com.github.siwenyan.dish_parser.ISupply supply,
int cutInAt) |
boolean |
equals(Object o) |
com.github.siwenyan.dish_parser.Flavor |
getFlavor(int index) |
String |
getLine(int index) |
List<String> |
getLines() |
List<com.github.siwenyan.dish_parser.Trace> |
getStack(int index) |
com.github.siwenyan.dish_parser.ISupply |
getSupply(int index) |
List<com.github.siwenyan.dish_parser.SupplyLine> |
getSupplyLines() |
boolean |
hasSupply(int index) |
boolean |
isEmpty() |
boolean |
isPoison() |
static com.github.siwenyan.dish_parser.ISupply |
loadSupply(Scanner scanner) |
com.github.siwenyan.dish_parser.ISupply |
removeSupply(int index) |
void |
replaceFlavor(int index,
com.github.siwenyan.dish_parser.Flavor.FlavorPart flavorPart,
String replacement) |
void |
setLines(List<String> lines) |
void |
setLines(String[] lines) |
void |
setPoison(boolean isPoison) |
int |
size() |
void |
supplySupply(String line) |
String |
toJson() |
String |
toString() |
String |
toString(int limit) |
public SimpleSupply()
public SimpleSupply(String line) throws com.github.siwenyan.dish_parser.BadSmellException
com.github.siwenyan.dish_parser.BadSmellExceptionpublic SimpleSupply(String[] lines) throws com.github.siwenyan.dish_parser.BadSmellException
com.github.siwenyan.dish_parser.BadSmellExceptionpublic SimpleSupply(com.github.siwenyan.dish_parser.SupplyLine supplyLine)
public SimpleSupply(List<com.github.siwenyan.dish_parser.SupplyLine> supplyLines)
public static com.github.siwenyan.dish_parser.ISupply loadSupply(Scanner scanner) throws com.github.siwenyan.dish_parser.BadSmellException
com.github.siwenyan.dish_parser.BadSmellExceptionpublic String getLine(int index)
getLine 在接口中 com.github.siwenyan.dish_parser.ISupplypublic void setLines(String[] lines) throws com.github.siwenyan.dish_parser.BadSmellException
setLines 在接口中 com.github.siwenyan.dish_parser.ISupplycom.github.siwenyan.dish_parser.BadSmellExceptionpublic void setLines(List<String> lines) throws com.github.siwenyan.dish_parser.BadSmellException
setLines 在接口中 com.github.siwenyan.dish_parser.ISupplycom.github.siwenyan.dish_parser.BadSmellExceptionpublic com.github.siwenyan.dish_parser.Flavor getFlavor(int index)
getFlavor 在接口中 com.github.siwenyan.dish_parser.ISupplypublic int size()
size 在接口中 com.github.siwenyan.dish_parser.ISupplypublic void setPoison(boolean isPoison)
setPoison 在接口中 com.github.siwenyan.dish_parser.ISupplypublic boolean isPoison()
isPoison 在接口中 com.github.siwenyan.dish_parser.ISupplypublic boolean isEmpty()
isEmpty 在接口中 com.github.siwenyan.dish_parser.ISupplypublic void appendSupply(com.github.siwenyan.dish_parser.ISupply supply)
appendSupply 在接口中 com.github.siwenyan.dish_parser.ISupplypublic void supplySupply(String line) throws com.github.siwenyan.dish_parser.BadSmellException
supplySupply 在接口中 com.github.siwenyan.dish_parser.ISupplycom.github.siwenyan.dish_parser.BadSmellExceptionpublic void cutInSupply(com.github.siwenyan.dish_parser.ISupply supply,
int cutInAt)
cutInSupply 在接口中 com.github.siwenyan.dish_parser.ISupplypublic void clear()
clear 在接口中 com.github.siwenyan.dish_parser.ISupplypublic String toString(int limit)
toString 在接口中 com.github.siwenyan.dish_parser.ISupplypublic com.github.siwenyan.dish_parser.ISupply getSupply(int index)
getSupply 在接口中 com.github.siwenyan.dish_parser.ISupplypublic boolean hasSupply(int index)
hasSupply 在接口中 com.github.siwenyan.dish_parser.ISupplypublic com.github.siwenyan.dish_parser.ISupply removeSupply(int index)
removeSupply 在接口中 com.github.siwenyan.dish_parser.ISupplypublic void beDelicious(boolean delicious)
throws com.github.siwenyan.dish_parser.BadSmellException
beDelicious 在接口中 com.github.siwenyan.dish_parser.ISupplycom.github.siwenyan.dish_parser.BadSmellExceptionpublic List<com.github.siwenyan.dish_parser.Trace> getStack(int index)
getStack 在接口中 com.github.siwenyan.dish_parser.ISupplypublic void addStack(List<com.github.siwenyan.dish_parser.Trace> stack)
addStack 在接口中 com.github.siwenyan.dish_parser.ISupplypublic List<com.github.siwenyan.dish_parser.SupplyLine> getSupplyLines()
getSupplyLines 在接口中 com.github.siwenyan.dish_parser.ISupplypublic void addStack(int cutInCount,
List<com.github.siwenyan.dish_parser.Trace> stack)
addStack 在接口中 com.github.siwenyan.dish_parser.ISupplypublic void addStack(String traceString)
addStack 在接口中 com.github.siwenyan.dish_parser.ISupplypublic void replaceFlavor(int index,
com.github.siwenyan.dish_parser.Flavor.FlavorPart flavorPart,
String replacement)
throws com.github.siwenyan.dish_parser.BadSmellException
replaceFlavor 在接口中 com.github.siwenyan.dish_parser.ISupplycom.github.siwenyan.dish_parser.BadSmellExceptionpublic SimpleSupply clone()
public String toJson()
toJson 在接口中 com.github.siwenyan.dish_parser.ISupplyCopyright © 2020. All rights reserved.