EMMA Coverage Report (generated Mon Dec 10 12:01:41 GMT 2007)
[all classes][uk.co.zonetora.fj.model]

COVERAGE SUMMARY FOR SOURCE FILE [MethodInvocation.java]

nameclass, %method, %block, %line, %
MethodInvocation.java100% (1/1)100% (6/6)100% (57/57)100% (15/15)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class MethodInvocation100% (1/1)100% (6/6)100% (57/57)100% (15/15)
MethodInvocation (Term, MethodName, List): void 100% (1/1)100% (12/12)100% (5/5)
getAllReferencedClassNames (): Set 100% (1/1)100% (29/29)100% (5/5)
getArguments (): List 100% (1/1)100% (6/6)100% (1/1)
getMethodName (): MethodName 100% (1/1)100% (3/3)100% (1/1)
getPath (): Term 100% (1/1)100% (3/3)100% (1/1)
visit (TypeCheck): void 100% (1/1)100% (4/4)100% (2/2)

1package uk.co.zonetora.fj.model;
2 
3import java.util.ArrayList;
4import java.util.Deque;
5import java.util.HashSet;
6import java.util.List;
7import java.util.Set;
8 
9import uk.co.zonetora.fj.typecheck.TypeCheck;
10 
11public class MethodInvocation implements Term {
12 
13        private final Term path;
14        private final MethodName methodName;
15        private final List<Term> arguments;
16 
17        public MethodInvocation(Term path, MethodName methodName, List<Term> arguments) {
18                this.path = path;
19                this.methodName = methodName;
20                this.arguments = arguments;
21        }
22 
23        public Set<ClassName> getAllReferencedClassNames() {
24                Set<ClassName> allReferencedClassNames = new HashSet<ClassName>();
25                allReferencedClassNames.addAll(path.getAllReferencedClassNames());
26                for(Term t : arguments) {
27                        allReferencedClassNames.addAll(t.getAllReferencedClassNames());
28                }
29                return allReferencedClassNames;
30        }
31 
32    public void visit(TypeCheck check) {
33        check.appyRule(this);
34    }
35 
36    public Term getPath() {
37        return this.path;
38    }
39 
40    public MethodName getMethodName() {
41        return this.methodName;
42    }
43 
44    public List<Term> getArguments() {
45        return new ArrayList<Term>(this.arguments);
46    }
47}

[all classes][uk.co.zonetora.fj.model]
EMMA 2.0.5312 (C) Vladimir Roubtsov