diff graal/com.oracle.truffle.dsl.processor/src/com/oracle/truffle/dsl/processor/generator/TypeSystemCodeGenerator.java @ 18752:1acaa69ff61b

Truffle-DSL: refactor generator classes
author Christian Humer <christian.humer@gmail.com>
date Mon, 29 Dec 2014 23:38:16 +0100
parents 0370880ac9ce
children f6b8787dc113
line wrap: on
line diff
--- a/graal/com.oracle.truffle.dsl.processor/src/com/oracle/truffle/dsl/processor/generator/TypeSystemCodeGenerator.java	Mon Dec 29 23:38:12 2014 +0100
+++ b/graal/com.oracle.truffle.dsl.processor/src/com/oracle/truffle/dsl/processor/generator/TypeSystemCodeGenerator.java	Mon Dec 29 23:38:16 2014 +0100
@@ -39,7 +39,7 @@
         return "is" + ElementUtils.getTypeId(type.getBoxedType());
     }
 
-    public static String isImplicitTypeMethodName(TypeData type) {
+    static String isImplicitTypeMethodName(TypeData type) {
         return "isImplicit" + ElementUtils.getTypeId(type.getBoxedType());
     }
 
@@ -47,11 +47,11 @@
         return "as" + ElementUtils.getTypeId(type.getBoxedType());
     }
 
-    public static String asImplicitTypeMethodName(TypeData type) {
+    static String asImplicitTypeMethodName(TypeData type) {
         return "asImplicit" + ElementUtils.getTypeId(type.getBoxedType());
     }
 
-    public static String getImplicitClass(TypeData type) {
+    static String getImplicitClass(TypeData type) {
         return "getImplicit" + ElementUtils.getTypeId(type.getBoxedType()) + "Class";
     }
 
@@ -59,12 +59,12 @@
         return "expect" + ElementUtils.getTypeId(type.getBoxedType());
     }
 
-    public static String typeName(TypeSystemData typeSystem) {
+    static String typeName(TypeSystemData typeSystem) {
         String name = getSimpleName(typeSystem.getTemplateType());
         return name + "Gen";
     }
 
-    public static String singletonName(TypeSystemData type) {
+    static String singletonName(TypeSystemData type) {
         return createConstantName(getSimpleName(type.getTemplateType().asType()));
     }