1 package io.guixer.lang.command; 2 3 import static com.google.common.base.Preconditions.checkNotNull; 4 5 import io.guixer.types.AttributeScope; 6 import io.guixer.types.StepType; 7 8 public class TagCommand implements Command { 9 10 @Override 11 public StepType getType() { 12 13 return StepType.TAG; 14 } 15 16 public final AttributeScope scope; 17 public final String name; 18 19 @Override 20 public String toString() { 21 22 return "TagCommand: " + scope + " " + name; 23 } 24 25 public TagCommand( 26 final AttributeScope scope, 27 final String name 28 ) { 29 30 this.scope = checkNotNull(scope, "scope"); 31 this.name = checkNotNull(name, "name"); 32 } 33 }