|
|||||||||||||||||||
This license of Clover is provided to support the development of JBind only. Please visit http://www.thecortex.net/clover to obtain a licensed version of Clover. | |||||||||||||||||||
Source file | Conditionals | Statements | Methods | TOTAL | |||||||||||||||
ASTCompilationUnit.java | - | 100% | 100% | 100% |
|
1 |
/* |
|
2 |
* JBind |
|
3 |
* |
|
4 |
* Copyright (c) by Stefan Wachter. All rights reserved. |
|
5 |
* |
|
6 |
* Usage, modification, and redistribution is subject to license terms that are |
|
7 |
* available at 'http://www.jbind.org'. The JBind license is like the |
|
8 |
* 'Apache Software License V 1.1'. |
|
9 |
*/ |
|
10 |
package org.jbind.javaParser; |
|
11 |
|
|
12 |
import java.util.ArrayList; |
|
13 |
import java.util.List; |
|
14 |
|
|
15 |
public class ASTCompilationUnit { |
|
16 |
|
|
17 |
private List myTypeDeclarations = new ArrayList(); |
|
18 |
|
|
19 | 8 |
public ASTCompilationUnit() {} |
20 |
|
|
21 | 8 |
public void addTypeDeclaration(ASTTypeDeclaration aTypeDeclaration) { |
22 | 8 |
myTypeDeclarations.add(aTypeDeclaration); |
23 |
} |
|
24 |
|
|
25 | 8 |
public ASTTypeDeclaration getTypeDeclaration(int anIndex) { |
26 | 8 |
return (anIndex < myTypeDeclarations.size()) ? (ASTTypeDeclaration)myTypeDeclarations.get(anIndex) : null; |
27 |
} |
|
28 |
|
|
29 |
} |
|
30 |
|
|