|
JBoss Logging I18n Annotation Processor 1.0.3.Final-redhat-2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.logging.processor.intf.model.ReturnType.VoidReturnType
public static final class ReturnType.VoidReturnType
Default type if the return type is void.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.jboss.logging.processor.intf.model.ReturnType |
---|
ReturnType.VoidReturnType |
Field Summary |
---|
Fields inherited from interface org.jboss.logging.processor.intf.model.ReturnType |
---|
VOID |
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
boolean |
hasFieldFor(Parameter parameter)
Checks to see if the return type has a field with the name with the same name and type as the parameter . |
int |
hashCode()
|
boolean |
hasMethodFor(Parameter parameter)
Checks to see if the return type has a method with the name with the same name and parameter type as the parameter . |
boolean |
isAssignableFrom(Class<?> type)
Determines if this type is either the same as, or is a supertype of, the class represented by the type
parameter. |
boolean |
isPrimitive()
Indicates whether or not the return type is a primitive. |
boolean |
isSameAs(Class<?> type)
Determines if this type is the same type as the class represented by the type parameter. |
boolean |
isSubtypeOf(Class<?> type)
Determines if this type is a subtype of the class represented by the type parameter. |
boolean |
isThrowable()
Checks to see if the return type is an exception, extends Throwable. |
String |
name()
Returns the qualified class name of the return type. |
Class<Void> |
reference()
The object used to extract information for the message logger or message bundle, if applicable. |
ThrowableType |
throwableReturnType()
Returns the exception return type if ReturnType.isThrowable() returns true . |
String |
toString()
|
String |
type()
Returns the qualified type name of the object. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public boolean hasFieldFor(Parameter parameter)
ReturnType
parameter
.
hasFieldFor
in interface ReturnType
parameter
- the parameter to check.
true
if the field exists, is accessible, mutable and is assignable from the type otherwise
false
.public boolean hasMethodFor(Parameter parameter)
ReturnType
parameter
.
hasMethodFor
in interface ReturnType
parameter
- the parameter to check.
true
if the method exists, is accessible and its parameter is assignable from the type, otherwise
false
.public boolean isThrowable()
ReturnType
isThrowable
in interface ReturnType
true
if the return type is an exception, otherwise
false
.public boolean isPrimitive()
ReturnType
isPrimitive
in interface ReturnType
true
if a primitive, otherwise false
.public String name()
ReturnType
name
in interface MessageObject
name
in interface ReturnType
public ThrowableType throwableReturnType()
ReturnType
ReturnType.isThrowable()
returns true
. Otherwise null
is
returned.
throwableReturnType
in interface ReturnType
null
.public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
public String toString()
toString
in class Object
public Class<Void> reference()
MessageObject
ExecutableElement
might be returned.
reference
in interface MessageObject
public String type()
MessageObjectType
Object.class.getName()
type
in interface MessageObjectType
public boolean isAssignableFrom(Class<?> type)
MessageObjectType
type
parameter. If this type is assignable from the class true
is returned, otherwise false
.
isAssignableFrom
in interface MessageObjectType
type
- the class type to check.
true
if this type is the same as or a superclass of the class, otherwise false
.public boolean isSubtypeOf(Class<?> type)
MessageObjectType
type
parameter. If this type is a
subtype of the class true
is returned, otherwise false
.
isSubtypeOf
in interface MessageObjectType
type
- the class type to check.
true
if this type is a subtype of the class, otherwise false
.public boolean isSameAs(Class<?> type)
MessageObjectType
type
parameter. If this type is
the same type as the class true
is returned, otherwise false
.
isSameAs
in interface MessageObjectType
type
- the class type to check.
true
if this type is the same type as the class, otherwise false
.
|
JBoss Logging I18n Annotation Processor 1.0.3.Final-redhat-2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |