mirror of
https://github.com/cincheo/jsweet.git
synced 2025-12-15 07:19:22 +00:00
update doc
This commit is contained in:
parent
28457fbf67
commit
d96e8af42f
@ -1634,7 +1634,7 @@ Here, we will step through how to tune the JSweet generation to generate strings
|
||||
First, create the `HelloWorldAdapter.java` file in the `jsweet_extension` directory at the root of your project. Copy and paste the following code in that file:
|
||||
|
||||
``` java
|
||||
class HelloWorldAdapter extends PrinterAdapter {
|
||||
public class HelloWorldAdapter extends PrinterAdapter {
|
||||
public HelloWorldAdapter(PrinterAdapter parent) {
|
||||
super(parent);
|
||||
addTypeMapping(java.util.Date.class.getName(), "string");
|
||||
|
||||
Binary file not shown.
@ -1648,7 +1648,7 @@ Here, we will step through how to tune the JSweet generation to generate strings
|
||||
First, create the \texttt{HelloWorldAdapter.java} file in the \texttt{jsweet\_extension} directory at the root of your project. Copy and paste the following code in that file:
|
||||
|
||||
\begin{lstlisting}[language=Java]
|
||||
class HelloWorldAdapter extends PrinterAdapter {
|
||||
public class HelloWorldAdapter extends PrinterAdapter {
|
||||
public HelloWorldAdapter(PrinterAdapter parent) {
|
||||
super(parent);
|
||||
addTypeMapping(java.util.Date.class.getName(), "string");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user