src/java.xml/share/classes/com/sun/org/apache/xalan/internal/xsltc/compiler/util/IntType.java
equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved. |
|
3 * @LastModified: Oct 2017 |
3 */ |
4 */ |
4 /* |
5 /* |
5 * Licensed to the Apache Software Foundation (ASF) under one or more |
6 * Licensed to the Apache Software Foundation (ASF) under one or more |
6 * contributor license agreements. See the NOTICE file distributed with |
7 * contributor license agreements. See the NOTICE file distributed with |
7 * this work for additional information regarding copyright ownership. |
8 * this work for additional information regarding copyright ownership. |
186 * Translates an integer into the Java type denoted by <code>clazz</code>. |
187 * Translates an integer into the Java type denoted by <code>clazz</code>. |
187 * Expects an integer on the stack and pushes a number of the appropriate |
188 * Expects an integer on the stack and pushes a number of the appropriate |
188 * type after coercion. |
189 * type after coercion. |
189 */ |
190 */ |
190 public void translateTo(ClassGenerator classGen, MethodGenerator methodGen, |
191 public void translateTo(ClassGenerator classGen, MethodGenerator methodGen, |
191 Class clazz) { |
192 Class<?> clazz) { |
192 final InstructionList il = methodGen.getInstructionList(); |
193 final InstructionList il = methodGen.getInstructionList(); |
193 if (clazz == Character.TYPE) { |
194 if (clazz == Character.TYPE) { |
194 il.append(I2C); |
195 il.append(I2C); |
195 } |
196 } |
196 else if (clazz == Byte.TYPE) { |
197 else if (clazz == Byte.TYPE) { |