|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectrailo.transformer.bytecode.util.ASMUtil
public final class ASMUtil
Field Summary | |
---|---|
static short |
TYPE_ALL
|
static short |
TYPE_BOOLEAN
|
static short |
TYPE_NUMERIC
|
static short |
TYPE_STRING
|
Constructor Summary | |
---|---|
ASMUtil()
|
Method Summary | |
---|---|
static boolean |
containsComponent(Body body)
|
static String |
createMD5(ASMProperty[] props)
|
static String |
createOverfowMethod()
|
static byte[] |
createPojo(String className,
ASMProperty[] properties,
Class parent,
Class[] interfaces,
String srcName)
|
static Tag |
getAncestorComponent(Statement stat)
|
static FlowControl |
getAncestorFlowControlStatement(Statement stat)
get ancestor LoopStatement |
static Page |
getAncestorPage(Statement stat)
|
static Tag |
getAncestorTag(Tag tag,
String fullName)
Gibt ein �bergeordnetes Tag mit dem �bergebenen Full-Name (Namespace und Name) zur�ck, falls ein solches existiert, andernfalls wird null zur�ckgegeben. |
static Statement |
getAncestorTryStatement(Statement stat)
|
static Boolean |
getAttributeBoolean(Tag tag,
String attrName)
extract the content of a attribut |
static Boolean |
getAttributeBoolean(Tag tag,
String attrName,
Boolean defaultValue)
extract the content of a attribut |
static Literal |
getAttributeLiteral(Tag tag,
String attrName)
extract the content of a attribut |
static Literal |
getAttributeLiteral(Tag tag,
String attrName,
Literal defaultValue)
extract the content of a attribut |
static String |
getAttributeString(Tag tag,
String attrName)
extract the content of a attribut |
static String |
getAttributeString(Tag tag,
String attrName,
String defaultValue)
extract the content of a attribut |
static org.objectweb.asm.ClassWriter |
getClassWriter()
|
static String |
getId()
|
static Tag |
getParentTag(Tag tag)
Gibt das �bergeordnete CFXD Tag Element zur�ck, falls dies nicht existiert wird null zur�ckgegeben. |
static Statement |
getRoot(Statement stat)
|
static Class |
getValueTypeClass(org.objectweb.asm.Type type,
Class defaultValue)
|
static boolean |
hasAncestorLoopStatement(Statement stat)
has ancestor LoopStatement |
static boolean |
hasAncestorTag(Tag tag,
String fullName)
Gibt zur�ck ob das direkt �bergeordnete Tag mit dem �bergebenen Full-Name (Namespace und Name) existiert. |
static boolean |
hasAncestorTryStatement(Statement stat)
|
static boolean |
hasSisterTagAfter(Tag tag,
String nameToFind)
Pr�ft ob das das angegebene Tag in der gleichen Ebene nach dem angegebenen Tag vorkommt. |
static boolean |
hasSisterTagWithSameName(Tag tag)
Pr�ft ob das angegebene Tag innerhalb seiner Ebene einmalig ist oder nicht. |
static void |
invokeMethod(org.objectweb.asm.commons.GeneratorAdapter adapter,
org.objectweb.asm.Type type,
org.objectweb.asm.commons.Method method)
|
static boolean |
isCFC(Statement s)
|
static boolean |
isDotKey(ExprString expr)
|
static boolean |
isEmpty(Body body)
|
static boolean |
isLiteralAttribute(Tag tag,
String attrName,
short type,
boolean required,
boolean throwWhenNot)
|
static boolean |
isOverfowMethod(String name)
|
static boolean |
isParentTag(Tag tag,
Class clazz)
|
static boolean |
isParentTag(Tag tag,
String fullName)
|
static boolean |
isRefType(org.objectweb.asm.Type type)
|
static boolean |
isRoot(Statement statement)
|
static void |
listAncestor(Statement stat)
|
static int |
loadFor(org.objectweb.asm.Type type)
|
static void |
pop(org.objectweb.asm.commons.GeneratorAdapter adapter,
Expression expr,
int mode)
|
static void |
pop(org.objectweb.asm.commons.GeneratorAdapter adapter,
org.objectweb.asm.Type type)
|
static void |
remove(Tag tag)
remove this tag from his parent body |
static void |
removeLiterlChildren(Tag tag,
boolean recursive)
|
static void |
replace(Tag src,
Tag trg,
boolean moveBody)
replace src with trg |
static int |
sizeOf(org.objectweb.asm.Type type)
|
static Boolean |
toBoolean(Attribute attr,
int line)
|
static Boolean |
toBoolean(Attribute attr,
int line,
Boolean defaultValue)
|
static org.objectweb.asm.Type |
toRefType(org.objectweb.asm.Type type)
|
static String |
toString(Expression exp)
|
static String |
toString(Expression exp,
String defaultValue)
|
static org.objectweb.asm.Type |
toType(Class type,
boolean axistype)
translate a string cfml type definition to a Type Object |
static org.objectweb.asm.Type |
toType(String cfType,
boolean axistype)
translate a string cfml type definition to a Type Object |
static org.objectweb.asm.Type |
toValueType(org.objectweb.asm.Type type)
return value type only when there is one |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final short TYPE_ALL
public static final short TYPE_BOOLEAN
public static final short TYPE_NUMERIC
public static final short TYPE_STRING
Constructor Detail |
---|
public ASMUtil()
Method Detail |
---|
public static boolean hasAncestorTag(Tag tag, String fullName)
el
- Startelement, von wo aus gesucht werden soll.fullName
- Name des gesuchten Tags.
public static Tag getParentTag(Tag tag)
el
- Element von dem das parent Element zur�ckgegeben werden soll.
public static boolean isParentTag(Tag tag, String fullName)
public static boolean isParentTag(Tag tag, Class clazz)
public static boolean hasAncestorLoopStatement(Statement stat)
stat
-
public static FlowControl getAncestorFlowControlStatement(Statement stat)
stat
- ingoreScript
-
public static boolean hasAncestorTryStatement(Statement stat)
public static Statement getAncestorTryStatement(Statement stat)
public static Tag getAncestorTag(Tag tag, String fullName)
el
- Startelement, von wo aus gesucht werden soll.fullName
- Name des gesuchten Tags.
public static Boolean getAttributeBoolean(Tag tag, String attrName) throws EvaluatorException
cfxdTag
- attrName
-
EvaluatorException
public static Boolean getAttributeBoolean(Tag tag, String attrName, Boolean defaultValue)
cfxdTag
- attrName
-
EvaluatorException
public static String getAttributeString(Tag tag, String attrName) throws EvaluatorException
cfxdTag
- attrName
-
EvaluatorException
public static String getAttributeString(Tag tag, String attrName, String defaultValue)
cfxdTag
- attrName
-
EvaluatorException
public static Literal getAttributeLiteral(Tag tag, String attrName) throws EvaluatorException
cfxdTag
- attrName
-
EvaluatorException
public static Literal getAttributeLiteral(Tag tag, String attrName, Literal defaultValue)
cfxdTag
- attrName
-
EvaluatorException
public static boolean hasSisterTagAfter(Tag tag, String nameToFind)
tag
- Ausgangspunkt, nach diesem tag darf das angegebene nicht vorkommen.nameToFind
- Tag Name der nicht vorkommen darf
public static boolean hasSisterTagWithSameName(Tag tag)
tag
- Ausgangspunkt, nach diesem tag darf das angegebene nicht vorkommen.
public static void remove(Tag tag)
tag
- public static void replace(Tag src, Tag trg, boolean moveBody)
src
- trg
- public static Page getAncestorPage(Statement stat) throws BytecodeException
BytecodeException
public static void listAncestor(Statement stat) throws BytecodeException
BytecodeException
public static Tag getAncestorComponent(Statement stat) throws BytecodeException
BytecodeException
public static Statement getRoot(Statement stat)
public static boolean isRoot(Statement statement)
public static void invokeMethod(org.objectweb.asm.commons.GeneratorAdapter adapter, org.objectweb.asm.Type type, org.objectweb.asm.commons.Method method)
public static byte[] createPojo(String className, ASMProperty[] properties, Class parent, Class[] interfaces, String srcName) throws PageException
PageException
public static int loadFor(org.objectweb.asm.Type type)
public static int sizeOf(org.objectweb.asm.Type type)
public static org.objectweb.asm.Type toType(String cfType, boolean axistype) throws PageException
cfType
- axistype
-
PageException
public static org.objectweb.asm.Type toType(Class type, boolean axistype)
cfType
- axistype
-
PageException
public static String createMD5(ASMProperty[] props)
public static void removeLiterlChildren(Tag tag, boolean recursive)
public static String getId()
public static boolean isEmpty(Body body)
public static void pop(org.objectweb.asm.commons.GeneratorAdapter adapter, Expression expr, int mode)
adapter
- expr
- mode
- public static void pop(org.objectweb.asm.commons.GeneratorAdapter adapter, org.objectweb.asm.Type type)
public static org.objectweb.asm.ClassWriter getClassWriter()
public static String createOverfowMethod()
public static boolean isOverfowMethod(String name)
public static boolean isDotKey(ExprString expr)
public static String toString(Expression exp, String defaultValue)
public static String toString(Expression exp) throws BytecodeException
BytecodeException
public static Boolean toBoolean(Attribute attr, int line) throws BytecodeException
BytecodeException
public static Boolean toBoolean(Attribute attr, int line, Boolean defaultValue)
public static boolean isCFC(Statement s)
public static boolean isLiteralAttribute(Tag tag, String attrName, short type, boolean required, boolean throwWhenNot) throws EvaluatorException
EvaluatorException
public static boolean isRefType(org.objectweb.asm.Type type)
public static org.objectweb.asm.Type toRefType(org.objectweb.asm.Type type)
public static org.objectweb.asm.Type toValueType(org.objectweb.asm.Type type)
type
-
public static Class getValueTypeClass(org.objectweb.asm.Type type, Class defaultValue)
public static boolean containsComponent(Body body)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |