org.sonatype.gshell.parser.impl
Class ArgumentSupport

java.lang.Object
  extended by org.sonatype.gshell.parser.impl.SimpleNode
      extended by org.sonatype.gshell.parser.impl.ArgumentSupport
All Implemented Interfaces:
Node

public abstract class ArgumentSupport
extends SimpleNode

Support for argument types.

Since:
2.0
Author:
Jason Dillon

Field Summary
 
Fields inherited from class org.sonatype.gshell.parser.impl.SimpleNode
children, id, parent, parser
 
Constructor Summary
ArgumentSupport(int id)
           
ArgumentSupport(Parser p, int id)
           
 
Method Summary
 String getValue()
           
 void setValue(String value)
           
 String toString()
           
protected  String unquote(String value)
          Returns an unquoted value.
 
Methods inherited from class org.sonatype.gshell.parser.impl.SimpleNode
childrenAccept, dump, jjtAccept, jjtAddChild, jjtClose, jjtGetChild, jjtGetNumChildren, jjtGetParent, jjtGetValue, jjtOpen, jjtSetParent, jjtSetValue, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ArgumentSupport

public ArgumentSupport(int id)

ArgumentSupport

public ArgumentSupport(Parser p,
                       int id)
Method Detail

setValue

public void setValue(String value)

getValue

public String getValue()

toString

public String toString()
Overrides:
toString in class SimpleNode

unquote

protected String unquote(String value)
Returns an unquoted value.

Parameters:
value - String to unquote, must not be null; length must be at least 2
Returns:
Unquoted value


Copyright © 2008-2011 Sonatype. All Rights Reserved.