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 codestyle; | |
public class GoogleSpacing_No_Comments { | |
public static int a = 0; | |
public static int b = 0; | |
public static int c = 0; | |
public static int d = 0; | |
public static int e = 0; | |
public static int s = 0; | |
public static int n = 0; |
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 ex.codestyle; | |
public class WhyThisFormatVersesThat | |
{ | |
/** | |
* Style Rule: There is NO SPACE between a method name, catch, for, if, statements | |
* and it's opening parenthesis | |
*/ | |
public static class OpenParen | |
{ |
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 ex.varcode; | |
/*{-*/ | |
import io.varcode.tailor.java.JavaCase; | |
/*-}*/ | |
public class /*{+className*/_1/*+}*/ | |
{ | |
public /*{+className*/_1/*+}*/() | |
{ |
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 ex.javapoet; | |
import java.io.IOException; | |
import java.util.ArrayList; | |
import java.util.List; | |
import java.util.Map; | |
import javax.lang.model.element.Modifier; | |
import com.squareup.javapoet.JavaFile; |
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 ex.varcode.bindml; | |
import varcode.dom.Dom; | |
import varcode.java.Java; | |
import varcode.java.JavaCase; | |
import varcode.markup.bindml.BindML; | |
/**<PRE> | |
* *1* Compiles a Dom from BindML source | |
* *2* Authors (.java) code by binding data to the Dom |
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 ex.varcode.codeml; | |
import varcode.java.Java; | |
/*{$$condenseBlankLines$$}*/ | |
/*{-*/import varcode.java.JavaCase;/*-}*/ | |
public class /*{+className*/CodeMLHelloWorld/*+}*/ { | |
public static void main( String[] args ) { | |
System.out.println( "{+message+}" ); | |
} |
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 ex.varcode.java.model; | |
import varcode.java.Java; | |
import varcode.java.JavaCase; | |
import varcode.java.model._class; | |
/**<PRE> | |
* *1* build a _class model | |
* *2* print out the model (.java) source | |
* *3* (javac) compile the (.java) source to a .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 swar.subword; | |
import java.util.ArrayList; | |
import java.util.List; | |
import java.util.Random; | |
import java.util.concurrent.Callable; | |
import java.util.concurrent.ExecutorService; | |
import java.util.concurrent.Executors; | |
import java.util.concurrent.Future; |
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
import java.io.Serializable; | |
import java.util.HashMap; | |
import java.util.Map; | |
import java.util.UUID; | |
import java.util.concurrent.atomic.AtomicInteger; | |
import varcode.java.code._class; | |
import varcode.java.code._code; | |
import varcode.java.code._interface; | |
import varcode.java.code._methods._method; |
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 junit.framework.TestCase; | |
import varcode.java._Java; | |
import varcode.java.langmodel._class; | |
/** | |
* varcode makes generating Java source code easy with the langmodel API. | |
* | |
* Models like {@code _class, _enum, and _interface} can also be compiled |