public class BasicLayout extends LayoutImpl
Layout.ImplicitCast
INT_TO_DOUBLE, INT_TO_LONG, NONE, OPTION_PREFIX
Modifier and Type | Method and Description |
---|---|
Shape.Allocator |
createAllocator()
Create an allocator for static property creation.
|
Shape |
createShape(ObjectType operations,
java.lang.Object sharedData,
int id) |
protected Location |
getObjectArrayLocation() |
protected int |
getObjectFieldCount() |
protected ObjectLocation |
getObjectFieldLocation(int index) |
protected Location |
getPrimitiveArrayLocation() |
protected int |
getPrimitiveFieldCount() |
protected LocationImpl.InternalLongLocation |
getPrimitiveFieldLocation(int index) |
protected boolean |
hasObjectExtensionArray() |
protected boolean |
hasPrimitiveExtensionArray() |
DynamicObject |
newInstance(Shape shape) |
protected int |
objectFieldIndex(Location location) |
createShape, createShape, existingLocationForValue, getStrategy, getType, isAllowedIntToDouble, isAllowedIntToLong, isLocationAssignableFrom, isPropertyUpcastOf
createLayout, createLayout, createLayout, getFactory
public DynamicObject newInstance(Shape shape)
newInstance
in class LayoutImpl
public Shape createShape(ObjectType operations, java.lang.Object sharedData, int id)
createShape
in class Layout
protected boolean hasObjectExtensionArray()
hasObjectExtensionArray
in class LayoutImpl
protected boolean hasPrimitiveExtensionArray()
hasPrimitiveExtensionArray
in class LayoutImpl
protected int getObjectFieldCount()
getObjectFieldCount
in class LayoutImpl
protected int getPrimitiveFieldCount()
getPrimitiveFieldCount
in class LayoutImpl
protected Location getObjectArrayLocation()
getObjectArrayLocation
in class LayoutImpl
protected Location getPrimitiveArrayLocation()
getPrimitiveArrayLocation
in class LayoutImpl
protected ObjectLocation getObjectFieldLocation(int index)
protected LocationImpl.InternalLongLocation getPrimitiveFieldLocation(int index)
public Shape.Allocator createAllocator()
Layout
createAllocator
in class LayoutImpl
protected int objectFieldIndex(Location location)
objectFieldIndex
in class LayoutImpl