|
Runtime | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions
public final class ParserOptions
This is a wrapper used for defining, setting, and retrieving flags that can be used for the parser operations that take a flags int as a parameter.
Field Summary | |
---|---|
static ParserOptions |
BIND_STYLE_TEXT
Show that there are bound arguments. |
static ParserOptions |
IGNORE_PLACEHOLDERS
Indicates that placeholders should be ignored - if there are no data, no placeholder will be generated. |
static ParserOptions |
NONE
Default. |
static ParserOptions |
SHOW_ALIAS
Show alias. |
static ParserOptions |
SHOW_DERIVED
Show that the element is derived. |
static ParserOptions |
SHOW_PARENT_NAME
Show parent name. |
static ParserOptions |
SHOW_SEQUENCE_NUMBER
Show number of the message. |
static ParserOptions |
SHOW_SIGNATURE
Show signature. |
static ParserOptions |
SHOW_TYPE
Show type. |
static ParserOptions |
STEREOTYPE_STYLE_TEXT
Display the Stereotype. |
static ParserOptions |
TYPE_STYLE_TEXT
Show the type. |
static ParserOptions |
USE_PARAMETER_NAMES
Indicates that message signatures should use the " |
static ParserOptions |
VISIBILITY_STYLE_TEXT
Display the visibility of the item. |
Constructor Summary | |
---|---|
ParserOptions()
Default constructor to initialize ParserOptions with no custom flags. |
|
ParserOptions(int flags)
Constructor that takes flags in as a parameter. |
Method Summary | |
---|---|
int |
intValue()
Returns the options as an int so they can be passed to operations. |
static boolean |
isSet(int flags,
ParserOptions option)
Checks if the specified option is set in the flags supplied. |
void |
set(ParserOptions option)
Sets an option in this ParserOptions. |
void |
unSet(ParserOptions option)
UnSets an option in the this ParserOptions. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final ParserOptions NONE
public static final ParserOptions VISIBILITY_STYLE_TEXT
public static final ParserOptions STEREOTYPE_STYLE_TEXT
public static final ParserOptions SHOW_PARENT_NAME
public static final ParserOptions SHOW_SIGNATURE
public static final ParserOptions SHOW_TYPE
public static final ParserOptions SHOW_ALIAS
public static final ParserOptions SHOW_DERIVED
public static final ParserOptions SHOW_SEQUENCE_NUMBER
public static final ParserOptions BIND_STYLE_TEXT
public static final ParserOptions TYPE_STYLE_TEXT
public static final ParserOptions IGNORE_PLACEHOLDERS
public static final ParserOptions USE_PARAMETER_NAMES
Constructor Detail |
---|
public ParserOptions()
public ParserOptions(int flags)
flags
- that describe how the text should be parsed. Some flags
are defined in this class.Method Detail |
---|
public int intValue()
public static boolean isSet(int flags, ParserOptions option)
flags
- int representing the flagsoption
- one of the defined ParserOptions
public void set(ParserOptions option)
option
- one of the defined ParserOptionspublic void unSet(ParserOptions option)
option
- one of the defined ParserOptions
|
Runtime | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp., Borland Software Corp., and others 2005,2006. All rights reserved.