Uses of Interface
org.clafer.frontend.Ir.Node

Packages that use Ir.Node
Package
Description
This package provides the Java frontend of Clafer: a port of the Clafer compiler that reads .cfr models without the Haskell compiler.
  • Uses of Ir.Node in org.clafer.frontend

    Subinterfaces of Ir.Node in org.clafer.frontend
    Modifier and Type
    Interface
    Description
    static interface 
    A declaration or constraint of a model or of a clafer.
    static interface 
    An expression.
    Classes in org.clafer.frontend that implement Ir.Node
    Modifier and Type
    Class
    Description
    static final record 
    The written bound of a top-level abstract clafer, which counts all its instances, rich: abstract Tools 3..6.
    static final record 
    An anchor, rich: initially p, at the birth of the context, or finally p, at its death.
    static final record 
    An assertion, assert [ exp ].
    static final record 
    A chain of one binary operator: a op b op c.
    static final record 
    A function of strings, concat(a, b), prefix(a, b) or suffix(a, b).
    static final record 
    A cardinality, low..high, or low..*.
    static final record 
    upcast(e, T) or downcast(e, T), as chocosolver's printer writes the casts of its analysis.
    static final record 
    A clafer: [abstract] [modifiers] gcard name [: super] [-> | ->> target] card [initializer] { elements }.
    static final record 
    connected(nodes, relation, directed).
    static final record 
    {[1, 2], [3, 4]} :: T * U, a constant set of chocosolver's printer: one row per column of the type.
    static final record 
    A constraint, [ exp ].
    static final record 
    A decimal as written, e.g., 19.99 or -0.5.
    static final record 
    The declarations of a quantifier, [disj] x; y : set.
    static final record 
    A double as written, with its exponent, e.g., 1.2e2.
    static final record 
    left.dref.
    static final record 
    An enumeration, rich: enum E = a | b, at the top level.
    static final record 
    if c then a else b, a formula or a set.
    static final record 
    An initializer, rich: = value, or := each value or := together value, with its clock written out (kbak/clafer-semantics#194).
    static final record 
    An integer, -3 with its sign.
    static final record 
    A navigation, left.right: the right is a name (a child relation), or in chocosolver's printing a relation or a parenthesized set.
    static final record 
    A model: its declarations and constraints in the order they were written, then its objectives and assertions, which the compiler prints at the end.
    static final record 
    A temporal modifier of a clafer, rich.
    static final record 
    A name as written: of a clafer, a variable, or a type.
    static final record 
    A name in an expression: a clafer, all its instances or, on the right of a navigation, its relation, or a variable.
    static final record 
    noclafer, the empty set.
    static final record 
    An objective, << max exp >> or << min exp >>.
    static final record 
    left.parent.
    static final record 
    A behavioral pattern of Dwyer et al.'
    static final record 
    q decls | body.
    static final record 
    A quantifier over a set, without variables: some x, no x, lone x, one x, all x.
    static final record 
    A reference: -> target, a set, or ->> target, a bag.
    static final record 
    dref(c) or parent(c), a relation of a clafer, as chocosolver's printer writes it.
    static final record 
    Constraints directly under the root, root { [ exp ] }, as chocosolver's AstPrinter prints a model of its Java API that has them; Clafer has none.
    static final record 
    A string literal as written, with its quotes and escapes.
    static final record 
    A temporal operator of the core: X, F, G, previous, once, historically on one formula, U, W, since, triggered between two.
    static final record 
    this.
    static final record 
    A transition, rich: a --> b, a -[g]-> b, a -->> b or a -[g]->> b, whose target may be a chain of transitions.
    static final record 
    A prefix operator.
    Methods in org.clafer.frontend that return types with arguments of type Ir.Node
    Modifier and Type
    Method
    Description
    static List<Ir.Node>
    Core.children(Ir.Node node)
     
     
    static List<Ir.Node>
    Core.richNodes(Ir.Model model)
     
    Methods in org.clafer.frontend with parameters of type Ir.Node
    Modifier and Type
    Method
    Description
    static List<Ir.Node>
    Core.children(Ir.Node node)
     
    static String
    Core.describe(Ir.Node node)