comparison truffle/com.oracle.truffle.object.basic/src/com/oracle/truffle/object/basic/DefaultLayoutFactory.java @ 22151:494bfe8a25ff

move LayoutBuilder to Layout.Builder
author Andreas Woess <andreas.woess@oracle.com>
date Mon, 14 Sep 2015 13:59:37 +0200
parents 9c8c0937da41
children dc83cc1f94f2
comparison
equal deleted inserted replaced
22150:ac6dadffdf32 22151:494bfe8a25ff
24 24
25 import com.oracle.truffle.api.object.*; 25 import com.oracle.truffle.api.object.*;
26 import com.oracle.truffle.object.*; 26 import com.oracle.truffle.object.*;
27 27
28 public class DefaultLayoutFactory implements LayoutFactory { 28 public class DefaultLayoutFactory implements LayoutFactory {
29 public Layout createLayout(LayoutBuilder layoutBuilder) { 29 public Layout createLayout(Layout.Builder layoutBuilder) {
30 return BasicLayout.createLayoutImpl(layoutBuilder.getAllowedImplicitCasts(), new DefaultStrategy()); 30 return BasicLayout.createLayoutImpl(layoutBuilder.getAllowedImplicitCasts(), new DefaultStrategy());
31 } 31 }
32 32
33 public Property createProperty(Object id, Location location) { 33 public Property createProperty(Object id, Location location) {
34 return createProperty(id, location, 0); 34 return createProperty(id, location, 0);