|
Class: XDRType (in SunRPC)
Object
|
+--SunRPC::XDRType
|
+--SunRPC::XDRType::ArrayType
|
+--SunRPC::XDRType::CompoundType
|
+--SunRPC::XDRType::OpaqueType
|
+--SunRPC::XDRType::OptionalType
|
+--SunRPC::XDRType::ScalarType
|
+--SunRPC::XDRType::StringType
|
+--SunRPC::XDRType::TypedefType
|
+--SunRPC::XDRType::UnknownType
|
+--SunRPC::XDRType::VoidType
- Package:
- stx:goodies/communication
- Category:
- Net-Communication-SunRPC-XDR_IDL
- Version:
- rev:
1.25
date: 2019/06/28 07:19:52
- user: cg
- file: SunRPC_XDRType.st directory: goodies/communication
- module: stx stc-classLibrary: communication
- Author:
- Claus Gittinger
an XDRType represents a type of some XDR-datum.
XDRType
XDRDatum
XDRParser
IDLType
IDLDatum
IDLParser
CType
Signal constants
-
accessErrorSignal
-
-
badEnumValueErrorSignal
-
-
badMemberAccessErrorSignal
-
-
elementOutOfBoundsSignal
-
(comment from inherited method)
return the signal used for element error reporting
(this signal is used for example when a value not in 0..255 is to
be put into a bytearray)
-
indexBoundsErrorSignal
-
class access
-
arrayType
-
-
booleanType
-
-
charType
-
-
doubleType
-
-
enumItem
-
-
enumType
-
-
field
-
-
floatType
-
-
hyperType
-
-
intType
-
-
longType
-
-
opaqueType
-
-
optionalType
-
-
shortType
-
-
stringType
-
-
structType
-
-
typedefType
-
-
unionField
-
-
unionType
-
-
unknownType
-
-
unsignedCharType
-
-
unsignedHyperType
-
-
unsignedIntType
-
-
unsignedLongType
-
-
unsignedShortType
-
-
voidType
-
class initialization
-
initialize
-
self initialize
defaults
-
returnBadEnumsAsNumeric: aBoolean
-
should be left false during development & debugging;
can be set to true for end-user-apps.
(however, the app should be prepared to get numeric enum-field values)
-
structAlignment
-
-
unionAlignment
-
accessing
-
name: something
-
set the value of the instance variable 'name' (automatically generated)
accessing-C
-
fieldNamed: fieldName ifAbsent: exceptionValue
-
raise an error for field accesses.
This is only redefined in StructType.
-
fields
-
return my fields - this returns an empty collection here;
redefined in union and struct types
-
name
-
-
type
-
inspecting
-
inspectorClass
-
return the class of an appropriate inspector.
ST/X has a specialized IDLDatumInspectorView for that
printing
-
displayString
-
return a nice printed representation
-
idlString: datum indent: indent
-
helper for displayString.
-
idlString: datum indent: indent fieldName: fieldName
-
helper for displayString.
-
idlString: datum offset: o indent: indent
-
helper for displayString.
-
idlString: datum offset: o indent: indent fieldName: fieldName
-
helper for displayString.
-
methodAgumentNameForTemplate: template
-
return a string usable as argument name giving a type hint;
for example, string types should generate <templ>String
usage example(s):
SunRPC::XDRType::LongType basicNew
methodAgumentNameForTemplate:'arg1'
|
-
smalltalkDefaultValueString
-
return a string usable as default value for this type.
for example, integer types should return '0' here
queries
-
defaultValue
-
-
enumValues
-
raise an error here;
redefined in enum types
-
hasEnumValues
-
true if my type is a kind of enum type
-
isIndexed
-
return true if this Type has fields accessible via an index (i.e. is an array)
-
isInteger
-
return true if this Type represents an integer
(i.e. signed, unsigned integer, short or long)
-
isOptional
-
return true if this Type represents an optional type
-
isXDRArray
-
return true if this Type represents an Array
-
isXDRBoolean
-
return true if this Type represents an Boolean
-
isXDRChar
-
return true if this Type represents a char type
(i.e. signed, unsigned integer)
-
isXDRCompound
-
return true if this Type represents either a struct or a union
-
isXDRDouble
-
return true if this Type represents a double
-
isXDREnum
-
return true if this Type represents an enum
-
isXDRFloat
-
return true if this Type represents a float
-
isXDRHyper
-
return true if this Type represents a hyper size number
(i.e. an int64 or unsigned64 )
-
isXDRInteger
-
return true if this Type represents an integer type
(i.e. signed, unsigned integer)
-
isXDRLong
-
return true if this Type represents a long type
(i.e. signed, unsigned integer)
-
isXDRNumber
-
return true if this Type represents a number
(i.e. signed, unsigned integer, float or double)
-
isXDROpaque
-
return true if this Type represents an opaque
-
isXDRScalar
-
return true if this Type represents a scalar (non composite type).
I.e. its one of char, int, float or short
-
isXDRShort
-
return true if this Type represents a short type
(i.e. signed, unsigned integer)
-
isXDRString
-
return true if this Type represents an array of chars (or unsigned chars)
-
isXDRStruct
-
return true if this Type represents a struct
-
isXDRTypeDef
-
return true if this Type is a typedef
-
isXDRUnion
-
return true if this Type represents a union
-
isXDRUnsigned
-
return true if this Type represents an unsigned integer scalar type.
-
isXDRVoid
-
return true if this Type represents a void type
-
numericEnumValues
-
raise an error here;
redefined in enum types
-
sameTypeAs: aType
-
return true if this Type is compatible with aType
-
symbolicEnumValues
-
raise an error here;
redefined in enum types
-
xdrType
-
return my actual type; that's myself here,
but redefined in typedef, to return the real type
(which will avoid indirections in later accesses)
queries-C
-
alignment
-
return the Types (wire) alignment in bytes
-
memberNames
-
-
sizeof
-
return the Types (wire) size in bytes
** This method raises an error - it must be redefined in concrete classes **
ArrayType
BooleanType
CharType
CompoundType
DoubleType
EnumItem
EnumType
Field
FloatType
HyperType
IntType
IntegerType
LongType
OpaqueType
OptionalType
ScalarType
ShortType
StringType
StructType
TypedefType
UnionField
UnionType
UnknownType
UnsignedCharType
UnsignedHyperType
UnsignedIntType
UnsignedLongType
UnsignedShortType
VoidType
|