import.css=/download/attachments/6062824/tecnologia.css |
Efetua a busca de uma Annotation em uma função de um determinado programa fonte.
Reflection.isAnnotationFunctionPresent( cSourceName, cFunctionName, cAnnotationName ) |
Nome | Tipo | Descrição | Obrigatório | Referência |
---|---|---|---|---|
cSourceName | caractere | Nome do fonte contendo a função onde será procurada a Annotation. | X | |
cPropertyName | caractere | Nome da função onde será procurada a Annotation. | X | |
cAnnotationName | caractere | Nome da Annotation a ser procurada. | X |
Nome | Tipo | Descrição |
---|---|---|
lRet | logico | Retorna .T. caso encontre a Annotation e .F. caso não encontre. |
/* Programa test_doc_resourceIsAnnotationFunctionPresent.tlpp */ #include "tlpp-core.th" @annotation AnnotationExemplo resourceExemplo as char @end @AnnotationExemplo(resourceExemplo='Valor de Exemplo1') function u_resourceIsAnnotationFunctionPresent() return |
#include "tlpp-core.th" Function u_testIsAnnotationFunctionPresent() Conout(Reflection.isAnnotationFunctionPresent('test_doc_resourceIsAnnotationFunctionPresent.tlpp', "u_resourceIsAnnotationFunctionPresent", "AnnotationExemplo")) Conout(Reflection.isAnnotationFunctionPresent('test_doc_resourceIsAnnotationFunctionPresent.tlpp', "u_resourceIsAnnotationFunctionPresent", "AnotherAnnotationExemplo")) Return |
.T.
.F.
17.3.0.3