Class AutoWire
- java.lang.Object
-
- net.officefloor.compile.internal.structure.AutoWire
-
-
Constructor Summary
Constructors Constructor Description AutoWire(java.lang.Class<?> type)
Instantiate.AutoWire(java.lang.Class<? extends java.lang.annotation.Annotation> qualifier, java.lang.Class<?> type)
Instantiate.AutoWire(java.lang.String type)
Instantiate with only type.AutoWire(java.lang.String qualifier, java.lang.Class<?> type)
Instantiate.AutoWire(java.lang.String qualifier, java.lang.String type)
Instantiate.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(AutoWire that)
boolean
equals(java.lang.Object obj)
java.lang.String
getQualifier()
Obtains the qualifier.java.lang.String
getType()
Obtains the type.java.lang.Class<?>
getTypeClass(SourceContext sourceContext)
Obtains the type.int
hashCode()
java.lang.String
toString()
-
-
-
Constructor Detail
-
AutoWire
public AutoWire(java.lang.String qualifier, java.lang.String type)
Instantiate.- Parameters:
qualifier
- Qualifier. May benull
.type
- Type.
-
AutoWire
public AutoWire(java.lang.String type)
Instantiate with only type.- Parameters:
type
- Type.
-
AutoWire
public AutoWire(java.lang.Class<? extends java.lang.annotation.Annotation> qualifier, java.lang.Class<?> type)
Instantiate.- Parameters:
qualifier
- QualifierAnnotation
.type
- Type.
-
AutoWire
public AutoWire(java.lang.String qualifier, java.lang.Class<?> type)
Instantiate.- Parameters:
qualifier
- Qualifier.type
- Type.
-
AutoWire
public AutoWire(java.lang.Class<?> type)
Instantiate.- Parameters:
type
- Type.
-
-
Method Detail
-
getQualifier
public java.lang.String getQualifier()
Obtains the qualifier.- Returns:
- Qualifier. May be
null
.
-
getType
public java.lang.String getType()
Obtains the type.- Returns:
- Type.
-
getTypeClass
public java.lang.Class<?> getTypeClass(SourceContext sourceContext)
Obtains the type.- Parameters:
sourceContext
-SourceContext
.- Returns:
- Type
Class
ornull
if unable to retrieve.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
-