ArrayLengthProvider.java revision 12657:6ef01bd40ce2
10SN/A/* 2798Sjoehw * Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved. 30SN/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 40SN/A * 5798Sjoehw * This code is free software; you can redistribute it and/or modify it 6798Sjoehw * under the terms of the GNU General Public License version 2 only, as 7798Sjoehw * published by the Free Software Foundation. 8798Sjoehw * 9798Sjoehw * This code is distributed in the hope that it will be useful, but WITHOUT 10798Sjoehw * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 110SN/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 120SN/A * version 2 for more details (a copy is included in the LICENSE file that 130SN/A * accompanied this code). 140SN/A * 150SN/A * You should have received a copy of the GNU General Public License version 160SN/A * 2 along with this work; if not, write to the Free Software Foundation, 170SN/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 180SN/A * 190SN/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 200SN/A * or visit www.oracle.com if you need additional information or have any 210SN/A * questions. 220SN/A */ 230SN/Apackage org.graalvm.compiler.nodes.spi; 240SN/A 250SN/Aimport org.graalvm.compiler.nodes.ValueNode; 260SN/A 27798Sjoehwpublic interface ArrayLengthProvider { 28798Sjoehw 290SN/A /** 300SN/A * @return the length of the array described by this node, or null if it is not available 310SN/A */ 320SN/A ValueNode length(); 330SN/A} 340SN/A