net.sf.clirr.core.spi
Class Scope

java.lang.Object
  extended by net.sf.clirr.core.spi.Scope

public final class Scope
extends java.lang.Object

Enumeration type that represents an "accessibility" level for a java class, field or method.

Change of access rights from lower to higher visibility rating is a binary-compatible change. Change of access rights from higher to lower is a binary-incompatible change.

Public > Protected > Package > Private

Author:
Simon Kitching

Field Summary
static Scope PACKAGE
          Object representing package scoped objects.
static Scope PRIVATE
          Object representing private scoped objects.
static Scope PROTECTED
          Object representing protected scoped objects.
static Scope PUBLIC
          Object representing public scoped objects.
 
Method Summary
 java.lang.String getDecl()
          the Java visibility modifier.
 java.lang.String getDesc()
           
 boolean isLessVisibleThan(Scope v)
           
 boolean isMoreVisibleThan(Scope v)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PRIVATE

public static final Scope PRIVATE
Object representing private scoped objects.


PACKAGE

public static final Scope PACKAGE
Object representing package scoped objects.


PROTECTED

public static final Scope PROTECTED
Object representing protected scoped objects.


PUBLIC

public static final Scope PUBLIC
Object representing public scoped objects.

Method Detail

isMoreVisibleThan

public boolean isMoreVisibleThan(Scope v)

isLessVisibleThan

public boolean isLessVisibleThan(Scope v)

getDesc

public java.lang.String getDesc()

getDecl

public java.lang.String getDecl()
the Java visibility modifier.



Copyright © 2003-2005 Lars Kühne. All Rights Reserved.