* Copyright (C) 2010 Robert Futrell
* robert_futrell at users.sourceforge.net
* http://fifesoft.com/rsyntaxtextarea
* This library is distributed under a modified BSD license. See the included
* RSTALanguageSupport.License.txt file for details.
package org.fife.rsta.ac.java.classreader.constantpool;
* Class corresponding to the <code>CONSTANT_Long_info</code> structure.
public class ConstantLongInfo extends ConstantPoolInfo {
private int highBytes; // u4
private int lowBytes; // u4
public ConstantLongInfo(int highBytes, int lowBytes) {
this.highBytes = highBytes;
this.lowBytes = lowBytes;
public int getHighBytes() {
public long getLongValue() {
return (((long)highBytes<<32)) + lowBytes;
public int getLowBytes() {
* Returns a string representation of this object. Useful for debugging.
* @return A string representation of this object.
public String toString() {
return "[ConstantLongInfo: " +
"value=" + getLongValue() +