Uses of Record Class
org.clafer.frontend.SourceSpan
Packages that use SourceSpan
Package
Description
This package provides the Alloy 6 code of a temporal model, as
clafer -m alloy writes it: a port of the Clafer compiler's
AlloyLtl generator, with the mapping of the positions in the Alloy
code back to the model's constraints.This package provides the Alloy backend of the solution loop, for temporal
models: a port of claferIG that runs Alloy 6.2.0 in the same JVM, finds
the traces of a model, reads them from Alloy's XML, and computes unsat
cores and their near-misses.
This package provides the assertions of a model: a boolean expression of the
AST that every instance should satisfy, with where it is in the source model.
This package provides the language for building Clafer AST.
This package provides the Java frontend of Clafer: a port of the Clafer
compiler that reads
.cfr models without the Haskell compiler.This package provides
clafer-ls, the Clafer language server (LSP),
on Eclipse LSP4J: JSON-RPC over stdin and stdout.This package provides classes for building the objective.
-
Uses of SourceSpan in org.clafer.alloy
Methods in org.clafer.alloy that return SourceSpanModifier and TypeMethodDescriptionAlloyGenerator.Assertion.span()Returns the value of thespanrecord component.AlloyGenerator.Mapped.span()Returns the value of thespanrecord component.Constructors in org.clafer.alloy with parameters of type SourceSpanModifierConstructorDescriptionAssertion(String name, SourceSpan span) Creates an instance of aAssertionrecord class.Mapped(long line, long column, long endLine, long endColumn, AlloyGenerator.Kind kind, String clafer, SourceSpan span) Creates an instance of aMappedrecord class. -
Uses of SourceSpan in org.clafer.alloy.solve
Methods in org.clafer.alloy.solve that return SourceSpanModifier and TypeMethodDescriptionConstraints.ConstraintInfo.pos()Returns the value of theposrecord component.Constructors in org.clafer.alloy.solve with parameters of type SourceSpanModifierConstructorDescriptionConstraintInfo(SourceSpan pos, String syntax, String position, int fileLine) Creates an instance of aConstraintInforecord class. -
Uses of SourceSpan in org.clafer.assertion
Methods in org.clafer.assertion that return SourceSpanModifier and TypeMethodDescriptionAssertion.getSpan()Returns where the assertion is in the source model.Constructors in org.clafer.assertion with parameters of type SourceSpan -
Uses of SourceSpan in org.clafer.ast
Methods in org.clafer.ast that return SourceSpanModifier and TypeMethodDescriptionAstClafer.getSpan()Returns where this Clafer is declared in the source model.AstConstraint.getSpan()Methods in org.clafer.ast with parameters of type SourceSpanModifier and TypeMethodDescriptionAstClafer.addConstraint(AstBoolExpr expr, SourceSpan span) Add a new constraint under this Clafer.AstModel.addConstraint(AstBoolExpr expr, SourceSpan span) AstPrimClafer.addConstraint(AstBoolExpr constraint, SourceSpan span) AstAbstractClafer.at(SourceSpan span) AstClafer.at(SourceSpan span) Set where this Clafer is declared in the source model.AstConcreteClafer.at(SourceSpan span) Constructors in org.clafer.ast with parameters of type SourceSpanModifierConstructorDescriptionAstConstraint(AstClafer context, AstBoolExpr expr, boolean soft, SourceSpan span) -
Uses of SourceSpan in org.clafer.frontend
Methods in org.clafer.frontend that return SourceSpanModifier and TypeMethodDescriptionstatic SourceSpanSourceSpan.at(int line, int column) Symbols.ClaferSymbol.nameSpan()Diagnostic.span()Returns the value of thespanrecord component.Ir.AbstractMultiplicity.span()Returns the value of thespanrecord component.Ir.Anchor.span()Returns the value of thespanrecord component.Ir.Assertion.span()Returns the value of thespanrecord component.Ir.Binary.span()Returns the value of thespanrecord component.Ir.Call.span()Returns the value of thespanrecord component.Ir.Card.span()Returns the value of thespanrecord component.Ir.Cast.span()Returns the value of thespanrecord component.Ir.ClaferDecl.span()Returns the value of thespanrecord component.Ir.Connected.span()Returns the value of thespanrecord component.Ir.ConstantSet.span()Returns the value of thespanrecord component.Ir.Constraint.span()Returns the value of thespanrecord component.Ir.DecimalLit.span()Returns the value of thespanrecord component.Ir.Decl.span()Returns the value of thespanrecord component.Ir.DoubleLit.span()Returns the value of thespanrecord component.Ir.Dref.span()Returns the value of thespanrecord component.Ir.EnumDecl.span()Returns the value of thespanrecord component.Ir.IfThenElse.span()Returns the value of thespanrecord component.Ir.Initializer.span()Returns the value of thespanrecord component.Ir.IntLit.span()Returns the value of thespanrecord component.Ir.Join.span()Returns the value of thespanrecord component.Ir.Model.span()Returns the value of thespanrecord component.Ir.Modifier.span()Returns the value of thespanrecord component.Ir.Name.span()Returns the value of thespanrecord component.Ir.NameExp.span()Returns the value of thespanrecord component.Ir.NoClafer.span()Returns the value of thespanrecord component.Ir.Node.span()Ir.Objective.span()Returns the value of thespanrecord component.Ir.ParentOf.span()Returns the value of thespanrecord component.Ir.Pattern.span()Returns the value of thespanrecord component.Ir.Quantified.span()Returns the value of thespanrecord component.Ir.QuantifiedSet.span()Returns the value of thespanrecord component.Ir.RefDecl.span()Returns the value of thespanrecord component.Ir.RelationOf.span()Returns the value of thespanrecord component.Ir.RootBlock.span()Returns the value of thespanrecord component.Ir.StringLit.span()Returns the value of thespanrecord component.Ir.Temporal.span()Returns the value of thespanrecord component.Ir.This.span()Returns the value of thespanrecord component.Ir.Transition.span()Returns the value of thespanrecord component.Ir.Unary.span()Returns the value of thespanrecord component.Symbols.Reference.span()Returns the value of thespanrecord component.Syntax.Anchor.span()Returns the value of thespanrecord component.Syntax.Assertion.span()Returns the value of thespanrecord component.Syntax.Binary.span()Returns the value of thespanrecord component.Syntax.CardNum.span()Returns the value of thespanrecord component.Syntax.CardSymbol.span()Returns the value of thespanrecord component.Syntax.Clafer.span()Returns the value of thespanrecord component.Syntax.ClaferId.span()Returns the value of thespanrecord component.Syntax.ClaferTransition.span()Returns the value of thespanrecord component.Syntax.ClaferUse.span()Returns the value of thespanrecord component.Syntax.Constraint.span()Returns the value of thespanrecord component.Syntax.Decl.span()Returns the value of thespanrecord component.Syntax.Elements.span()Returns the value of thespanrecord component.Syntax.EnumDecl.span()Returns the value of thespanrecord component.Syntax.Goal.span()Returns the value of thespanrecord component.Syntax.GroupKeyword.span()Returns the value of thespanrecord component.Syntax.Ident.span()Returns the value of thespanrecord component.Syntax.IfThenElse.span()Returns the value of thespanrecord component.Syntax.Init.span()Returns the value of thespanrecord component.Syntax.Let.span()Returns the value of thespanrecord component.Syntax.Literal.span()Returns the value of thespanrecord component.Syntax.Model.span()Returns the value of thespanrecord component.Syntax.Name.span()Returns the value of thespanrecord component.Syntax.NCard.span()Returns the value of thespanrecord component.Syntax.Node.span()Syntax.Pattern.span()Returns the value of thespanrecord component.Syntax.PatternScope.span()Returns the value of thespanrecord component.Syntax.QuantExp.span()Returns the value of thespanrecord component.Syntax.Quantified.span()Returns the value of thespanrecord component.Syntax.Reference.span()Returns the value of thespanrecord component.Syntax.Super.span()Returns the value of thespanrecord component.Syntax.TempModifier.span()Returns the value of thespanrecord component.Syntax.TransArrow.span()Returns the value of thespanrecord component.Syntax.TransitionExp.span()Returns the value of thespanrecord component.Syntax.Unary.span()Returns the value of thespanrecord component.Token.span()Returns the value of thespanrecord component.Methods in org.clafer.frontend that return types with arguments of type SourceSpanMethod parameters in org.clafer.frontend with type arguments of type SourceSpanModifier and TypeMethodDescriptionstatic Ir.ModelToCore.toCore(Ir.Model model, Function<SourceSpan, Ir.Position> position, Set<SourceSpan> clocklessValues) The lowering of a model compiled from its source, whose provenance names the positions in the source's files, asclafer -m clafer --core --record-provenance P.cfrdoes.static Ir.ModelToCore.toCore(Ir.Model model, Function<SourceSpan, Ir.Position> position, Set<SourceSpan> clocklessValues) The lowering of a model compiled from its source, whose provenance names the positions in the source's files, asclafer -m clafer --core --record-provenance P.cfrdoes.Constructors in org.clafer.frontend with parameters of type SourceSpanModifierConstructorDescriptionAbstractMultiplicity(SourceSpan span, Ir.Card card) Creates an instance of aAbstractMultiplicityrecord class.Anchor(SourceSpan span, boolean initially, Ir.Exp body) Creates an instance of aAnchorrecord class.Anchor(SourceSpan span, boolean initially, Syntax.Exp exp) Creates an instance of aAnchorrecord class.Assertion(SourceSpan span, Ir.Exp exp, Optional<Ir.Origin> origin) Creates an instance of aAssertionrecord class.Assertion(SourceSpan span, List<Syntax.Exp> exps) Creates an instance of aAssertionrecord class.Binary(SourceSpan span, Ir.BinaryOp op, List<Ir.Exp> operands) Creates an instance of aBinaryrecord class.Binary(SourceSpan span, Syntax.BinaryOp op, Syntax.Exp left, Syntax.Exp right) Creates an instance of aBinaryrecord class.Call(SourceSpan span, String function, List<Ir.Exp> args) Creates an instance of aCallrecord class.Card(SourceSpan span, int low, int high) Creates an instance of aCardrecord class.CardNum(SourceSpan span, String number) Creates an instance of aCardNumrecord class.CardSymbol(SourceSpan span, String symbol) Creates an instance of aCardSymbolrecord class.Cast(SourceSpan span, boolean up, Ir.Exp base, List<Ir.Name> type) Creates an instance of aCastrecord class.Clafer(SourceSpan span, boolean isAbstract, List<Syntax.TempModifier> modifiers, Optional<Syntax.GCard> groupCard, Syntax.Ident name, Optional<Syntax.Super> superClafer, Optional<Syntax.Reference> reference, Optional<Syntax.Card> card, Optional<Syntax.Init> init, Optional<Syntax.ClaferTransition> transition, Optional<Syntax.Elements> elements) Creates an instance of aClaferrecord class.ClaferDecl(SourceSpan span, boolean isAbstract, List<Ir.Modifier> modifiers, Ir.Card groupCard, Ir.Name name, Optional<Ir.Name> superName, Optional<Ir.RefDecl> ref, Ir.Card card, Optional<Ir.AbstractMultiplicity> abstractMultiplicity, Optional<Ir.Initializer> initializer, List<Ir.Element> elements, Optional<Ir.Origin> origin) Creates an instance of aClaferDeclrecord class.ClaferId(SourceSpan span, Syntax.Name name) Creates an instance of aClaferIdrecord class.ClaferTransition(SourceSpan span, Syntax.TransArrow arrow, Syntax.Exp exp) Creates an instance of aClaferTransitionrecord class.ClaferUse(SourceSpan span, Syntax.Name name, Optional<Syntax.Card> card, Optional<Syntax.Elements> elements) Creates an instance of aClaferUserecord class.Connected(SourceSpan span, Ir.Exp nodes, Ir.Exp relation, boolean directed) Creates an instance of aConnectedrecord class.ConstantSet(SourceSpan span, List<List<Integer>> rows, List<Ir.Name> type) Creates an instance of aConstantSetrecord class.Constraint(SourceSpan span, Ir.Exp exp, Optional<Ir.Origin> origin) Creates an instance of aConstraintrecord class.Constraint(SourceSpan span, List<Syntax.Exp> exps) Creates an instance of aConstraintrecord class.DecimalLit(SourceSpan span, String text) Creates an instance of aDecimalLitrecord class.Decl(SourceSpan span, boolean disjoint, List<Ir.Name> locals, Ir.Exp set) Creates an instance of aDeclrecord class.Decl(SourceSpan span, List<Syntax.Ident> locals, Syntax.Exp exp) Creates an instance of aDeclrecord class.Diagnostic(SourceSpan span, String message) Creates an instance of aDiagnosticrecord class.DoubleLit(SourceSpan span, String text) Creates an instance of aDoubleLitrecord class.Dref(SourceSpan span, Ir.Exp left) Creates an instance of aDrefrecord class.Elements(SourceSpan span, List<Syntax.Element> elements) Creates an instance of aElementsrecord class.EnumDecl(SourceSpan span, Ir.Name name, List<Ir.Name> literals) Creates an instance of aEnumDeclrecord class.EnumDecl(SourceSpan span, Syntax.Ident name, List<Syntax.Ident> literals) Creates an instance of aEnumDeclrecord class.Goal(SourceSpan span, Syntax.GoalKind kind, List<Syntax.Exp> exps) Creates an instance of aGoalrecord class.GroupKeyword(SourceSpan span, String keyword) Creates an instance of aGroupKeywordrecord class.Ident(SourceSpan span, String text) Creates an instance of aIdentrecord class.IfThenElse(SourceSpan span, Ir.Exp condition, Ir.Exp then, Ir.Exp otherwise) Creates an instance of aIfThenElserecord class.IfThenElse(SourceSpan span, Syntax.Exp condition, Syntax.Exp then, Syntax.Exp otherwise) Creates an instance of aIfThenElserecord class.Init(SourceSpan span, Syntax.InitHow how, Syntax.Exp exp) Creates an instance of aInitrecord class.Initializer(SourceSpan span, Ir.InitKind kind, Ir.Exp value) Creates an instance of aInitializerrecord class.IntLit(SourceSpan span, long value) Creates an instance of aIntLitrecord class.Join(SourceSpan span, Ir.Exp left, Ir.Exp right) Creates an instance of aJoinrecord class.Let(SourceSpan span, Syntax.Ident local, Syntax.Exp value, Syntax.Exp body) Creates an instance of aLetrecord class.Literal(SourceSpan span, Syntax.LiteralKind kind, String text) Creates an instance of aLiteralrecord class.Model(SourceSpan span, Ir.Options options, List<Ir.Element> elements, List<Ir.Objective> objectives, List<Ir.Assertion> assertions) Creates an instance of aModelrecord class.Model(SourceSpan span, List<Syntax.Declaration> declarations) Creates an instance of aModelrecord class.Modifier(SourceSpan span, Ir.ModifierKind kind) Creates an instance of aModifierrecord class.Name(SourceSpan span, String text) Creates an instance of aNamerecord class.Name(SourceSpan span, List<Syntax.Ident> path) Creates an instance of aNamerecord class.NameExp(SourceSpan span, String name) Creates an instance of aNameExprecord class.NCard(SourceSpan span, String low, Optional<String> high) Creates an instance of aNCardrecord class.NoClafer(SourceSpan span) Creates an instance of aNoClaferrecord class.Objective(SourceSpan span, boolean maximize, Ir.Exp exp) Creates an instance of aObjectiverecord class.ParentOf(SourceSpan span, Ir.Exp left) Creates an instance of aParentOfrecord class.Pattern(SourceSpan span, Ir.PatternKind kind, Ir.PatternScope scope, List<Ir.Exp> args) Creates an instance of aPatternrecord class.Pattern(SourceSpan span, Syntax.PatternKind kind, List<Syntax.Exp> exps, Optional<Syntax.PatternScope> scope) Creates an instance of aPatternrecord class.PatternScope(SourceSpan span, Syntax.ScopeKind kind, List<Syntax.Exp> exps) Creates an instance of aPatternScoperecord class.QuantExp(SourceSpan span, Syntax.Quant quant, Syntax.Exp exp) Creates an instance of aQuantExprecord class.Quantified(SourceSpan span, Ir.Quantifier quantifier, List<Ir.Decl> decls, Ir.Exp body) Creates an instance of aQuantifiedrecord class.Quantified(SourceSpan span, Syntax.Quant quant, boolean disj, Syntax.Decl decl, Syntax.Exp body) Creates an instance of aQuantifiedrecord class.QuantifiedSet(SourceSpan span, Ir.Quantifier quantifier, Ir.Exp set) Creates an instance of aQuantifiedSetrecord class.RefDecl(SourceSpan span, boolean isSet, Ir.Name target) Creates an instance of aRefDeclrecord class.Reference(SourceSpan span, boolean isSet, Syntax.Exp target, Optional<Symbols.ClaferSymbol> clafer, Optional<String> primitive) Creates an instance of aReferencerecord class.Reference(SourceSpan span, boolean bag, Syntax.Exp exp) Creates an instance of aReferencerecord class.RelationOf(SourceSpan span, boolean isDref, Ir.Name clafer) Creates an instance of aRelationOfrecord class.RootBlock(SourceSpan span, List<Ir.Constraint> constraints) Creates an instance of aRootBlockrecord class.StringLit(SourceSpan span, String text) Creates an instance of aStringLitrecord class.Super(SourceSpan span, Syntax.Exp exp) Creates an instance of aSuperrecord class.TempModifier(SourceSpan span, Syntax.TempModifierKind kind) Creates an instance of aTempModifierrecord class.Temporal(SourceSpan span, Ir.TemporalOp op, List<Ir.Exp> args) Creates an instance of aTemporalrecord class.This(SourceSpan span) Creates an instance of aThisrecord class.Token(TokenKind kind, String text, SourceSpan span) Creates an instance of aTokenrecord class.TransArrow(SourceSpan span, boolean sync, Optional<Syntax.Exp> guard) Creates an instance of aTransArrowrecord class.Transition(SourceSpan span, boolean sync, Ir.Exp from, Optional<Ir.Exp> guard, Ir.Exp to) Creates an instance of aTransitionrecord class.TransitionExp(SourceSpan span, Syntax.Exp from, Syntax.TransArrow arrow, Syntax.Exp to) Creates an instance of aTransitionExprecord class.Unary(SourceSpan span, Ir.UnaryOp op, Ir.Exp arg) Creates an instance of aUnaryrecord class.Unary(SourceSpan span, Syntax.UnaryOp op, Syntax.Exp exp) Creates an instance of aUnaryrecord class.Constructor parameters in org.clafer.frontend with type arguments of type SourceSpanModifierConstructorDescriptionNames(List<Symbols.ClaferSymbol> clafers, Map<SourceSpan, Symbols.ClaferSymbol> uses) Creates an instance of aNamesrecord class. -
Uses of SourceSpan in org.clafer.lsp
Methods in org.clafer.lsp with parameters of type SourceSpanModifier and TypeMethodDescriptionorg.eclipse.lsp4j.RangePositions.toLsp(SourceSpan span) org.eclipse.lsp4j.RangePositions.toVisibleLsp(SourceSpan span) -
Uses of SourceSpan in org.clafer.objective
Methods in org.clafer.objective that return SourceSpanModifier and TypeMethodDescriptionObjective.getSpan()Returns where the objective is in the source model.Methods in org.clafer.objective with parameters of type SourceSpanModifier and TypeMethodDescriptionstatic ObjectiveObjective.maximize(AstSetExpr expression, SourceSpan span) Create a new maximization objective.static ObjectiveObjective.minimize(AstSetExpr expression, SourceSpan span) Create a new minimization objective.