Cleanup continues

This commit is contained in:
Anuken
2020-02-04 18:00:32 -05:00
parent 012421afcb
commit a7b39e56bd
106 changed files with 2266 additions and 4543 deletions

View File

@@ -287,10 +287,11 @@ public class EntityProcess extends BaseProcessor{
//get interface for each component
for(Stype comp : def.components){
//implement the interface
Stype inter = interfaces.find(i -> i.name().equals(interfaceName(comp)));
if(inter == null){
err("Failed to generate interface for component. Interfaces are " + interfaces + "\nComponent", comp);
err("Failed to generate interface for", comp);
return;
}

View File

@@ -72,12 +72,12 @@ public class RemoteProcess extends BaseProcessor{
//check for static
if(!element.getModifiers().contains(Modifier.STATIC) || !element.getModifiers().contains(Modifier.PUBLIC)){
BaseProcessor.messager.printMessage(Kind.ERROR, "All @Remote methods must be public and static: ", element);
err("All @Remote methods must be public and static: ", element);
}
//can't generate none methods
if(annotation.targets() == Loc.none){
BaseProcessor.messager.printMessage(Kind.ERROR, "A @Remote method's targets() cannot be equal to 'none':", element);
err("A @Remote method's targets() cannot be equal to 'none':", element);
}
//get and create class entry if needed