UNPKG

lib-utils-ts

Version:

<img src="https://img.shields.io/npm/v/lib-utils-ts"/> <img src="https://img.shields.io/snyk/vulnerabilities/npm/lib-utils-ts"/> <img src="https://img.shields.io/npm/l/lib-utils-ts"/> <img src="https://img.shields.io/github/languages/top/devGnode/lib-util

16 lines (13 loc) 592 B
import {AnnotationTarget, Invokable} from "./Interfaces"; import {AnnotationHandlers} from "./AnnotationHandlers"; import {Field} from "../Reflect/Field"; import {System} from "../lang/System"; export class Deprecate implements Invokable{ public invoke(annotation: AnnotationTarget<Field>): void { System.out.println( annotation.getReflector().toString()+" it was deprecated !" ); } public static Deprecated(target:Object, property:string):void{ AnnotationHandlers.attribute<Deprecate>(new Deprecate()).call(null,target, property); } } Object.package(this);