1 /* 2 * Copyright (c) 2017, 2019, Oracle and/or its affiliates. All rights reserved. 3 */ 4 /* 5 * Licensed to the Apache Software Foundation (ASF) under one or more 6 * contributor license agreements. See the NOTICE file distributed with 7 * this work for additional information regarding copyright ownership. 8 * The ASF licenses this file to You under the Apache License, Version 2.0 9 * (the "License"); you may not use this file except in compliance with 10 * the License. You may obtain a copy of the License at 11 * 12 * http://www.apache.org/licenses/LICENSE-2.0 13 * 14 * Unless required by applicable law or agreed to in writing, software 15 * distributed under the License is distributed on an "AS IS" BASIS, 16 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 17 * See the License for the specific language governing permissions and 18 * limitations under the License. 19 */ 20 21 package com.sun.org.apache.bcel.internal.generic; 22 23 /** 24 * LDC2_W - Push long or double from constant pool 25 * 26 * <PRE>Stack: ... -> ..., item.word1, item.word2</PRE> 27 * 28 * @version $Id$ 29 * @LastModified: Jun 2019 30 */ 31 public class LDC2_W extends CPInstruction implements PushInstruction { 32 33 /** 34 * Empty constructor needed for Instruction.readInstruction. 35 * Not to be used otherwise. 36 */ 37 LDC2_W() { 38 } 39 40 41 public LDC2_W(final int index) { 42 super(com.sun.org.apache.bcel.internal.Const.LDC2_W, index); 43 } 44 45 46 @Override 47 public Type getType( final ConstantPoolGen cpg ) { 48 switch (cpg.getConstantPool().getConstant(super.getIndex()).getTag()) { 49 case com.sun.org.apache.bcel.internal.Const.CONSTANT_Long: | 1 /* 2 * Copyright (c) 2017, 2020, Oracle and/or its affiliates. All rights reserved. 3 */ 4 /* 5 * Licensed to the Apache Software Foundation (ASF) under one or more 6 * contributor license agreements. See the NOTICE file distributed with 7 * this work for additional information regarding copyright ownership. 8 * The ASF licenses this file to You under the Apache License, Version 2.0 9 * (the "License"); you may not use this file except in compliance with 10 * the License. You may obtain a copy of the License at 11 * 12 * http://www.apache.org/licenses/LICENSE-2.0 13 * 14 * Unless required by applicable law or agreed to in writing, software 15 * distributed under the License is distributed on an "AS IS" BASIS, 16 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 17 * See the License for the specific language governing permissions and 18 * limitations under the License. 19 */ 20 21 package com.sun.org.apache.bcel.internal.generic; 22 23 /** 24 * LDC2_W - Push long or double from constant pool 25 * 26 * <PRE>Stack: ... -> ..., item.word1, item.word2</PRE> 27 * 28 * @LastModified: Jan 2020 29 */ 30 public class LDC2_W extends CPInstruction implements PushInstruction { 31 32 /** 33 * Empty constructor needed for Instruction.readInstruction. 34 * Not to be used otherwise. 35 */ 36 LDC2_W() { 37 } 38 39 40 public LDC2_W(final int index) { 41 super(com.sun.org.apache.bcel.internal.Const.LDC2_W, index); 42 } 43 44 45 @Override 46 public Type getType( final ConstantPoolGen cpg ) { 47 switch (cpg.getConstantPool().getConstant(super.getIndex()).getTag()) { 48 case com.sun.org.apache.bcel.internal.Const.CONSTANT_Long: |