gov.llnl.babel.ast

Class SplicerBlock


public class SplicerBlock
extends ASTNode

Field Summary

protected SplicerImplList
d_impl
The container of the list of implementation line(s).
protected String
d_location
The target location of the splicer block (e.g., "header", "source")
protected 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, String loc, String name)
SplicerBlock(ParseTreeNode src, ASTNode parent, String loc, String name, String impl)

Method Summary

Object
accept(Visitor v, Object data)
boolean
addDefaultImpl()
boolean
addSplicerImpl(String impl)
boolean
addSplicerImpl(SplicerImpl impl)
static String
getDefaultCommentText()
String
getLocation()
String
getName()
SplicerImplList
getSplicerImplList()

Methods inherited from class gov.llnl.babel.ast.ASTNode

accept, getFilename, getFirstToken, getLastToken, getNodeId, getParent, getParseTreeNode, getSymbolTableEntry, setFirstToken, setLastToken, setNodeId, setParent, setParseTreeNode, setSymbolTableEntry

Field Details

d_impl

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

d_location

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

d_name

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

Constructor Details

SplicerBlock

public SplicerBlock(ParseTreeNode src,
                    ASTNode parent)

SplicerBlock

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

SplicerBlock

public SplicerBlock(ParseTreeNode src,
                    ASTNode parent,
                    String loc,
                    String name,
                    String impl)

Method Details

accept

public Object accept(Visitor v,
                     Object data)
Overrides:
accept in interface ASTNode

addDefaultImpl

public boolean addDefaultImpl()

addSplicerImpl

public boolean addSplicerImpl(String impl)

addSplicerImpl

public boolean addSplicerImpl(SplicerImpl impl)

getDefaultCommentText

public static String getDefaultCommentText()

getLocation

public String getLocation()

getName

public String getName()

getSplicerImplList

public SplicerImplList getSplicerImplList()