public class Command extends Object
Constructor and Description |
---|
Command(String tagName,
Map<String,String> attrs) |
Command(XMLDecoder decoder,
String tagName,
Map<String,String> attrs) |
Modifier and Type | Method and Description |
---|---|
void |
addChild(Command cmd) |
boolean |
backtrack(Map<String,Command> references) |
int |
exec(Map<String,Command> references) |
String |
getAttr(String name) |
static Class<?> |
getPrimitiveClass(String className) |
Argument |
getResult() |
Class<?> |
getResultType() |
Object |
getResultValue() |
int |
getStatus() |
String |
getTagName() |
boolean |
hasAttr(String name) |
boolean |
hasAttr(String name,
String value) |
boolean |
isExecutable() |
static boolean |
isPrimitiveClassName(String className) |
boolean |
isTag(String name) |
static Map<String,String> |
parseAttrs(String tagName,
Attributes attrs) |
static void |
pr(int tabCount,
String msg) |
static void |
pr(String msg) |
static void |
printAttrs(int tabCount,
String tagName,
Attributes attrs) |
static void |
prn(int tabCount,
String msg) |
static void |
prn(String msg) |
void |
removeChild(Command cmd) |
void |
setContext(Command ctx) |
void |
setData(String data) |
public Command(XMLDecoder decoder, String tagName, Map<String,String> attrs)
public void setData(String data)
public void setContext(Command ctx)
public void addChild(Command cmd)
public void removeChild(Command cmd)
public int getStatus()
public boolean backtrack(Map<String,Command> references) throws Exception
Exception
public Argument getResult()
public Object getResultValue()
public Class<?> getResultType() throws ClassNotFoundException
ClassNotFoundException
public boolean hasAttr(String name)
public boolean isTag(String name)
public String getTagName()
public boolean isExecutable()
public static boolean isPrimitiveClassName(String className)
public static Map<String,String> parseAttrs(String tagName, Attributes attrs)
public static void pr(String msg)
public static void pr(int tabCount, String msg)
public static void prn(String msg)
public static void prn(int tabCount, String msg)
public static void printAttrs(int tabCount, String tagName, Attributes attrs)
Copyright © 2013. All Rights Reserved.