org.jruby.runtime
Class Visibility
java.lang.Object
org.jruby.runtime.Visibility
- All Implemented Interfaces:
- java.io.Serializable
- public final class Visibility
- extends java.lang.Object
- implements java.io.Serializable
This class represents two concepts: method visibility and a mask for
determining a set of valid method visibilities. The first concept can only
be a single value: PUBLIC, PRIVATE, PROTECTED, and MODULE_FUNCTION (see
RubyModule#module_function). It is used to adorn a method with a _SINGLE_
visibility. Some functions (see RubyModule#instance_methods) want to be
able to see methods of multiple visibilities. The second concept allows
making a vibility which is basically a mask (see
Visibility.PUBLIC_PROTECTED). The method 'is' can then be used to see if a
method visibility is in the mask.
- Author:
- jpetersen
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
PUBLIC
public static final Visibility PUBLIC
PROTECTED
public static final Visibility PROTECTED
PRIVATE
public static final Visibility PRIVATE
MODULE_FUNCTION
public static final Visibility MODULE_FUNCTION
PUBLIC_PROTECTED
public static final Visibility PUBLIC_PROTECTED
isPublic
public boolean isPublic()
isProtected
public boolean isProtected()
isPrivate
public boolean isPrivate()
isModuleFunction
public boolean isModuleFunction()
is
public boolean is(Visibility other)
toString
public java.lang.String toString()
Copyright © 2002-2007 JRuby Team. All Rights Reserved.