souffle
2.0.2-371-g6315b36
|
Go to the documentation of this file.
36 class Attribute :
public Node {
38 Attribute(std::string
n, QualifiedName t, SrcLocation loc = {})
61 void print(std::ostream& os)
const override {
65 bool equal(
const Node& node)
const override {
66 const auto& other =
static_cast<const Attribute&
>(node);
Attribute(std::string n, QualifiedName t, SrcLocation loc={})
const std::string & getName() const
Return attribute name.
std::string name
Attribute name.
QualifiedName typeName
Type name.
void setTypeName(QualifiedName name)
Set type name.
void print(std::ostream &os) const override
Output to a given output stream.
const QualifiedName & getTypeName() const
Return type name.
bool equal(const Node &node) const override
Abstract equality check for two AST nodes.
Abstract class for syntactic elements in an input program.
Attribute * clone() const override
Create a clone (i.e.
const SrcLocation & getSrcLoc() const
Return source location of the Node.
Qualified Name class defines fully/partially qualified names to identify objects in components.