|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jsieve.Command
A parsed representation of the RFC3028 BNF...
command = identifier arguments ( ";" / block )
Constructor Summary | |
Command(java.lang.String name,
Arguments arguments,
Block block,
SieveContext context)
Constructor for Command. |
Method Summary | |
java.lang.Object |
execute(MailAdapter mail)
|
Arguments |
getArguments()
Returns the arguments. |
Block |
getBlock()
Returns the block. |
java.lang.String |
getName()
Returns the name. |
static ExecutableCommand |
lookup(java.lang.String name)
Looks up an executable command with the given name. |
protected void |
setArguments(Arguments arguments)
Sets the arguments. |
protected void |
setBlock(Block block)
Sets the block. |
protected void |
setName(java.lang.String name)
Sets the name. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Command(java.lang.String name, Arguments arguments, Block block, SieveContext context)
name
- arguments
- block
- Method Detail |
public static ExecutableCommand lookup(java.lang.String name) throws LookupException
name
- not null
ExecutableCommand
, not null
LookupException
- if the command is not availablepublic java.lang.String getName()
protected void setName(java.lang.String name)
name
- The name to setpublic java.lang.String toString()
Object.toString()
public Arguments getArguments()
public Block getBlock()
protected void setArguments(Arguments arguments)
arguments
- The arguments to setprotected void setBlock(Block block)
block
- The block to setpublic java.lang.Object execute(MailAdapter mail) throws SieveException
execute
in interface Executable
SieveException
Executable.execute(MailAdapter)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |