Class Util
java.lang.Object
org.fife.rsta.ac.java.classreader.Util
- All Implemented Interfaces:
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 -
Method Summary
Modifier and TypeMethodDescriptionstatic 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(DataInputStream in, int count) Fully skips a given number of bytes in an input stream.
-
Constructor Details
-
Util
private Util()Private constructor to prevent instantiation.
-
-
Method Details
-
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:
-
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:
-
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:
-
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:
-
skipBytes
Fully skips a given number of bytes in an input stream.- Parameters:
in- The input stream.count- The number of bytes to skip.- Throws:
IOException- If an IO error occurs.
-