use of com.oracle.truffle.object.dsl.processor.model.PropertyBuilder in project graal by oracle.
the class LayoutParser method parseShapeConstructor.
private void parseShapeConstructor(ExecutableElement methodElement) {
List<? extends VariableElement> parameters = methodElement.getParameters();
if (!parameters.isEmpty()) {
hasShapeProperties = true;
}
if (superLayout != null) {
final List<PropertyModel> superShapeProperties = superLayout.getAllShapeProperties();
checkSharedParameters(methodElement, parameters, superShapeProperties);
parameters = parameters.subList(superShapeProperties.size(), parameters.size());
}
for (VariableElement element : parameters) {
final String parameterName = element.getSimpleName().toString();
constructorProperties.add(parameterName);
final PropertyBuilder property = getProperty(parameterName);
setPropertyType(element, property, element.asType());
parseConstructorParameterAnnotations(property, element);
property.setIsShapeProperty(true);
}
}
use of com.oracle.truffle.object.dsl.processor.model.PropertyBuilder in project graal by oracle.
the class LayoutParser method getProperty.
private PropertyBuilder getProperty(String propertyName) {
PropertyBuilder builder = properties.get(propertyName);
if (builder == null) {
builder = new PropertyBuilder(propertyName);
properties.put(propertyName, builder);
}
return builder;
}
Aggregations