1 18 package org.objectweb.speedo.naming.api; 19 20 import org.objectweb.jorm.metainfo.api.Reference; 21 import org.objectweb.jorm.metainfo.api.ScalarField; 22 import org.objectweb.jorm.metainfo.api.MetaObject; 23 import org.objectweb.jorm.metainfo.api.PrimitiveElement; 24 import org.objectweb.jorm.type.api.PType; 25 import org.objectweb.speedo.api.SpeedoException; 26 import org.objectweb.speedo.metadata.SpeedoClass; 27 import org.objectweb.asm.Type; 28 29 33 public interface MIBuilderHelper { 34 35 36 String getNameDefFieldPrefix(Reference ref, 37 boolean isIdentifier, 38 boolean isInGenClass); 39 40 ScalarField createNameDefField(MetaObject mo, 41 String fn, 42 PType type) 43 throws SpeedoException; 44 45 ScalarField createNameDefField(MetaObject mo, String fn, 46 PType type, int size, int scale) 47 throws SpeedoException; 48 49 PrimitiveElement getPrimitiveField(MetaObject mo, String name); 50 51 String getErrorMessage(SpeedoClass sc, MetaObject mo, Reference ref); 52 53 PType getPrimitivePType(Type t); 54 } 55 | Popular Tags |