Interpreter.java 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. /*
  2. * Copyright 2009-2012 the original author or authors.
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License i distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16. package net.paoding.rose.jade.statement;
  17. import org.springframework.core.annotation.Order;
  18. /**
  19. * 可用 {@link Order}来调节优先级,根据 {@link Order} 语义,值越小越有效;
  20. * <p>
  21. * 如果没有标注 {@link Order} 使用默认值0。
  22. *
  23. * @author 王志亮 [qieqie.wang@gmail.com]
  24. * @author 廖涵 [in355hz@gmail.com]
  25. *
  26. */
  27. //按Spring语义规定,Order值越高该解释器越后执行
  28. @Order(0)
  29. public interface Interpreter {
  30. /**
  31. *
  32. * @param runtime
  33. */
  34. void interpret(StatementRuntime runtime);
  35. }