Метод | Описание | |
---|---|---|
AnnotationHandler ( Class type ) : System |
Constructor for the
|
|
Attributes ( System.StringBuilder builder ) : void |
This is used to build a string from the annotation. The string produces adheres to the typical string representation of a normal annotation. This ensures that an exceptions that are thrown with a string representation of the annotation are identical to those thrown with a normal annotation.
|
|
Equals ( Object proxy, Object list ) : bool |
This is used to determine if two annotations are equals based on the attributes of the annotation. The comparison done can ignore specific attributes, for instance the name attribute.
|
|
Invoke ( Object proxy, Method method, Object list ) : Object |
This is used to handle all invocations on the wrapped annotation. Typically the response to an invocation will result in the default value of the annotation attribute being returned. If the method is an
|
|
Name ( System.StringBuilder builder ) : void |
This is used to build a string from the annotation. The string produces adheres to the typical string representation of a normal annotation. This ensures that an exceptions that are thrown with a string representation of the annotation are identical to those thrown with a normal annotation.
|
|
ToString ( ) : String |
This is used to build a string from the annotation. The string produces adheres to the typical string representation of a normal annotation. This ensures that an exceptions that are thrown with a string representation of the annotation are identical to those thrown with a normal annotation.
|
|
Value ( Method method ) : Object |
This is used to extract the default value used for the provided annotation attribute. This will return the default value for all attributes except that it makes the requirement optional. Making the requirement optional provides better functionality.
|
public AnnotationHandler ( Class type ) : System | ||
type | Class | /// this is the annotation type that this is wrapping /// |
Результат | System |
public Attributes ( System.StringBuilder builder ) : void | ||
builder | System.StringBuilder | /// this is the builder used to compose the text /// |
Результат | void |
public Equals ( Object proxy, Object list ) : bool | ||
proxy | Object | /// this is the annotation the invocation was made on /// |
list | Object | /// this is the parameters provided to the invocation /// |
Результат | bool |
public Invoke ( Object proxy, Method method, Object list ) : Object | ||
proxy | Object | /// this is the proxy object the invocation was made on /// |
method | Method | /// this is the method that was invoked on the proxy /// |
list | Object | /// this is the list of parameters to be used /// |
Результат | Object |
public Name ( System.StringBuilder builder ) : void | ||
builder | System.StringBuilder | /// this is the builder used to compose the text /// |
Результат | void |
public Value ( Method method ) : Object | ||
method | Method | /// this is the annotation representing the attribute /// |
Результат | Object |