Class AbstractRPCMethod
- java.lang.Object
-
- jrpc.clightning.plugins.rpcmethods.AbstractRPCMethod
-
- All Implemented Interfaces:
ICLightningRPCMethod
- Direct Known Subclasses:
InitMethod
,ManifestMethod
,RPCMethodReflection
public abstract class AbstractRPCMethod extends java.lang.Object implements ICLightningRPCMethod
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
description
protected java.lang.String
longDescription
protected java.lang.String
name
protected java.lang.String
usage
-
Constructor Summary
Constructors Constructor Description AbstractRPCMethod(java.lang.String name, java.lang.String usage, java.lang.String description)
AbstractRPCMethod(java.lang.String name, java.lang.String usage, java.lang.String description, java.lang.String longDescription)
AbstractRPCMethod(java.lang.String name, java.lang.String usage, java.lang.String description, java.lang.String longDescription, RPCMethodType type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getDescription()
java.lang.String
getLongDescription()
java.lang.String
getName()
RPCMethodType
getType()
java.lang.String
getUsage()
java.lang.String
toString()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface jrpc.clightning.plugins.rpcmethods.ICLightningRPCMethod
doRun
-
-
-
-
Constructor Detail
-
AbstractRPCMethod
public AbstractRPCMethod(java.lang.String name, java.lang.String usage, java.lang.String description)
-
AbstractRPCMethod
public AbstractRPCMethod(java.lang.String name, java.lang.String usage, java.lang.String description, java.lang.String longDescription)
-
AbstractRPCMethod
public AbstractRPCMethod(java.lang.String name, java.lang.String usage, java.lang.String description, java.lang.String longDescription, RPCMethodType type)
-
-
Method Detail
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
getName
public java.lang.String getName()
- Specified by:
getName
in interfaceICLightningRPCMethod
-
getUsage
public java.lang.String getUsage()
- Specified by:
getUsage
in interfaceICLightningRPCMethod
-
getDescription
public java.lang.String getDescription()
- Specified by:
getDescription
in interfaceICLightningRPCMethod
-
getLongDescription
public java.lang.String getLongDescription()
- Specified by:
getLongDescription
in interfaceICLightningRPCMethod
-
getType
public RPCMethodType getType()
- Specified by:
getType
in interfaceICLightningRPCMethod
-
-