1 28 package org.jvyamlb.tokens; 29 30 import org.jruby.util.ByteList; 31 32 35 public class ScalarToken extends Token { 36 private ByteList value; 37 private boolean plain; 38 private char style; 39 40 public ScalarToken(final ByteList value, final boolean plain) { 41 this(value,plain,(char)0); 42 } 43 44 public ScalarToken(final ByteList value, final boolean plain, final char style) { 45 this.value = value; 46 this.plain = plain; 47 this.style = style; 48 } 49 50 public boolean getPlain() { 51 return this.plain; 52 } 53 54 public ByteList getValue() { 55 return this.value; 56 } 57 58 public char getStyle() { 59 return this.style; 60 } 61 62 public String toString() { 63 return "#<" + this.getClass().getName() + " value=\"" + new String (value.bytes()) + "\">"; 64 } 65 } | Popular Tags |