kindlich
6086179d88
[WIP] implemented getReturnTyp() for some Statements
WIP: Not really tested and contains RuntimeExceptions that I used for testing
WIP: Not all possible return types covered
WIP: Not really clear which order/priority some statement contents should be checked
WIP: Not dealing with type mismatches or one branch returning something a subclass of the other branch's return type
hace 5 años
kindlich
2e7929e302
Function matches now ignore if the function itself is optional
hace 5 años
kindlich
1dd20f24a2
JavaNativeModule: Moved definition register up to help with circular hierarchies
E.g. IIngredient has a method that accepts an IItemStack, which is a sub-interface
hace 5 años
kindlich
5d6ed900ad
Allow the use of default expressions in Optional annotation
hace 5 años
kindlich
a3e8809917
Ignore storageTag when validating call arguments
hace 5 años
kindlich
ab202cfca6
Fixed AIOOB when omitting an optional parameter
hace 5 años
Jared
04d5014529
Fixed functional interface params
hace 5 años
Jared
cddc3f96b3
Made invalid imports log errors
hace 5 años
Jared
93d75695ec
fix optionals not inheriting nullable and expecting a default type
hace 5 años
Jared
45616e31c4
Fixed code formatter for map lookups
hace 5 años
Jared
e7bcbcffaf
Fix maps not working
hace 5 años
Jared
ba2b04790b
small code cleanup
hace 5 años
kindlich
cebae626fe
ShouldLoadClass now checks for Name annotation
hace 5 años
Jared
d9e8ef65ea
Made the Name error say which class caused the issue
hace 5 años
kindlich
1f81e8a541
No such member now throws ComileException instead of logging to sout
hace 5 años
kindlich
dae9958fd1
Merge remote-tracking branch 'kindlich/development' into HEAD
hace 5 años
kindlich
5e9d773084
Allow Already converted classes from dependencies to be used, even if in another package
hace 5 años
Jared
a271cd8fd7
Removed unneeded parents so eclipse can compile the project
Fairly sure this is an eclipse issue, no problems are reported in idea...
https://bugs.eclipse.org/bugs/show_bug.cgi?id=474593
hace 5 años
Jared
cbf1ac90e6
Added kindlich's name fix
hace 5 años
Jared
191edd6cae
Added better logging in JavaNativeModule
hace 5 años
kindlich
fa8a3588cb
Fixed Exception for invalid package even if the class name was overriden using @Name
hace 5 años
kindlich
6be789d2c9
Removed unused type evaluation (see desc)
Threw an exception when an import member could not be found.
Also, the value was not used anywhere
hace 5 años
kindlich
e614149c8c
Moved Array default value to default value expression
hace 5 años
kindlich
8f96b3b2a8
Merge remote-tracking branch 'Stan/development' into development
hace 5 años
Stan Hebben
c3b948d8fe
Fixed support for optional parameters. Also implemented java integration for them.
hace 5 años
kindlich
b34bdf376a
Enums now are registered to their class package, fields use the correct modifiers
TODO: Verify that the access check is correct
hace 5 años
kindlich
5374b6f716
WIP: Loggers, added parsing logger
hace 5 años
kindlich
96b6386d79
JavaCompiler: Use LinkedHashMap to preserve execution order
hace 5 años
kindlich
2255428bd9
Created ScriptingEngine#createScriptedModule overload that accepts loggers
hace 5 años
kindlich
f6516d5246
Set file and line meta info
hace 5 años
kindlich
dcebf0edbe
Test script changes
hace 5 años
kindlich
8dc22bcfeb
Java Bytecode Array Constructor: Implemented projection with indices
hace 5 años
kindlich
6f95dd3ff9
Java Bytecode Array Constructor: Finished Projection function invocation
hace 5 años
kindlich
d062ad0149
Fixed Bridge methods invoking in the incorrect class
hace 5 años
kindlich
a4d4176e7f
JavaNativeLoader: removed unneccessary Field
hace 5 años
kindlich
608baebce8
Added modules getter to the ScriptingEngine and allow empty base base package names in JavaNativeModule
hace 5 años
Stan Hebben
a86086cdec
Added native loader to resolve dependencies between native modules.
hace 5 años
Stan Hebben
d151b5ef99
Fix nullable types.
hace 5 años
Stan Hebben
5ea804b3d3
Fix method signatures containing only the short name instead of full class name.
hace 5 años
Stan Hebben
7844dea790
Removed unused files.
hace 5 años
kindlich
9494ef212e
Functional Wrappers, Bridge Methods, Type descriptor fix
Functional interface wrappers should work now
Implementing a method with a signature differing from the actual one (e.g. when dealing with generics) now creates a proper bridge method
The Java Bytecde compiler used an incorrect method in checkCast
We now no longer use hardcoded 'accept's as method names but whatever the context tells us to.
hace 5 años
kindlich
177b59341d
Merge remote-tracking branch 'Stan/development' into development
hace 5 años
Stan Hebben
00e09fc358
Fix modifiers on functional interfaces
hace 5 años
kindlich
b8be41d1a2
Formatted Functional Interface Wrapper creations
hace 5 años
kindlich
82eb1d61eb
Merge remote-tracking branch 'Stan/development' into WIP/functionalInterfaces
hace 5 años
Stan Hebben
5f9aac70c8
Added missing update to JavaNativeModule
hace 5 años
kindlich
c69b92718a
Merge remote-tracking branch 'Stan/development' into WIP/functionalInterfaces
hace 6 años
Stan Hebben
e909486bf3
Added utility method to retrieve the functional interface method from a type.
hace 6 años
kindlich
da4c6eb005
WIP Functional Wrapper
Currently only supports 'accepts' methods, until we can get a way to get the actual method signature/name from the class
hace 6 años
kindlich
33f3e6406a
Use IdentityHashMap for parameter Info
hace 6 años