This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package lut; | |
import junit.framework.TestCase; | |
import java.util.HashMap; | |
import java.util.Map; | |
public class LutBuilderTest extends TestCase { | |
/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package lut; | |
import org.jdraft._class; | |
import org.jdraft._method; | |
import org.jdraft.pattern.$case; | |
import org.jdraft.pattern.$method; | |
import org.jdraft.runtime._runtime; | |
import org.jdraft.text.Stencil; | |
import org.jdraft.text.Translator; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package use.jdraft.lut; | |
import java.util.HashMap; | |
import java.util.Map; | |
import junit.framework.TestCase; | |
public class LutBuilderTest extends TestCase { | |
//this will house the Lut |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package use.jdraft.lut; | |
import java.util.Map; | |
import org.mrcode.Translator; | |
import org.mrcode.java.Stmt; | |
import org.mrcode.java._class; | |
import org.mrcode.java._method; | |
import org.mrcode.java.pattern.$case; | |
import org.mrcode.java.pattern.$method; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package use.jdraft.lut; | |
/** | |
* Realized Lookup Table (Lut) | |
* Switch lookup table | |
* | |
* @author Eric | |
* | |
*/ | |
public interface Lut { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package test.othertools; | |
import junit.framework.TestCase; | |
import org.jdraft._method; | |
import org.jdraft.pattern.$typeRef; | |
/** | |
* Luca Molteni presented an example at the Voxxed Days Ticino 2019 | |
* https://youtu.be/1pSj6OQsq9k?list=PLRsbF2sD7JVorYibvQrrG34UQ6YE3PaVP&t=2214 | |
* replaced using jdraft API |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package test.othertools; | |
import junit.framework.TestCase; | |
import org.jdraft._class; | |
import org.jdraft._method; | |
import org.jdraft.pattern.$method; | |
import org.jdraft.runtime._proxy; | |
/** | |
* A Rewrite taken from the presentation at Voxxed Days Ticino 2019 by Luca Molteni |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.jdraft.*; | |
import org.jdraft.adhoc.*; | |
import org.jdraft.macro.*; | |
import java.net.UUID; | |
public class BuildAndUseTest extends TestCase { | |
public void testBuildAndUseModel(){ | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.jdraft.mr; | |
import com.github.javaparser.*; | |
import com.github.javaparser.ast.CompilationUnit; | |
import com.github.javaparser.ast.Node; | |
import com.github.javaparser.utils.PositionUtils; | |
import junit.framework.TestCase; | |
import org.jdraft._field; | |
import org.jdraft._method; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.squareup.javapoet.adhoc; | |
import com.squareup.javapoet.JavaFile; | |
import run.adhoc.*; | |
/** | |
* Adapts JavaPoet's {@link JavaFile} code model to the {@link javax.tools.JavaCompiler} | |
* infrastructure through Adhocs {@link CodeModelFile}. We want to reduce the | |
* friction for compiling / loading and using the Java source code models | |
* |
NewerOlder