Package cn.nukkit.command.tree.node
Class IPStringNode
java.lang.Object
cn.nukkit.command.tree.node.ParamNode<String>
cn.nukkit.command.tree.node.StringNode
cn.nukkit.command.tree.node.IPStringNode
- All Implemented Interfaces:
IParamNode<String>
验证IP地址并解析为
String
值
不会默认使用,需要手动指定
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
负责填充该参数节点,覆写该方法需要实现对接受参数arg的验证以及解析成为对应类型T的结果
当验证失败或者解析失败,请调用IParamNode.error(String)
方法标记错误.形如this.error()
Methods inherited from class cn.nukkit.command.tree.node.ParamNode
get, getParent, hasResult, init, isOptional, reset
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface cn.nukkit.command.tree.node.IParamNode
error, error, error, error
-
Constructor Details
-
IPStringNode
public IPStringNode()
-
-
Method Details
-
fill
Description copied from interface:IParamNode
负责填充该参数节点,覆写该方法需要实现对接受参数arg的验证以及解析成为对应类型T的结果
当验证失败或者解析失败,请调用IParamNode.error(String)
方法标记错误.形如this.error()
- Specified by:
fill
in interfaceIParamNode<String>
- Overrides:
fill
in classStringNode
- Parameters:
arg
- the arg
-