org.graffiti.plugins.scripting.delegates
Class BufferedCollectionDelegate

java.lang.Object
  extended by org.graffiti.plugins.scripting.delegate.ScriptingDelegate
      extended by org.graffiti.plugins.scripting.delegate.ReflectiveDelegate
          extended by org.graffiti.plugins.scripting.delegate.ObjectDelegate
              extended by org.graffiti.plugins.scripting.delegates.CollectionDelegate
                  extended by org.graffiti.plugins.scripting.delegates.BufferedCollectionDelegate
All Implemented Interfaces:
org.graffiti.plugins.scripting.delegate.Unwrappable<Collection<GraphElement>>

public class BufferedCollectionDelegate
extends CollectionDelegate
implements org.graffiti.plugins.scripting.delegate.Unwrappable<Collection<GraphElement>>

Author:
Andreas Gleißner

Field Summary
 
Fields inherited from class org.graffiti.plugins.scripting.delegate.ScriptingDelegate
UNDEFINED
 
Constructor Summary
BufferedCollectionDelegate(org.graffiti.plugins.scripting.Scope scope)
           
BufferedCollectionDelegate(org.graffiti.plugins.scripting.Scope scope, Collection<NodeDelegate> nodes, Collection<EdgeDelegate> edges)
           
BufferedCollectionDelegate(org.graffiti.plugins.scripting.Scope scope, GraphElementDelegate... elements)
           
 
Method Summary
 void clear()
          Clears this collection.
 boolean isEmpty()
          Returns if this collection delegate contains no GraphElementDelegates.
 int size()
           
 Collection<GraphElement> unwrap()
           
 
Methods inherited from class org.graffiti.plugins.scripting.delegates.CollectionDelegate
add, add, clone, contains, contains, count, get, getEdges, getIndices, getNodes, has, iterator, remove, remove, set, set, toString
 
Methods inherited from class org.graffiti.plugins.scripting.delegate.ObjectDelegate
createConstructor, createWrapper, get, getMemberInfo, getScope, has, put
 
Methods inherited from class org.graffiti.plugins.scripting.delegate.ReflectiveDelegate
addDynamicMemberInfo, delete, delete, getClassName, help, put
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BufferedCollectionDelegate

public BufferedCollectionDelegate(org.graffiti.plugins.scripting.Scope scope)

BufferedCollectionDelegate

public BufferedCollectionDelegate(org.graffiti.plugins.scripting.Scope scope,
                                  Collection<NodeDelegate> nodes,
                                  Collection<EdgeDelegate> edges)

BufferedCollectionDelegate

public BufferedCollectionDelegate(org.graffiti.plugins.scripting.Scope scope,
                                  GraphElementDelegate... elements)
Method Detail

clear

public void clear()
Description copied from class: CollectionDelegate
Clears this collection.

Specified by:
clear in class CollectionDelegate

isEmpty

public boolean isEmpty()
Description copied from class: CollectionDelegate
Returns if this collection delegate contains no GraphElementDelegates.

Specified by:
isEmpty in class CollectionDelegate
Returns:
true if this collection delegate contains no GraphElementDelegates.

size

public int size()
Specified by:
size in class CollectionDelegate

unwrap

public Collection<GraphElement> unwrap()
Specified by:
unwrap in interface org.graffiti.plugins.scripting.delegate.Unwrappable<Collection<GraphElement>>


Generated at 2012-05-30 11:01:25 PM CEST