This file contains hidden or 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 quickstart.java; | |
| import varcode.java.langmodel._class; | |
| public class AdHocCode | |
| { | |
| public static void main( String[] args ) | |
| { | |
| _class _c = _class.of( "public class AdHoc" ) | |
| .method( "public String toString()", |
This file contains hidden or 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 quickstart.java; | |
| import varcode.java.adhoc.Export; | |
| import varcode.java.meta._Java; | |
| import varcode.java.meta._class; | |
| public class TailorExistingCode | |
| { | |
| public class Existing { | |
| public int count; |
This file contains hidden or 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 quickstart; | |
| import java.io.Serializable; | |
| import java.util.UUID; | |
| import varcode.java.Java; | |
| import varcode.java.adhoc.Export; | |
| import varcode.java.meta._class; | |
| /** | |
| * |
This file contains hidden or 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 usecase.model; | |
| import varcode.java.Java; | |
| import varcode.java.adhoc.Export; | |
| import varcode.java.model._interface; | |
| public class ModelInterface | |
| { | |
| static _interface _ModelOfInterface = _interface.of( | |
| "package usecase.model;", |
This file contains hidden or 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 usecase.model; | |
| import java.io.Serializable; | |
| import varcode.java.Java; | |
| import varcode.java.adhoc.Export; | |
| import varcode.java.model._class; | |
| public class ModelClass | |
| { | |
| static _class _ModelOfClass = _class.of( |
This file contains hidden or 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 usecase.model; | |
| import varcode.java.Java; | |
| import varcode.java.adhoc.Export; | |
| import varcode.java.model._enum; | |
| public class ModelEnum | |
| { | |
| static _enum _ModelOfEnum = _enum.of( | |
| "package usecase.model;", |
This file contains hidden or 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 usecase.model; | |
| import varcode.java.adhoc.Export; | |
| import varcode.java.model._annotationType; | |
| public class ModelAnnotationType | |
| { | |
| static _annotationType _ModelOfAnnotation = _annotationType.of( | |
| "package usecase.model;", | |
| "import java.lang.annotation.Retention;", |
This file contains hidden or 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 example; | |
| import draft.java.*; | |
| import draft.java.file._export; | |
| import draft.java.macro.*; | |
| import junit.framework.TestCase; | |
| import java.util.*; | |
| /** |
This file contains hidden or 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 tutorial; | |
| import draft.java.*; | |
| import draft.java.file.*; | |
| import draft.java.runtime._javac; | |
| import draft.java.runtime._proxy; | |
| import junit.framework.TestCase; | |
| import java.util.List; |
This file contains hidden or 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 example; | |
| import draft.java.*; | |
| import draft.java.file.*; | |
| import draft.java.runtime.*; | |
| import junit.framework.TestCase; | |
| public class _draft_1 extends TestCase { |