Enhace constants pool handling when building code.
[hs-java.git] / JVM / ClassFile.hs
index 6171c1bdecffd3854bc85f5c1c7259dc63cc2f52..faf94cab82317a19215d07c392ee28cc64667c3b 100644 (file)
@@ -25,6 +25,7 @@ module JVM.ClassFile
    NameType (..),
    fieldNameType, methodNameType,
    lookupField, lookupMethod,
+   long,
    toString,
    className,
    apsize, arsize, arlist
@@ -459,6 +460,7 @@ whileJust m = do
               return (x: next)
     Nothing -> return []
 
+long :: Constant stage -> Bool
 long (CLong _)   = True
 long (CDouble _) = True
 long _           = False