~ubuntu-branches/ubuntu/raring/babel/raring-proposed

« back to all changes in this revision

Viewing changes to compiler/gov/llnl/babel/ast/SplicerImplList.java

  • Committer: Bazaar Package Importer
  • Author(s): Adam C. Powell, IV
  • Date: 2008-08-01 07:56:58 UTC
  • mfrom: (3.1.2 intrepid)
  • Revision ID: james.westby@ubuntu.com-20080801075658-9ezcrbh8dcs8lg70
Tags: 1.2.0.dfsg-6
Added libparsifal-dev as dependency to libsidl-dev (closes: #483324).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
package gov.llnl.babel.ast;
 
2
 
 
3
import gov.llnl.babel.parsers.sidl2.ParseTreeNode;
 
4
import gov.llnl.babel.visitor.Visitor;
 
5
 
 
6
public class SplicerImplList extends NodeList {
 
7
 
 
8
  public SplicerImplList(ParseTreeNode src, ASTNode parent) {
 
9
    super(src, parent);
 
10
  }
 
11
 
 
12
  public boolean addSplicerImpl(SplicerImpl impl) { 
 
13
    return d_list.add(impl);
 
14
  }
 
15
 
 
16
  public boolean addSplicerImpl(String impl) { 
 
17
    return d_list.add(new SplicerImpl(impl));
 
18
  }
 
19
 
 
20
  public boolean addDefaultImpl() {
 
21
    return addSplicerImpl(getDefaultCommentText());
 
22
  }
 
23
 
 
24
  public NodeList cloneEmpty() {
 
25
    SplicerImplList newList = new SplicerImplList(getParseTreeNode(), getParent());
 
26
    return newList;
 
27
  }
 
28
 
 
29
  public Object accept(Visitor v, Object data) {
 
30
    return v.visitSplicerImplList(this,data);
 
31
  }
 
32
 
 
33
  public static String getDefaultCommentText() {
 
34
    return SplicerImpl.s_default_text;
 
35
  }
 
36
  
 
37
}