org.eclipse.jdt.internal.compiler.impl
Class IrritantSet

java.lang.Object
  extended by org.eclipse.jdt.internal.compiler.impl.IrritantSet

public class IrritantSet
extends Object

Represent a set of irritant flags. Irritants are organized in up to 8 group of 29, allowing for a maximum of 232 distinct irritants.


Field Summary
static IrritantSet ALL
           
static IrritantSet BOXING
           
static IrritantSet CAST
           
static IrritantSet COMPILER_DEFAULT_ERRORS
           
static IrritantSet COMPILER_DEFAULT_WARNINGS
           
static IrritantSet DEP_ANN
           
static IrritantSet DEPRECATION
           
static IrritantSet FALLTHROUGH
           
static IrritantSet FINALLY
           
static int GROUP_MASK
           
static int GROUP_MAX
           
static int GROUP_SHIFT
           
static int GROUP0
           
static int GROUP1
           
static int GROUP2
           
static IrritantSet HIDING
           
static IrritantSet INCOMPLETE_SWITCH
           
static IrritantSet JAVADOC
           
static IrritantSet NLS
           
static IrritantSet NULL
           
static IrritantSet RAW
           
static IrritantSet RESTRICTION
           
static IrritantSet SERIAL
           
static IrritantSet STATIC_ACCESS
           
static IrritantSet STATIC_METHOD
           
static IrritantSet SUPER
           
static IrritantSet SYNTHETIC_ACCESS
           
static IrritantSet UNCHECKED
           
static IrritantSet UNQUALIFIED_FIELD_ACCESS
           
static IrritantSet UNUSED
           
 
Constructor Summary
IrritantSet(int singleGroupIrritants)
          Constructor with initial irritant set
IrritantSet(IrritantSet other)
          Constructor with initial irritant set
 
Method Summary
 boolean areAllSet()
           
 IrritantSet clear(int singleGroupIrritants)
           
 IrritantSet clearAll()
           
 boolean hasSameIrritants(IrritantSet irritantSet)
          Returns true if all of the irritants in the given irritant set are set in receiver
 void initialize(int singleGroupIrritants)
          Initialize a set of irritants in one group
 void initialize(IrritantSet other)
           
 boolean isAnySet(IrritantSet other)
          Returns true if any of the irritants in given other set is positionned in receiver
 boolean isSet(int singleGroupIrritants)
           
 IrritantSet set(int singleGroupIrritants)
           
 IrritantSet set(IrritantSet other)
          Return updated irritantSet or null if it was a no-op
 IrritantSet setAll()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

GROUP_MASK

public static final int GROUP_MASK
See Also:
Constant Field Values

GROUP_SHIFT

public static final int GROUP_SHIFT
See Also:
Constant Field Values

GROUP_MAX

public static final int GROUP_MAX
See Also:
Constant Field Values

GROUP0

public static final int GROUP0
See Also:
Constant Field Values

GROUP1

public static final int GROUP1
See Also:
Constant Field Values

GROUP2

public static final int GROUP2
See Also:
Constant Field Values

ALL

public static final IrritantSet ALL

BOXING

public static final IrritantSet BOXING

CAST

public static final IrritantSet CAST

DEPRECATION

public static final IrritantSet DEPRECATION

DEP_ANN

public static final IrritantSet DEP_ANN

FALLTHROUGH

public static final IrritantSet FALLTHROUGH

FINALLY

public static final IrritantSet FINALLY

HIDING

public static final IrritantSet HIDING

INCOMPLETE_SWITCH

public static final IrritantSet INCOMPLETE_SWITCH

NLS

public static final IrritantSet NLS

NULL

public static final IrritantSet NULL

RAW

public static final IrritantSet RAW

RESTRICTION

public static final IrritantSet RESTRICTION

SERIAL

public static final IrritantSet SERIAL

STATIC_ACCESS

public static final IrritantSet STATIC_ACCESS

STATIC_METHOD

public static final IrritantSet STATIC_METHOD

SYNTHETIC_ACCESS

public static final IrritantSet SYNTHETIC_ACCESS

SUPER

public static final IrritantSet SUPER

UNUSED

public static final IrritantSet UNUSED

UNCHECKED

public static final IrritantSet UNCHECKED

UNQUALIFIED_FIELD_ACCESS

public static final IrritantSet UNQUALIFIED_FIELD_ACCESS

JAVADOC

public static final IrritantSet JAVADOC

COMPILER_DEFAULT_ERRORS

public static final IrritantSet COMPILER_DEFAULT_ERRORS

COMPILER_DEFAULT_WARNINGS

public static final IrritantSet COMPILER_DEFAULT_WARNINGS
Constructor Detail

IrritantSet

public IrritantSet(int singleGroupIrritants)
Constructor with initial irritant set


IrritantSet

public IrritantSet(IrritantSet other)
Constructor with initial irritant set

Method Detail

areAllSet

public boolean areAllSet()

clear

public IrritantSet clear(int singleGroupIrritants)

clearAll

public IrritantSet clearAll()

initialize

public void initialize(int singleGroupIrritants)
Initialize a set of irritants in one group

Parameters:
singleGroupIrritants -

initialize

public void initialize(IrritantSet other)

isAnySet

public boolean isAnySet(IrritantSet other)
Returns true if any of the irritants in given other set is positionned in receiver

Parameters:
other -

hasSameIrritants

public boolean hasSameIrritants(IrritantSet irritantSet)
Returns true if all of the irritants in the given irritant set are set in receiver

Parameters:
irritantSet - the given irritant set

isSet

public boolean isSet(int singleGroupIrritants)

set

public IrritantSet set(int singleGroupIrritants)

set

public IrritantSet set(IrritantSet other)
Return updated irritantSet or null if it was a no-op

Parameters:
other -

setAll

public IrritantSet setAll()


Copyright © 2012. All Rights Reserved.