1 50 package org.apache.avalon.excalibur.cli; 51 52 61 class Token 62 { 63 64 public static final int TOKEN_SEPARATOR = 0; 65 66 public static final int TOKEN_STRING = 1; 67 68 private final int m_type; 69 private final String m_value; 70 71 74 Token( final int type, final String value ) 75 { 76 m_type = type; 77 m_value = value; 78 } 79 80 83 final String getValue() 84 { 85 return m_value; 86 } 87 88 91 final int getType() 92 { 93 return m_type; 94 } 95 96 99 public final String toString() 100 { 101 final StringBuffer sb = new StringBuffer (); 102 sb.append( m_type ); 103 sb.append( ":" ); 104 sb.append( m_value ); 105 return sb.toString(); 106 } 107 } 108 | Popular Tags |