|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.drools.asm.signature.SignatureWriter
public class SignatureWriter
A signature visitor that generates signatures in string format.
Field Summary |
---|
Fields inherited from interface org.drools.asm.signature.SignatureVisitor |
---|
EXTENDS, INSTANCEOF, SUPER |
Constructor Summary | |
---|---|
SignatureWriter()
Constructs a new SignatureWriter object. |
Method Summary | |
---|---|
String |
toString()
Returns the signature that was built by this signature writer. |
SignatureVisitor |
visitArrayType()
Visits a signature corresponding to an array type. |
void |
visitBaseType(char descriptor)
Visits a signature corresponding to a primitive type. |
SignatureVisitor |
visitClassBound()
Visits the class bound of the last visited formal type parameter. |
void |
visitClassType(String name)
Starts the visit of a signature corresponding to a class or interface type. |
void |
visitEnd()
Ends the visit of a signature corresponding to a class or interface type. |
SignatureVisitor |
visitExceptionType()
Visits the type of a method exception. |
void |
visitFormalTypeParameter(String name)
Visits a formal type parameter. |
void |
visitInnerClassType(String name)
Visits an inner class. |
SignatureVisitor |
visitInterface()
Visits the type of an interface implemented by the class. |
SignatureVisitor |
visitInterfaceBound()
Visits an interface bound of the last visited formal type parameter. |
SignatureVisitor |
visitParameterType()
Visits the type of a method parameter. |
SignatureVisitor |
visitReturnType()
Visits the return type of the method. |
SignatureVisitor |
visitSuperclass()
Visits the type of the super class. |
void |
visitTypeArgument()
Visits an unbounded type argument of the last visited class or inner class type. |
SignatureVisitor |
visitTypeArgument(char wildcard)
Visits a type argument of the last visited class or inner class type. |
void |
visitTypeVariable(String name)
Visits a signature corresponding to a type variable. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SignatureWriter()
SignatureWriter
object.
Method Detail |
---|
public void visitFormalTypeParameter(String name)
SignatureVisitor
visitFormalTypeParameter
in interface SignatureVisitor
name
- the name of the formal parameter.public SignatureVisitor visitClassBound()
SignatureVisitor
visitClassBound
in interface SignatureVisitor
public SignatureVisitor visitInterfaceBound()
SignatureVisitor
visitInterfaceBound
in interface SignatureVisitor
public SignatureVisitor visitSuperclass()
SignatureVisitor
visitSuperclass
in interface SignatureVisitor
public SignatureVisitor visitInterface()
SignatureVisitor
visitInterface
in interface SignatureVisitor
public SignatureVisitor visitParameterType()
SignatureVisitor
visitParameterType
in interface SignatureVisitor
public SignatureVisitor visitReturnType()
SignatureVisitor
visitReturnType
in interface SignatureVisitor
public SignatureVisitor visitExceptionType()
SignatureVisitor
visitExceptionType
in interface SignatureVisitor
public void visitBaseType(char descriptor)
SignatureVisitor
visitBaseType
in interface SignatureVisitor
descriptor
- the descriptor of the primitive type, or 'V' for
void.public void visitTypeVariable(String name)
SignatureVisitor
visitTypeVariable
in interface SignatureVisitor
name
- the name of the type variable.public SignatureVisitor visitArrayType()
SignatureVisitor
visitArrayType
in interface SignatureVisitor
public void visitClassType(String name)
SignatureVisitor
visitClassType
in interface SignatureVisitor
name
- the internal name of the class or interface.public void visitInnerClassType(String name)
SignatureVisitor
visitInnerClassType
in interface SignatureVisitor
name
- the local name of the inner class in its enclosing class.public void visitTypeArgument()
SignatureVisitor
visitTypeArgument
in interface SignatureVisitor
public SignatureVisitor visitTypeArgument(char wildcard)
SignatureVisitor
visitTypeArgument
in interface SignatureVisitor
wildcard
- '+', '-' or '='.
public void visitEnd()
SignatureVisitor
visitEnd
in interface SignatureVisitor
public String toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |