EMMA Coverage Report (generated Thu Jan 20 11:39:44 EST 2011)
[all classes][com.hammurapi.common.concurrent]

COVERAGE SUMMARY FOR SOURCE FILE [InvocationImpl.java]

nameclass, %method, %block, %line, %
InvocationImpl.java100% (1/1)40%  (4/10)29%  (22/77)40%  (10/25)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class InvocationImpl100% (1/1)40%  (4/10)29%  (22/77)40%  (10/25)
InvocationImpl (Invocation): void 0%   (0/1)0%   (0/24)0%   (0/5)
clone (): Object 0%   (0/1)0%   (0/17)0%   (0/4)
getContext (): Context 0%   (0/1)0%   (0/3)0%   (0/1)
getPropertySet (): PropertySet 0%   (0/1)0%   (0/3)0%   (0/1)
setArguments (Object []): void 0%   (0/1)0%   (0/4)0%   (0/2)
setContext (Context): void 0%   (0/1)0%   (0/4)0%   (0/2)
InvocationImpl (): void 100% (1/1)100% (3/3)100% (2/2)
InvocationImpl (Object [], PropertySet, Context): void 100% (1/1)100% (12/12)100% (5/5)
getArguments (): Object [] 100% (1/1)100% (3/3)100% (1/1)
setPropertySet (PropertySet): void 100% (1/1)100% (4/4)100% (2/2)

1package com.hammurapi.common.concurrent;
2 
3import java.util.Arrays;
4 
5import com.hammurapi.common.Context;
6 
7public class InvocationImpl<K> implements Invocation<K>, Cloneable {
8 
9        private Object[] arguments;
10        private PropertySet<K> propertySet;
11        private Context context;
12        
13        public InvocationImpl() {
14                
15        }
16 
17        public InvocationImpl(Invocation<K> source) {
18                arguments = source.getArguments()==null ? null : Arrays.copyOf(source.getArguments(), source.getArguments().length);
19                propertySet = source.getPropertySet();
20                context = source.getContext();
21        }
22        
23        public InvocationImpl(Object[] arguments, PropertySet<K> propertySet, Context context) {
24                super();
25                this.arguments = arguments;
26                this.propertySet = propertySet;
27                this.context = context;
28        }
29 
30        @Override
31        public Object[] getArguments() {
32                return arguments;
33        }
34 
35        @Override
36        public PropertySet<K> getPropertySet() {
37                return propertySet;
38        }
39 
40        @Override
41        public Context getContext() {
42                return context;
43        }
44        
45        @Override
46        public Object clone() throws CloneNotSupportedException {
47                InvocationImpl<K> ret = (InvocationImpl<K>) super.clone();
48                if (arguments!=null) {
49                        ret.setArguments(Arrays.copyOf(arguments, arguments.length));
50                }
51                return ret;
52        }
53 
54        public void setArguments(Object[] arguments) {
55                this.arguments = arguments;
56        }
57 
58        public void setPropertySet(PropertySet<K> propertySet) {
59                this.propertySet = propertySet;
60        }
61 
62        public void setContext(Context context) {
63                this.context = context;
64        }
65        
66        
67 
68}

[all classes][com.hammurapi.common.concurrent]
EMMA 2.0.5312 EclEmma Fix 2 (C) Vladimir Roubtsov