|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jtool.jxplatform.wrapper.JxElement
org.jtool.jxplatform.wrapper.JxType
An object wrapping the Type element.
| Field Summary | |
protected java.lang.String |
fqn
The fully-qualified name of this type. |
protected java.lang.String |
name
The name of this type. |
protected org.w3c.dom.Element |
simpleTypeElem
An element corresponding to the simple type. |
protected java.lang.String |
sort
The sort of this type. |
| Fields inherited from class org.jtool.jxplatform.wrapper.JxElement |
element |
| Constructor Summary | |
protected |
JxType()
Creates a new, empty object. |
protected |
JxType(org.w3c.dom.Element elem)
Creates a new object wrapping a Type element. |
| Method Summary | |
boolean |
equals(JxType jtype)
Tests if a given type wrapper equals to this one. |
java.lang.String |
getFqn()
Returns the fully-qualified name of this type. |
static java.lang.String |
getLiteralType(java.lang.String sort)
Returns the type of the kind of a literal element. |
java.lang.String |
getName()
Returns the name of this type. |
static java.lang.String |
getPrimitiveTypeInWidening(java.lang.String type1,
java.lang.String type2)
Returns the type after wideing conversion of given two types. |
JxClass |
getReferencedJxClass()
Returns the class wrapper referenced by this type. |
java.lang.String |
getSimpleFqn()
Returns the simple fully-qualified name of this type. |
java.lang.String |
getSimpleName()
Returns the simple name of this type. |
static java.lang.String |
getTypeInWidening(java.lang.String type1,
java.lang.String type2)
Returns the type after wideing conversion of given two types. |
boolean |
isChildOfDotExpression()
Tests if this type element is enclosed by a dot expression. |
boolean |
isObjectRef()
Tests if this type is a non-primitive one or a non0primitive array. |
boolean |
isPrimitive()
Tests if this type is a primitive one or a primitive array. |
static boolean |
isPrimitiveType(java.lang.String type)
Tests if the type is primitive. |
static boolean |
isType(org.w3c.dom.Element elem)
Tests if a given element equals to Type. |
void |
print()
Displays information about this type wrapper for debugging. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected java.lang.String name
protected java.lang.String fqn
protected java.lang.String sort
protected org.w3c.dom.Element simpleTypeElem
| Constructor Detail |
protected JxType()
protected JxType(org.w3c.dom.Element elem)
throws JxWrapperException
Type element.
elem - An DOM element to be wrapped.
JxWrapperException - if the specified element is not valid.| Method Detail |
public boolean isPrimitive()
true if this type is a primitive one or a primitive array.public boolean isObjectRef()
true if this type is a non-primitive one or a non0primitive array.public java.lang.String getSimpleName()
public java.lang.String getName()
public java.lang.String getSimpleFqn()
public java.lang.String getFqn()
public JxClass getReferencedJxClass()
throws JxWrapperException
JxClass wrapper of the referenced class, or null if this type is primitive.
JxWrapperException - if no class wrapper is found.
JxWrapperExceptionpublic static boolean isType(org.w3c.dom.Element elem)
Type.
elem - An element of the DOM.
true if the element equals to Type.public boolean isChildOfDotExpression()
true if the element is a child of a dot expression.public boolean equals(JxType jtype)
jtype - A type wrapper.
true if the type wrapper equals to this one, otherwise false.public static boolean isPrimitiveType(java.lang.String type)
type - A type to be examined.
true if the type is primitive, othwerwise false.public static java.lang.String getLiteralType(java.lang.String sort)
literal element.
sort - The sort of a literal.
java.lang.String.
public static java.lang.String getTypeInWidening(java.lang.String type1,
java.lang.String type2)
type1 - A type string.type2 - A type string.
public static java.lang.String getPrimitiveTypeInWidening(java.lang.String type1,
java.lang.String type2)
type1 - A type string.type2 - A type string.
public void print()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||