package java
This package provides methods for making access to scala-isabelle possible from Java (or other non-Scala JVM languages).
It does not provide any new functionality but only various wrapper methods for cases where some of the methods in this library are hard to access from Java. (E.g., when a method expects Scala collections as input.)
For Scala methods that need but lack a wrapper, please file an issue.
- Source
- package.scala
- Alphabetic
- By Inheritance
- java
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- object JIsabelle
This object contains utility methods for invoking scala-isabelle methods from Java in cases where the original method is difficult to invoke from Java.
This object contains utility methods for invoking scala-isabelle methods from Java in cases where the original method is difficult to invoke from Java.
For Scala methods that need but lack a wrapper, please file an issue.
- object JPatterns
Java support for pattern matching terms and types using the java-patterns library.
Java support for pattern matching terms and types using the java-patterns library.
E.g., the following Java code will assign the name of the constant/free variable/schematic variable
term
toname
:import de.unruh.javapatterns.Capture; import static de.unruh.javapatterns.Pattern.capture; import static de.unruh.javapatterns.Patterns.Any; import static de.unruh.javapatterns.Match.match; import static de.unruh.isabelle.java.JPatterns.*; Capture<String> x = capture("x"); String name = match(term, Const(x,Any), () -> x, Free(x,Any), () -> x, Var(x,Any,Any), () -> x);
See de.unruh.javapatterns.Match for general instructions how to do pattern matching using the java-patterns library.
Patterns for terms are Const, App, Free, Var, Abs, Bound. Patterns for types are Type, TFree, TVar.