1 16 17 package org.springframework.beans.factory.parsing; 18 19 import org.springframework.util.Assert; 20 21 29 public class ConstructorArgumentEntry implements ParseState.Entry { 30 31 private final int index; 32 33 34 38 public ConstructorArgumentEntry() { 39 this.index = -1; 40 } 41 42 49 public ConstructorArgumentEntry(int index) { 50 Assert.isTrue(index >= 0, "Constructor argument index must be greater than or equal to zero"); 51 this.index = index; 52 } 53 54 55 public String toString() { 56 return "Constructor-arg" + (this.index >= 0 ? " #" + this.index : ""); 57 } 58 59 } 60 | Popular Tags |