Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'xlc/org.eclipse.cdt.core.lrparser.xlc/parser/org/eclipse/cdt/core/lrparser/xlc/ast/IXlcCPPASTModifiedArrayModifier.java')
-rw-r--r--xlc/org.eclipse.cdt.core.lrparser.xlc/parser/org/eclipse/cdt/core/lrparser/xlc/ast/IXlcCPPASTModifiedArrayModifier.java101
1 files changed, 101 insertions, 0 deletions
diff --git a/xlc/org.eclipse.cdt.core.lrparser.xlc/parser/org/eclipse/cdt/core/lrparser/xlc/ast/IXlcCPPASTModifiedArrayModifier.java b/xlc/org.eclipse.cdt.core.lrparser.xlc/parser/org/eclipse/cdt/core/lrparser/xlc/ast/IXlcCPPASTModifiedArrayModifier.java
new file mode 100644
index 00000000000..13065bc7eae
--- /dev/null
+++ b/xlc/org.eclipse.cdt.core.lrparser.xlc/parser/org/eclipse/cdt/core/lrparser/xlc/ast/IXlcCPPASTModifiedArrayModifier.java
@@ -0,0 +1,101 @@
+/*******************************************************************************
+ * Copyright (c) 2009 IBM Corporation and others.
+ * 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:
+ * IBM Corporation - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.cdt.core.lrparser.xlc.ast;
+
+import org.eclipse.cdt.core.dom.ast.IASTArrayModifier;
+
+/**
+ * Allow C99 style variable length arrays in XL C++.
+ *
+ */
+public interface IXlcCPPASTModifiedArrayModifier extends IASTArrayModifier {
+
+
+ /**
+ * Is the const modifier used?
+ *
+ * @return boolean
+ */
+ public boolean isConst();
+
+ /**
+ * Is the static modifier used?
+ *
+ * @return boolean
+ */
+ public boolean isStatic();
+
+ /**
+ * Is the restrict modifier used?
+ *
+ * @return boolean
+ */
+ public boolean isRestrict();
+
+ /**
+ * Is the volatile modifier used?
+ *
+ * @return boolean
+ */
+ public boolean isVolatile();
+
+ /**
+ * Set true/false that the const modifier is used.
+ *
+ * @param value
+ * boolean
+ */
+ public void setConst(boolean value);
+
+ /**
+ * Set true/false that the volatile modifier is used.
+ *
+ * @param value
+ * boolean
+ */
+ public void setVolatile(boolean value);
+
+ /**
+ * Set true/false that the restrict modifier is used.
+ *
+ * @param value
+ * boolean
+ */
+ public void setRestrict(boolean value);
+
+ /**
+ * Set true/false that the static modifier is used.
+ *
+ * @param value
+ * boolean
+ */
+ public void setStatic(boolean value);
+
+ /**
+ * Is the array variable sized? ( used ... )
+ *
+ * @return boolean
+ */
+ public boolean isVariableSized();
+
+ /**
+ * Set the array to be variable sized dependent upon value.
+ *
+ * @param value
+ * boolean
+ */
+ public void setVariableSized(boolean value);
+
+ /**
+ */
+ public IXlcCPPASTModifiedArrayModifier copy();
+
+}

Back to the top