X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.simantics.databoard%2Fsrc%2Forg%2Fsimantics%2Fdataboard%2Fparser%2Fast%2Ftype%2FAstRecordType.java;h=0b12c9b423d98df6915280df79fe8fbe473b2e2f;hb=7fe2a02ad295ec7406f44e8f86b7d25deedceb8b;hp=4ad700c1dd92348307358fca21178ac6a383b70b;hpb=969bd23cab98a79ca9101af33334000879fb60c5;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics.databoard/src/org/simantics/databoard/parser/ast/type/AstRecordType.java b/bundles/org.simantics.databoard/src/org/simantics/databoard/parser/ast/type/AstRecordType.java index 4ad700c1d..0b12c9b42 100644 --- a/bundles/org.simantics.databoard/src/org/simantics/databoard/parser/ast/type/AstRecordType.java +++ b/bundles/org.simantics.databoard/src/org/simantics/databoard/parser/ast/type/AstRecordType.java @@ -1,35 +1,35 @@ -/******************************************************************************* - * Copyright (c) 2010 Association for Decentralized Information Management in - * Industry THTH ry. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * VTT Technical Research Centre of Finland - initial API and implementation - *******************************************************************************/ +/******************************************************************************* + * Copyright (c) 2010 Association for Decentralized Information Management in + * Industry THTH ry. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * VTT Technical Research Centre of Finland - initial API and implementation + *******************************************************************************/ package org.simantics.databoard.parser.ast.type; -import java.util.Collections; -import java.util.List; - -import org.simantics.databoard.parser.ast.type.visitor.AstTypeVisitor; -import org.simantics.databoard.parser.ast.type.visitor.AstTypeVisitorVoid; +import java.util.Collections; +import java.util.List; + +import org.simantics.databoard.parser.ast.type.visitor.AstTypeVisitor; +import org.simantics.databoard.parser.ast.type.visitor.AstTypeVisitorVoid; public class AstRecordType extends AstType { public final static AstRecordType EMPTY_RECORD = new AstRecordType(false, Collections.emptyList()); - + public boolean referable; public final List components; - public AstRecordType(boolean referable, List components) { - super(); - this.referable = referable; - this.components = components; - } - + public AstRecordType(boolean referable, List components) { + super(); + this.referable = referable; + this.components = components; + } + public void addComponent(String name, AstType type) { components.add(new AstComponent(name, type)); }