org.apache.jsieve
Class Block

java.lang.Object
  extended by org.apache.jsieve.Block
All Implemented Interfaces:
Executable

public class Block
extends java.lang.Object
implements Executable

A parsed representation of the RFC3028 BNF...

block = "{" commands "}"


Constructor Summary
Block(Commands commands)
          Constructor for Block.
 
Method Summary
 java.lang.Object execute(MailAdapter mail, SieveContext context)
           
 Commands getChildren()
          Returns the commands.
protected  void setChildren(Commands commands)
          Sets the commands.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Block

public Block(Commands commands)
Constructor for Block.

Parameters:
commands -
Method Detail

getChildren

public Commands getChildren()
Returns the commands.

Returns:
Commands

setChildren

protected void setChildren(Commands commands)
Sets the commands.

Parameters:
commands - The commands to set

execute

public java.lang.Object execute(MailAdapter mail,
                                SieveContext context)
                         throws SieveException
Specified by:
execute in interface Executable
Throws:
SieveException
See Also:
Executable.execute(MailAdapter, SieveContext)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2008-2009 The Apache Software Foundation. All Rights Reserved.