org.eclipse.cdt.managedbuilder.internal.enablement
Class OptionEnablementExpression

java.lang.Object
  extended by org.eclipse.cdt.managedbuilder.internal.enablement.CompositeExpression
      extended by org.eclipse.cdt.managedbuilder.internal.enablement.AndExpression
          extended by org.eclipse.cdt.managedbuilder.internal.enablement.OptionEnablementExpression
All Implemented Interfaces:
IBooleanExpression

public class OptionEnablementExpression
extends AndExpression


Field Summary
static java.lang.String ATTRIBUTE
           
static java.lang.String EXTENSION_ADJUSTMENT
           
static int FLAG_ALL
           
static int FLAG_CMD_USAGE
           
static int FLAG_CONTAINER_ATTRIBUTE
           
static java.lang.String FLAG_DELIMITER
           
static int FLAG_UI_ENABLEMENT
           
static int FLAG_UI_VISIBILITY
           
static java.lang.String NAME
           
static java.lang.String TRUE
           
static java.lang.String TYPE
           
static java.lang.String TYPE_ALL
           
static java.lang.String TYPE_CMD_USAGE
           
static java.lang.String TYPE_CONTAINER_ATTRIBUTE
           
static java.lang.String TYPE_UI_ENABLEMENT
           
static java.lang.String TYPE_UI_VISIBILITY
           
static java.lang.String VALUE
           
static java.lang.String YES
           
 
Constructor Summary
OptionEnablementExpression(IManagedConfigElement element)
           
 
Method Summary
 boolean adjustConfiguration(IConfiguration cfg, AdjustmentContext context, boolean extensionAdjustment)
           
static boolean adjustConfiguration(IConfiguration cfg, java.lang.String attribute, java.lang.String value, boolean extensionAdjustment)
           
 boolean adjustOption(IResourceInfo rcInfo, IHoldsOptions holder, IOption option, AdjustmentContext context, boolean extensionAdjustment)
           
static boolean adjustOption(IResourceInfo rcInfo, IHoldsOptions holder, IOption option, java.lang.String attribute, java.lang.String value, boolean extensionAdjustment)
           
 boolean adjustTool(IResourceInfo info, ITool tool, AdjustmentContext context, boolean extensionAdjustment)
           
static boolean adjustTool(IResourceInfo info, ITool tool, java.lang.String attribute, java.lang.String value, boolean extensionAdjustment)
           
 boolean adjustToolChain(IFolderInfo info, IToolChain tChain, AdjustmentContext context, boolean extensionAdjustment)
           
static boolean adjustToolChain(IFolderInfo info, IToolChain tChain, java.lang.String attrbute, java.lang.String value, boolean extensionAdjustment)
           
 boolean canPerformAdjustment(boolean extensionAdjustment)
           
 boolean checkFlags(int flags)
           
 java.lang.String[] convertToList(java.lang.String value, java.lang.String delimiter)
           
 boolean evaluate(IResourceInfo rcInfo, IHoldsOptions holder, IOption option, int flags)
           
 boolean evaluate(IResourceInfo rcInfo, IHoldsOptions holder, IOption option, int flags, boolean bDefault)
           
static boolean getBooleanValue(java.lang.String value)
           
 int getFlags()
           
 
Methods inherited from class org.eclipse.cdt.managedbuilder.internal.enablement.AndExpression
evaluate
 
Methods inherited from class org.eclipse.cdt.managedbuilder.internal.enablement.CompositeExpression
getChildren, getReferencedProperties
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NAME

public static final java.lang.String NAME
See Also:
Constant Field Values

TYPE

public static final java.lang.String TYPE
See Also:
Constant Field Values

TYPE_UI_VISIBILITY

public static final java.lang.String TYPE_UI_VISIBILITY
See Also:
Constant Field Values

TYPE_UI_ENABLEMENT

public static final java.lang.String TYPE_UI_ENABLEMENT
See Also:
Constant Field Values

