Histórico da Página
...
Bloco de código | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
@annotation AnnotationExemplo /* Programa test_doc_resourceGetFunctionAnnotation.tlpp */ #include "tlpp-core.th" @annotation AnnotationResource nickname as char @end @AnnotationExemplo@AnnotationResource(nickname = "Company"='Totvs') functionFunction exemploAnnotationu_resourceGetFunctionAnnotation() return |
Bloco de código | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
#include "tlpp-core.th" Function u_testGetFunctionAnnotation main function usoDeAnnotation() local oObjjRet jRet := MeuObjeto():New() local jRet if (Reflection.isAnnotationFunctionPresentgetFunctionAnnotation("exemplo1test_doc_resourceGetFunctionAnnotation.tlpp", "exemploAnnotationu_resourceGetFunctionAnnotation", "AnnotationExemploAnnotationResource")) if(valType(jRet) := Reflection.getFunctionAnnotation("exemplo1.tlpp", "exemploAnnotation","AnnotationExemplo<> "U") conout(jRet["NICKNAMEnickname"]) else conout('Não foram encontradas Annotations com os parametros pesquisados') endif return |
Resultado do Exemplo
CompanyTotvs
Abrangência
17.3.0.3
Veja também
...
Visão Geral
Import HTML Content
Conteúdo das Ferramentas
Tarefas