Package de.thomas_oster.rest2typescript
Class Generator
- java.lang.Object
-
- de.thomas_oster.rest2typescript.Generator
-
public class Generator extends Object
- Author:
- Thomas Oster (thomas.oster@upstart-it.de)
-
-
Constructor Summary
Constructors Constructor Description Generator()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidgenerate(String sPackage, File target)voidgenerate(org.reflections.Reflections reflections, File target)static booleanisExcludedByToTypescriptAnnotation(Class clazz)returns true if the object (method or class) is annotated with a @ToTypescript(false) annotationstatic voidmain(String[] args)
-
-
-
Method Detail
-
isExcludedByToTypescriptAnnotation
public static boolean isExcludedByToTypescriptAnnotation(Class clazz)
returns true if the object (method or class) is annotated with a @ToTypescript(false) annotation- Parameters:
clazz-- Returns:
-
generate
public void generate(String sPackage, File target) throws IOException
- Throws:
IOException
-
generate
public void generate(org.reflections.Reflections reflections, File target) throws FileNotFoundException, IOException- Throws:
FileNotFoundExceptionIOException
-
main
public static void main(String[] args) throws IOException
- Throws:
IOException
-
-