TYPE_CMD_USAGE

public static final java.lang.String TYPE_CMD_USAGE
See Also:
Constant Field Values

TYPE_CONTAINER_ATTRIBUTE

public static final java.lang.String TYPE_CONTAINER_ATTRIBUTE
See Also:
Constant Field Values

TYPE_ALL

public static final java.lang.String TYPE_ALL
See Also:
Constant Field Values

FLAG_DELIMITER

public static final java.lang.String FLAG_DELIMITER
See Also:
Constant Field Values

ATTRIBUTE

public static final java.lang.String ATTRIBUTE
See Also:
Constant Field Values

VALUE

public static final java.lang.String VALUE
See Also:
Constant Field Values

EXTENSION_ADJUSTMENT

public static final java.lang.String EXTENSION_ADJUSTMENT
See Also:
Constant Field Values

YES

public static final java.lang.String YES
See Also:
Constant Field Values

TRUE

public static final java.lang.String TRUE
See Also:
Constant Field Values

FLAG_UI_VISIBILITY

public static final int FLAG_UI_VISIBILITY
See Also:
Constant Field Values

FLAG_UI_ENABLEMENT

public static final int FLAG_UI_ENABLEMENT
See Also:
Constant Field Values

FLAG_CMD_USAGE

public static final int FLAG_CMD_USAGE
See Also:
Constant Field Values

FLAG_CONTAINER_ATTRIBUTE

public static final int FLAG_CONTAINER_ATTRIBUTE
See Also:
Constant Field Values

FLAG_ALL

public static final int FLAG_ALL
See Also:
Constant Field Values
Constructor Detail

OptionEnablementExpression

public OptionEnablementExpression(IManagedConfigElement element)
Method Detail

convertToList

public java.lang.String[] convertToList(java.lang.String value,
                                        java.lang.String delimiter)

evaluate

public boolean evaluate(IResourceInfo rcInfo,
                        IHoldsOptions holder,
                        IOption option,
                        int flags)

evaluate

public boolean evaluate(IResourceInfo rcInfo,
                        IHoldsOptions holder,
                        IOption option,
                        int flags,
                        boolean bDefault)

checkFlags

public boolean checkFlags(int flags)

getFlags

public int getFlags()

adjustOption

public static boolean adjustOption(IResourceInfo rcInfo,
                                   IHoldsOptions holder,
                                   IOption option,
                                   java.lang.String attribute,
                                   java.lang.String value,
                                   boolean extensionAdjustment)

adjustOption

public boolean adjustOption(IResourceInfo rcInfo,
                            IHoldsOptions holder,
                            IOption option,
                            AdjustmentContext context,
                            boolean extensionAdjustment)

adjustToolChain

public static boolean adjustToolChain(IFolderInfo info,
                                      IToolChain tChain,
                                      java.lang.String attrbute,
                                      java.lang.String value,
                                      boolean extensionAdjustment)

adjustToolChain

public boolean adjustToolChain(IFolderInfo info,
                               IToolChain tChain,
                               AdjustmentContext context,
                               boolean extensionAdjustment)

adjustTool

public static boolean adjustTool(IResourceInfo info,
                                 ITool tool,
                                 java.lang.String attribute,
                                 java.lang.String value,
                                 boolean extensionAdjustment)

adjustTool

public boolean adjustTool(IResourceInfo info,
                          ITool tool,
                          AdjustmentContext context,
                          boolean extensionAdjustment)

adjustConfiguration

public static boolean adjustConfiguration(IConfiguration cfg,
                                          java.lang.String attribute,
                                          java.lang.String value,
                                          boolean extensionAdjustment)

adjustConfiguration

public boolean adjustConfiguration(IConfiguration cfg,
                                   AdjustmentContext context,
                                   boolean extensionAdjustment)

canPerformAdjustment

public boolean canPerformAdjustment(boolean extensionAdjustment)

getBooleanValue

public static boolean getBooleanValue(java.lang.String value)