gov.llnl.babel.ast
Class SplicerBlock
java.lang.Object
gov.llnl.babel.ast.ASTNode
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 |
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 |
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).
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)
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 classdata
- Optional extra data
- Returns:
- Optional extra data
getDefaultCommentText
public static java.lang.String getDefaultCommentText()