|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<RefAttr> scale.clef.type.RefAttr
public enum RefAttr
This enum specifies the attributes of a reference type - const, aligned, etc.
$Id$
Copyright 2008 by the
Scale Compiler Group,
Department of Computer Science
University of Massachusetts,
Amherst MA. 01003, USA
All Rights Reserved.
This enum describes what attributes are associated with a type. Attributes are non-type information that is associated with a type because they can be associated with just a part of a type declaration.
RefType
Enum Constant Summary | |
---|---|
Aligned
For types whose alignment was specified. |
|
Const
Indicates that instances of this type have a constant value. |
|
None
|
|
Ordered
For types with substructures, this attribute indicates if the source language requires the data layout to preserve the order of substructures (declaration order is assumed). |
|
Restrict
Marks a value which may not be changed by only by restricted means. |
|
Traced
Supports Modula-3's traced data types. |
|
VaList
For the type that represents the builtin type va_list. |
|
Volatile
Marks a value which may be changed by something which a compiler cannot detect. |
Method Summary | |
---|---|
static RefAttr |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static RefAttr[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final RefAttr None
public static final RefAttr Const
One could reasonably argue that the immutability of a value is not a property (or attribute) of a type. However, C++'s typedef construct permits immutability to be included with the type.
public static final RefAttr Volatile
public static final RefAttr Aligned
public static final RefAttr VaList
public static final RefAttr Restrict
public static final RefAttr Ordered
public static final RefAttr Traced
Method Detail |
---|
public static RefAttr[] values()
for (RefAttr c : RefAttr.values()) System.out.println(c);
public static RefAttr valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is null
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |