19 "Can only assign from a java_qualifierst using the same namespace");
27 auto other = util_make_unique<java_qualifierst>(
ns);
29 return std::move(other);
46 auto &annotated_type = static_cast<const annotated_typet &>(src);
53 type_checked_cast<annotated_typet>(src).get_annotations() =
annotations;
59 auto jq = dynamic_cast<const java_qualifierst *>(&other);
63 jq->annotations.begin(),
64 jq->annotations.end(),
72 auto jq = dynamic_cast<const java_qualifierst *>(&other);
82 auto jq = dynamic_cast<const java_qualifierst *>(&other);
85 auto &other_a = jq->annotations;
88 if(std::find(other_a.begin(), other_a.end(), annotation) == other_a.end())
96 std::stringstream out;
100 out << annotation.get_type().subtype().get(ID_identifier);
102 if(!annotation.get_values().empty())
114 out <<
'"' << value.get_name() <<
'"' <<
'=';
Java-specific type qualifiers.
The type of an expression, extends irept.
virtual bool operator==(const qualifierst &other) const override
virtual void write(typet &src) const override
virtual std::unique_ptr< qualifierst > clone() const override
virtual std::string as_string() const override
virtual std::size_t count() const override
c_qualifierst & operator=(const c_qualifierst &other)
virtual void read(const typet &src) override
virtual bool operator==(const qualifierst &other) const override
virtual void clear() override
virtual void clear() override
virtual void read(const typet &src) override
virtual std::size_t count() const override
java_qualifierst & operator=(const java_qualifierst &other)
virtual std::string as_string() const override
virtual bool is_subset_of(const qualifierst &other) const override
virtual bool is_subset_of(const qualifierst &other) const override
virtual qualifierst & operator+=(const qualifierst &other) override
std::vector< java_annotationt > annotations
virtual qualifierst & operator+=(const qualifierst &other) override
virtual void write(typet &src) const override
std::string expr2java(const exprt &expr, const namespacet &ns)