Commit Graph

1809 Commits

Author SHA1 Message Date
Collin Smith
c82e615772 Created Parser interface and generation 2020-12-16 11:36:11 -08:00
Collin Smith
1308eb410c Added FieldElement#fieldNames
Added FieldElement#fieldNames
FormatElement now validates and generates an array of formatted field names
2020-12-16 03:11:20 -08:00
Collin Smith
160109fdc9 Created Table#newSerializer
Created Table#newSerializer
Added default impl for MonStatsTableImpl#newSerializer
Created SchemaElement#serializerClassName
Refactored CodeGenerator#formatName to return a fq ClassName
Added null check for generated SchemaElement
Renamed CodeGenerator#generate variable to typeSpecBuilder
2020-12-16 01:12:21 -08:00
Collin Smith
f9fe8d0c63 Made MonStatsSerializerImpl a concrete class 2020-12-16 01:09:14 -08:00
Collin Smith
2d546442c0 Reformatted code 2020-12-16 00:25:55 -08:00
Collin Smith
d12a301703 Created TableCodeGenerator
Created and implemented TableCodeGenerator
Added stack trace printing for SchemaProcessor file io errors
Created Table#indexed
2020-12-16 00:22:47 -08:00
Collin Smith
77532fe576 Added field for Schema annotation 2020-12-16 00:05:37 -08:00
Collin Smith
1e3e2dd457 Added DeclaredType resolution to TableElement 2020-12-15 23:54:58 -08:00
Collin Smith
44282ad9ba Created CodeGenerator
Refactored some code generator responsibilities from SerializerCodeGenerator to CodeGenerator
2020-12-15 23:50:19 -08:00
Collin Smith
be46bab71e Code formatting 2020-12-15 23:34:42 -08:00
Collin Smith
d2451b08c1 Changed type param to R from T for record type 2020-12-15 23:32:56 -08:00
Collin Smith
e603b3a1f4 Implemented Table interface as abstract class 2020-12-15 23:32:29 -08:00
Collin Smith
92ed0d3af2 Removed generating class parameter 2020-12-15 23:30:45 -08:00
Collin Smith
f16f8dc0ea Added transient support, committing SerializerCodeGenerator 2020-12-15 22:02:47 -08:00
Collin Smith
b578137fdc Added support for Serializer impl generation 2020-12-15 19:14:42 -08:00
Collin Smith
c90b96a22a Added type and constructor checking for Schema 2020-12-15 17:32:45 -08:00
Collin Smith
dc733d29a5 Renamed columns to fields 2020-12-15 17:20:02 -08:00
Collin Smith
188d44b624 Refined primary key field error handling 2020-12-15 17:17:33 -08:00
Collin Smith
8bcca53490 Added some validation to FieldElement 2020-12-15 17:07:43 -08:00
Collin Smith
645d2eb25b Moved field annotation responsibilities to FieldElement
FieldElement processes Format and PrimaryKey annotations
Created AnnotationElement root class
2020-12-15 16:56:03 -08:00
Collin Smith
c33390503e Reformat code 2020-12-15 15:41:04 -08:00
Collin Smith
5180e4b185 Added static method to check primary key type 2020-12-15 14:15:25 -08:00
Collin Smith
d29c536d02 Fixed deprecation warning 2020-12-15 14:03:06 -08:00
collinsmith
9656bcc382 Changed Context#getAnnotationMirror to use the annotation class argument 2020-12-15 13:31:48 -08:00
collinsmith
06461b76c7 Added PrimaryKey AnnotationMirror for PrimaryKeyElement
Added PrimaryKey AnnotationMirror for PrimaryKeyElement
Created Context#getAnnotationMirror
Created Constants#PRIMARY_KEY
2020-12-15 13:23:49 -08:00
Collin Smith
fa819b0b9b Committing annotation-processor v2 experimentation 2020-12-15 12:07:38 -08:00
Collin Smith
5ee10cdfcc Updated factories to use SchemaAnnotatedElement 2020-12-14 10:44:21 -08:00
Collin Smith
0e916bcf26 Created SchemaAnnotatedElement to cache Schema annotation values 2020-12-14 10:33:12 -08:00
Collin Smith
f571ed43c1 First iteration of annotation-based excel impl 2020-12-14 01:50:20 -08:00
Collin Smith
16c12ec118 Set MD files to auto wrap on typing 2020-12-12 22:52:36 -08:00
Collin Smith
9d62df5850 Transitioned to new SerializerGenerator tools 2020-12-12 21:33:03 -08:00
Collin Smith
d8570e136d Moved com.riiablo.excel2 to com.riiablo.excel 2020-12-12 19:45:23 -08:00
Collin Smith
23009f2521 Fixed issue with updated merge naming change 2020-12-12 18:02:59 -08:00
Collin Smith
94475701d9 Merge branch 'master' of https://github.com/collinsmith/riiablo into excel-refactor 2020-12-12 17:55:08 -08:00
Collin Smith
107b408f1e Force :core:createVersionSource to always run regardless of up-to-date 2020-12-12 17:44:45 -08:00
Collin Smith
ff3d807de7 Created BinGenerator to generate bin files from tsv txt files via their Excel schemas 2020-12-12 17:40:54 -08:00
Collin Smith
05b37637bb Fully implemented MonStats entry schema
Fully implemented MonStats entry schema
Replaced serializer definition with generated one
2020-12-12 17:40:02 -08:00
Collin Smith
eec17d0a01 Effectively renamed #writeString methods to #writeChars (see #136) 2020-12-12 17:38:49 -08:00
Collin Smith
7b8ea9511b Removed unused annotations 2020-12-12 16:47:59 -08:00
Collin Smith
e8a8de6888 Implemented putting excel entries 2020-12-12 16:47:45 -08:00
Collin Smith
db1b60fb7d Significantly improved error detection and handling for excel column parsing
Significantly improved error detection and handling for excel column parsing
Added support for default values if a column text length is 0
All exceptions are propagated and logged and handled by parser
2020-12-12 14:53:39 -08:00
Collin Smith
d0f06c6c06 Completed majority of Excel class implementation 2020-12-12 04:27:55 -08:00
Collin Smith
9f7cd6d903 Removed deprecation from Excel.Entry.Column#columnIndex 2020-12-12 01:35:57 -08:00
Collin Smith
29d89f157a Improved logging granularity in tests 2020-12-12 01:35:16 -08:00
Collin Smith
2d149e18c9 Added termination to line cacheLine loop 2020-12-12 01:34:33 -08:00
Collin Smith
95845c0ba1 Updated project style 2020-12-11 20:27:18 -08:00
Collin Smith
f3a1cbd4be Created :core:createVersionSource gradle task
Gradle build info is now output to a generated source RiiabloVersion.java
Renamed generatedSourceDirs to vcsGeneratedSourceDir for version controlled generated sources
Created generatedSourceDir for build generated sources
Integrated RiiabloVersion into Client and MenuScreen
Changed Client.properties diablo->riiablo=Riiablo (e.g., Riiablo)
Changed Client.properties version->V {0} (e.g., V 0.0.3-SNAPSHOT)
2020-12-11 20:18:55 -08:00
Collin Smith
fd795892b0 Created ByteInput#readString() to handle dynamic length strings 2020-12-11 18:27:13 -08:00
Collin Smith
c29d7bfd39 Created Entry annotation to tag the excel row schema 2020-12-11 18:26:32 -08:00
Collin Smith
9b95eb1ac8 Added code generation API for generating excel serializers 2020-12-11 17:54:46 -08:00