gov.llnl.babel.ast
Class SplicerBlock

java.lang.Object
  extended by gov.llnl.babel.ast.ASTNode
      extended by gov.llnl.babel.ast.SplicerBlock

public class SplicerBlock
extends ASTNode


Field Summary
protected  SplicerImplList d_impl
          The container of the list of implementation line(s).
protected  java.lang.String d_location
          The target location of the splicer block (e.g., "header", "source")
protected  java.lang.String d_name
          The name (extension) associated with the splicer block
 
Fields inherited from class gov.llnl.babel.ast.ASTNode
ILLEGAL_NODEID
 
Constructor Summary
SplicerBlock(ParseTreeNode src, ASTNode parent)
           
SplicerBlock(ParseTreeNode src, ASTNode parent, java.lang.String loc, java.lang.String name)
           
SplicerBlock(ParseTreeNode src, ASTNode parent, java.lang.String loc, java.lang.String name, java.lang.String impl)
           
 
Method Summary
 java.lang.Object accept(Visitor v, java.lang.Object data)
          implements "Visitor Pattern"
 boolean addDefaultImpl()
           
 boolean addSplicerImpl(SplicerImpl impl)
           
 boolean addSplicerImpl(java.lang.String impl)
           
static java.lang.String getDefaultCommentText()
           
 java.lang.String getLocation()
           
 java.lang.String getName()
           
 SplicerImplList getSplicerImplList()
           
 
Methods inherited from class gov.llnl.babel.ast.ASTNode
getFilename, getFirstToken, getLastToken, getNodeId, getParent, getParseTreeNode, getSymbolTableEntry, setFirstToken, setLastToken, setNodeId, setParent, setParseTreeNode, setSymbolTableEntry
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

d_location

protected java.lang.String d_location
The target location of the splicer block (e.g., "header", "source")


d_name

protected java.lang.String d_name
The name (extension) associated with the splicer block


d_impl

protected SplicerImplList d_impl
The container of the list of implementation line(s).

Constructor Detail

SplicerBlock

public SplicerBlock(ParseTreeNode src,
                    ASTNode parent)

SplicerBlock

public SplicerBlock(ParseTreeNode src,
                    ASTNode parent,
                    java.lang.String loc,
                    java.lang.String name)

SplicerBlock

public SplicerBlock(ParseTreeNode src,
                    ASTNode parent,
                    java.lang.String loc,
                    java.lang.String name,
                    java.lang.String impl)
Method Detail

getLocation

public java.lang.String getLocation()

getName

public java.lang.String getName()

addSplicerImpl

public boolean addSplicerImpl(java.lang.String impl)

addSplicerImpl

public boolean addSplicerImpl(SplicerImpl impl)

addDefaultImpl

public boolean addDefaultImpl()

getSplicerImplList

public SplicerImplList getSplicerImplList()

accept

public java.lang.Object accept(Visitor v,
                               java.lang.Object data)
Description copied from class: ASTNode
implements "Visitor Pattern"

Specified by:
accept in class ASTNode
Parameters:
v - The visitor class
data - Optional extra data
Returns:
Optional extra data

getDefaultCommentText

public static java.lang.String getDefaultCommentText()