~ubuntu-branches/ubuntu/vivid/nqp/vivid-proposed

« back to all changes in this revision

Viewing changes to src/vm/jvm/runtime/org/perl6/nqp/sixmodel/ContainerSpec.java

  • Committer: Package Import Robot
  • Author(s): Alessandro Ghedini
  • Date: 2013-11-01 12:09:18 UTC
  • mfrom: (1.1.4)
  • Revision ID: package-import@ubuntu.com-20131101120918-kx51sl0sxl3exsxi
Tags: 2013.10-1
* New upstream release
* Bump versioned (Build-)Depends on parrot
* Update patches
* Install new README.pod
* Fix vcs-field-not-canonical
* Do not install rubyish examples
* Do not Depends on parrot-devel anymore
* Add 07_disable-serialization-tests.patch

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
package org.perl6.nqp.sixmodel;
 
2
import org.perl6.nqp.runtime.ThreadContext;
 
3
 
 
4
/**
 
5
 * A scalar container has a ContainerSpec hung off its STable. It should be a
 
6
 * subclass of this abstract base class.
 
7
 */
 
8
public abstract class ContainerSpec {
 
9
    /* Fetches a value out of a container. Used for decontainerization. */
 
10
    public abstract SixModelObject fetch(ThreadContext tc, SixModelObject cont);
 
11
    
 
12
    /* Stores a value in a container. Used for assignment. */
 
13
    public abstract void store(ThreadContext tc, SixModelObject cont, SixModelObject obj);
 
14
    
 
15
    /* Stores a value in a container, without any checking of it (this
 
16
     * assumes an optimizer or something else already did it). Used for
 
17
     * assignment. */
 
18
    public abstract void storeUnchecked(ThreadContext tc, SixModelObject cont, SixModelObject obj);
 
19
    
 
20
    /* Name of this container specification. */
 
21
    public abstract String name();
 
22
    
 
23
    /* Serializes the container data, if any. */
 
24
    public abstract void serialize(ThreadContext tc, STable st, SerializationWriter writer);
 
25
    
 
26
    /* Deserializes the container data, if any. */
 
27
    public abstract void deserialize(ThreadContext tc, STable st, SerializationReader reader);
 
28
}