Class Util
- java.lang.Object
-
- org.fife.rsta.ac.java.classreader.Util
-
- All Implemented Interfaces:
AccessFlags
public final class Util extends java.lang.Object implements AccessFlags
Utility methods for this package.- Version:
- 1.0
-
-
Field Summary
-
Fields inherited from interface org.fife.rsta.ac.java.classreader.AccessFlags
ACC_ABSTRACT, ACC_ANNOTATION, ACC_ENUM, ACC_FINAL, ACC_INTERFACE, ACC_NATIVE, ACC_PRIVATE, ACC_PROTECTED, ACC_PUBLIC, ACC_STATIC, ACC_STRICT, ACC_SUPER, ACC_SYNCHRONIZED, ACC_SYNTHETIC, ACC_TRANSIENT, ACC_VOLATILE
-
-
Constructor Summary
Constructors Modifier Constructor Description privateUtil()Private constructor to prevent instantiation.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleanisDefault(int accessFlags)Returns whether an object has default scope.static booleanisPrivate(int accessFlags)Returns whether an object has private scope.static booleanisProtected(int accessFlags)Returns whether an object has protected scope.static booleanisPublic(int accessFlags)Returns whether an object has public scope.static voidskipBytes(java.io.DataInputStream in, int count)Fully skips a given number of bytes in an input stream.
-
-
-
Method Detail
-
isDefault
public static boolean isDefault(int accessFlags)
Returns whether an object has default scope.- Parameters:
accessFlags- The access flags to check.- Returns:
- Whether an object has default scope.
- See Also:
isDefault(int),isPrivate(int),isPublic(int)
-
isPrivate
public static boolean isPrivate(int accessFlags)
Returns whether an object has private scope.- Parameters:
accessFlags- The access flags to check.- Returns:
- Whether an object has private scope.
- See Also:
isDefault(int),isPrivate(int),isPublic(int)
-
isProtected
public static boolean isProtected(int accessFlags)
Returns whether an object has protected scope.- Parameters:
accessFlags- The access flags to check.- Returns:
- Whether an object has protected scope.
- See Also:
isDefault(int),isPrivate(int),isPublic(int)
-
isPublic
public static boolean isPublic(int accessFlags)
Returns whether an object has public scope.- Parameters:
accessFlags- The access flags to check.- Returns:
- Whether an object has public scope.
- See Also:
isDefault(int),isPrivate(int),isPublic(int)
-
skipBytes
public static void skipBytes(java.io.DataInputStream in, int count) throws java.io.IOExceptionFully skips a given number of bytes in an input stream.- Parameters:
in- The input stream.count- The number of bytes to skip.- Throws:
java.io.IOException- If an IO error occurs.
-
-