|
UDK 3.2.7 Java API 言及/関連 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
com.sun.星/主役にする.uno
Class Type
java.lang.反対するcom.sun.星/主役にする.uno.Type
public class Type
- 延長するs 反対する
代表するs the UNO built-in type TYPE.
The UNO type is not 直接/まっすぐに mapped to java.lang.Class for at
least two 推論する/理由s. For one, some UNO types (like UNSIGNED
SHORT) do not have a matching Java class. For another, it can be
necessary to 述べる a type which is unknown to the Java runtime system
(for example, for 延期するing the need of a class, so that it is possible to
生成する it on the 飛行機で行く.)
A Type is uniquely 決定するd by its type class (a
TypeClass) and its type 指名する (a String); these two
will never be null. A Type may have an 付加
"z class" (a java.lang.Class), giving a Java class type that
corresponds to the UNO type. Also, a Type can (武器などの)隠匿場所 a type
description (a com.sun.星/主役にする.uno.ITypeDescription), which can be
計算するd and 始める,決める by TypeDescription.getTypeDescription.
| Field 要約 | |
|---|---|
保護するd Class |
_class
|
保護するd ITypeDescription |
_iTypeDescription
|
保護するd TypeClass |
_typeClass
|
保護するd String |
_typeName
|
static Type |
ANY
|
static Type |
BOOLEAN
|
static Type |
BYTE
|
static Type |
CHAR
|
static Type |
DOUBLE
|
static Type |
FLOAT
|
static Type |
HYPER
|
static Type |
LONG
|
static Type |
SHORT
|
static Type |
STRING
|
static Type |
TYPE
|
static Type |
UNSIGNED_HYPER
|
static Type |
UNSIGNED_LONG
|
static Type |
UNSIGNED_SHORT
|
static Type |
VOID
|
| 建設者 要約 | |
|---|---|
Type()
建設するs a new Type which defaults to VOID. |
|
Type(Class zClass)
建設するs a new Type from the given
java.lang.Class. |
|
Type(Class zClass,
boolean 代案/選択肢)
建設するs a new Type from the given
java.lang.Class, 扱うing あいまいな 事例/患者s. |
|
Type(ITypeDescription typeDescription)
建設するs a new Type from the given type description. |
|
Type(String typeName)
建設するs a new Type with the given type 指名する. |
|
Type(String typeName,
TypeClass typeClass)
建設するs a new Type with the given type class and type
指名する. |
|
Type(TypeClass typeClass)
建設するs a new Type with the given type class. |
|
| Method 要約 | |
|---|---|
boolean |
equals(反対する obj)
|
TypeClass |
getTypeClass()
Gets the type class. |
ITypeDescription |
getTypeDescription()
Gives the type description of this type. |
String |
getTypeName()
Gets the type 指名する. |
Class |
getZClass()
Gets the Java class. |
int |
hashCode()
|
boolean |
isSupertypeOf(Type type)
決定するs whether this UNO type is a supertype of another UNO type. |
無効の |
setTypeDescription(ITypeDescription typeDescription)
始める,決めるs the type description for this type. |
String |
toString()
|
| Methods 相続するd from class java.lang.反対する |
|---|
clone, 完結する, getClass, 通知する, notifyAll, wait, wait, wait |
| Field 詳細(に述べる) |
|---|
VOID
public static final Type VOID
CHAR
public static final Type CHAR
BOOLEAN
public static final Type BOOLEAN
BYTE
public static final Type BYTE
SHORT
public static final Type SHORT
UNSIGNED_SHORT
public static final Type UNSIGNED_SHORT
LONG
public static final Type LONG
UNSIGNED_LONG
public static final Type UNSIGNED_LONG
HYPER
public static final Type HYPER
UNSIGNED_HYPER
public static final Type UNSIGNED_HYPER
FLOAT
public static final Type FLOAT
DOUBLE
public static final Type DOUBLE
STRING
public static final Type STRING
TYPE
public static final Type TYPE
ANY
public static final Type ANY
_typeClass
保護するd TypeClass _typeClass
_typeName
保護するd String _typeName
_class
保護するd Class _class
_iTypeDescription
保護するd ITypeDescription _iTypeDescription
| 建設者 詳細(に述べる) |
|---|
Type
public Type()
- 建設するs a new
Typewhich defaults toVOID.
Type
public Type(String typeName, TypeClass typeClass)
- 建設するs a new
Typewith the given type class and type 指名する.- Parameters:
typeName- the type 指名する. Must not benull.typeClass- the type class. Must not benull, and must match thetypeName(for example, it is 違法な to 連合させる atypeNameof"無効の"with atypeClassofBOOLEAN).
Type
public Type(Class zClass)
- 建設するs a new
Typefrom the givenjava.lang.Class.This is 同等(の) to
Type(zClass, 誤った).- Parameters:
zClass- the Java class of this type. Must not benull.
Type
public Type(Class zClass, boolean 代案/選択肢)
- 建設するs a new
Typefrom the givenjava.lang.Class, 扱うing あいまいな 事例/患者s.In 確かな 事例/患者s, one Java class corresponds to two UNO types (e.g., the Java class
short[].classcorresponds to both a sequence ofSHORT and a sequence of UNSIGNED SHORTin UNO). In such あいまいな 事例/患者s, the parameter代案/選択肢支配(する)/統制するs which UNO type is chosen:- If the Java type is (an array type with element type)
shortorjava.lang.Short: If代案/選択肢is誤った, the chosen UNO type is (a sequence type with element type)SHORT. If代案/選択肢istrue, the chosen UNO type is (a sequence type with element type)UNSIGNED SHORT. - If the Java type is (an array type with element type)
intorjava.lang.Integer: If代案/選択肢is誤った, the chosen UNO type is (a sequence type with element type)LONG. If代案/選択肢istrue, the chosen UNO type is (a sequence type with element type)UNSIGNED LONG. - If the Java type is (an array type with element type)
longorjava.lang.Long: If代案/選択肢is誤った, the chosen UNO type is (a sequence type with element type)HYPER. If代案/選択肢istrue, the chosen UNO type is (a sequence type with element type)UNSIGNED HYPER. - If the Java type is (an array type with element type)
java.lang.反対する: If代案/選択肢is誤った, the chosen UNO type is (a sequence type with element type)ANY. If代案/選択肢istrue, the chosen UNO type is (a sequence type with element type)com.sun.星/主役にする.uno.XInterface.
In all other 事例/患者s, the value of
代案/選択肢is ignored.This 建設者 cannot be used to create
Typeinstances that 代表する (sequences of) instantiated polymorphic struct types.- Parameters:
zClass- the Java class of this type; must not benull代案/選択肢- 支配(する)/統制するs which UNO type to choose in 事例/患者 of ambiguities- Since:
- UDK 3.2.0
- If the Java type is (an array type with element type)
Type
public Type(ITypeDescription typeDescription)
- 建設するs a new
Typefrom the given type description.- Parameters:
typeDescription- a type description. Must not benull.
Type
public Type(String typeName)
- 建設するs a new
Typewith the given type 指名する.- Parameters:
typeName- the 指名する of this type; must not benull.
Type
public Type(TypeClass typeClass)
- 建設するs a new
Typewith the given type class.- Parameters:
typeClass- the type class of this type; must not benull. Only type classes for simple types are 許すd here.- Throws:
IllegalArgumentException- if the giventypeClassis not simple (for example, a struct or an interface type). This 建設者 could not find out the type 指名する in such a 事例/患者.
| Method 詳細(に述べる) |
|---|
getTypeClass
public TypeClass getTypeClass()
- Gets the type class.
- Returns:
- the type class. Will never be
null, but might beUNKNOWN.
getTypeName
public String getTypeName()
- Gets the type 指名する.
- Returns:
- the type 指名する; will never be
null
getZClass
public Class getZClass()
- Gets the Java class.
- Returns:
- the type 指名する; may be
nullin extreme 状況/情勢s (inconsistentTypeClass, error 負担ing a class)
getTypeDescription
public ITypeDescription getTypeDescription()
- Gives the type description of this type.
- Returns:
- the type description; may be
null
setTypeDescription
public 無効の setTypeDescription(ITypeDescription typeDescription)
- 始める,決めるs the type description for this type.
- Parameters:
typeDescription- the type description
isSupertypeOf
public boolean isSupertypeOf(Type type)
- 決定するs whether this UNO type is a supertype of another UNO type.
UNO only defines the に引き続いて supertype relations:
(1) A struct type t1 is a supertype of a struct type t2, if either t1
and t2 are the same, or t1 is a direct or indirect parent of t2.
(2) An exception type t1 is a supertype of an exception type t2, if
either t1 and t2 are the same, or t1 is a direct or indirect parent
of t2.
(3) An interface type t1 is a supertype of an interface type t2, if
either t1 and t2 are the same, or t1 is a direct or indirect parent
of t2.
に引き続いて the 条約s of the Java UNO language binding,
com.sun.星/主役にする.uno.Exception is not considered a supertype of
com.sun.星/主役にする.uno.RuntimeException or any exception type derived from
com.sun.星/主役にする.uno.RuntimeException.
- Parameters:
type- some Type- Returns:
- true if this type is a supertype of the given type
- Since:
- UDK 3.2.0
equals
public boolean equals(反対する obj)
hashCode
public int hashCode()
toString
public String toString()
|
UDK 3.2.7 Java API 言及/関連 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

com.sun.星/主役にする.uno.Type
