CQL::PrefixNode(3pm)

πŸ“¦
version 1.13 Β· 2 versions
  • 1.13 Β· debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking (latest)
  • 1.13 Β· ubuntu jammy
, in debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ’– CQL::PrefixNode πŸ’–

okay so bestie, welcome to CQL::PrefixNode β€” this is a lil module from the User Contributed Perl Documentation collection and it's literally here to represent a prefix node in a CQL parse tree. that's the whole vibe. it's giving structural, it's giving tree-branch, it's giving "i hold the mapping, you hold the vibes" πŸŽ€


✨ SYNOPSIS ✨

here's how you summon one, no cap:

use CQL::PrefixNode;
my $prefix = CQL::PrefixNode->new(
    name        => '',
    identifier  => '',
    subtree     => $node
);

see? constructor, three args, she's ready. πŸ’…


🌸 DESCRIPTION 🌸

bestie... there is genuinely nothing here. the DESCRIPTION section is empty. the manpage just skips straight from the synopsis to the methods. it's giving mysterious, it's giving "read the methods, iykyk". so that's what we're doing πŸ‘‘


πŸ¦‹ METHODS πŸ¦‹

πŸ’œ new()

creates a brand new CQL::PrefixNode, and the way it works is it induces a mapping from the qualifier-set name you specify over to the identifier you specify β€” and it does that across the whole subtree you hand it. so: name ➑️ identifier, stretched over subtree. slay. ✨

πŸ’œ getPrefix()

gets you the prefix. that's it, that's the method. 🫢

πŸ’œ getSubtree()

gets you the subtree back. return to sender, iconic behaviour. πŸ’–

πŸ’œ toCQL()

spits it out in CQL. periodt. πŸ”₯

πŸ’œ toXCQL()

spits it out in XCQL instead. two formats, two methods, both ate. πŸ‘‘


heads up bestie: the manpage doesn't spell out what the getters return or what the to-whatever methods hand back exactly β€” so i'm not gonna invent lore. read the source if you need the deep cuts, fr fr. 🧚

perl v5.36.0 🌈 2022-12-11 β€” and that's the whole page, babes. that date and that version are the official receipts, so if you're citing this in a bug report, there ya go πŸ’– mwah, go parse some trees πŸŽ€πŸ’…πŸ¦‹

πŸ“¦ where this page comes from