org.netbeans.modules.cnd.api.model/1 1.3 1

org.netbeans.modules.cnd.api.model.deep
Enum CsmStatement.Kind

java.lang.Object
  
extended by java.lang.Enum<CsmStatement.Kind> extended by org.netbeans.modules.cnd.api.model.deep.CsmStatement.Kind
All Implemented Interfaces:
Serializable, Comparable<CsmStatement.Kind>
Enclosing interface:
CsmStatement

public static enum CsmStatement.Kind
extends Enum<CsmStatement.Kind>


Enum Constant Summary
BREAK
          Break statement.
CASE
          "case" pseudo statement.
CATCH
          Exception handler (catch) An instance is guaranteed to implement CsmExceptionHandler
COMPOUND
          Compound statement.
CONTINUE
          Continue statement.
DECLARATION
          Declaration statement.
DEFAULT
          "default" psewdo statement.
DO_WHILE
          do ...
EXPRESSION
          Expression statement.
FOR
          For statement.
GOTO
          Goto statement.
IF
          if statement.
LABEL
          Label pseudo statement.
RETURN
          Return statement.
SWITCH
          switch statement.
THROW
          Exception handler (catch) An instance is guaranteed to implement CsmExceptionHandler
TRY_CATCH
          Try...
WHILE
          while statement.
 
Method Summary
static CsmStatement.Kind valueOf(String name)
          Returns the enum constant of this type with the specified name.
static CsmStatement.Kind[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

LABEL

public static final CsmStatement.Kind LABEL
Label pseudo statement. Does NOT include the statement following after label, just the label itself An instance is guaranteed to implement CsmLabel


CASE

public static final CsmStatement.Kind CASE
"case" pseudo statement. Does NOT include the statement after "case ...:" clause, just "case ...:" itself An instance is guaranteed to implement CsmCaseStatement


DEFAULT

public static final CsmStatement.Kind DEFAULT
"default" psewdo statement. It does NOT include the statement after "default:" clause, just "default:" itself. It isn't a statement from C++ standard point of view TODO: rethink No special derived interface.


EXPRESSION

public static final CsmStatement.Kind EXPRESSION
Expression statement. An instance is guaranteed to implement CsmExpressionStatement


COMPOUND

public static final CsmStatement.Kind COMPOUND
Compound statement. An instance is guaranteed to implement CsmCompoundStatement


IF

public static final CsmStatement.Kind IF
if statement. An instance is guaranteed to implement CsmIfStatement


SWITCH

public static final CsmStatement.Kind SWITCH
switch statement. An instance is guaranteed to implement CsmSwitchStatement


WHILE

public static final CsmStatement.Kind WHILE
while statement. An instance is guaranteed to implement CsmLoopStatement


DO_WHILE

public static final CsmStatement.Kind DO_WHILE
do ... while statement. An instance is guaranteed to implement CsmLoopStatement


FOR

public static final CsmStatement.Kind FOR
For statement. An instance is guaranteed to implement CsmForStatement


BREAK

public static final CsmStatement.Kind BREAK
Break statement. No special derived interface.


CONTINUE

public static final CsmStatement.Kind CONTINUE
Continue statement. No special derived interface.


RETURN

public static final CsmStatement.Kind RETURN
Return statement. An instance is guaranteed to implement CsmReturnStatement


GOTO

public static final CsmStatement.Kind GOTO
Goto statement. An instance is guaranteed to implement CsmGotoStatement


DECLARATION

public static final CsmStatement.Kind DECLARATION
Declaration statement. An instance is guaranteed to implement CsmDeclarationStatement


TRY_CATCH

public static final CsmStatement.Kind TRY_CATCH
Try... catch statement. An instance is guaranteed to implement CsmTryCatchStatement


CATCH

public static final CsmStatement.Kind CATCH
Exception handler (catch) An instance is guaranteed to implement CsmExceptionHandler


THROW

public static final CsmStatement.Kind THROW
Exception handler (catch) An instance is guaranteed to implement CsmExceptionHandler

Method Detail

values

public static final CsmStatement.Kind[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(CsmStatement.Kind c : CsmStatement.Kind.values())
        System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they're declared

valueOf

public static CsmStatement.Kind valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name

org.netbeans.modules.cnd.api.model/1 1.3 1

Built on November 23 2007.  |  Portions Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.

Project Features

About this Project

CND was started in November 2009, is owned by DimaZh, and has 193 members.
By use of this website, you agree to the NetBeans Policies and Terms of Use (revision 20160708.bf2ac18). © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo
 
 
Close
loading
Please Confirm
Close