org.jetbrains.jet.rt.signature
Class JetSignatureWriter

java.lang.Object
  extended by org.jetbrains.jet.rt.signature.JetSignatureWriter
All Implemented Interfaces:
JetSignatureVisitor

public class JetSignatureWriter
extends Object
implements JetSignatureVisitor

See Also:
SignatureWriter

Field Summary
 
Fields inherited from interface org.jetbrains.jet.rt.signature.JetSignatureVisitor
EXTENDS, INSTANCEOF, SUPER
 
Constructor Summary
JetSignatureWriter()
          Constructs a new SignatureWriter object.
 
Method Summary
 String toString()
           
 JetSignatureWriter visitArrayType(boolean nullable, JetSignatureVariance wildcard)
          Visits a signature corresponding to an array type.
 void visitBaseType(char descriptor, boolean nullable)
          Visits a signature corresponding to a primitive type.
 JetSignatureWriter visitClassBound()
          Visits the class bound of the last visited formal type parameter.
 void visitClassType(String name, boolean nullable, boolean forceReal)
          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.
 JetSignatureWriter visitExceptionType()
          Visits the type of a method exception.
 JetSignatureVisitor visitFormalTypeParameter(String name, TypeInfoVariance variance, boolean reified)
          Visits a formal type parameter.
 void visitFormalTypeParameterEnd()
           
 void visitInnerClassType(String name, boolean nullable, boolean forceReal)
          Visits an inner class.
 JetSignatureWriter visitInterface()
          Visits the type of an interface implemented by the class.
 JetSignatureWriter visitInterfaceBound()
          Visits an interface bound of the last visited formal type parameter.
 JetSignatureWriter visitParameterType()
          Visits the type of a method parameter.
 JetSignatureWriter visitReturnType()
          Visits the return type of the method.
 JetSignatureWriter visitSuperclass()
          Visits the type of the super class.
 void visitTypeArgument()
          Visits an unbounded type argument of the last visited class or inner class type.
 JetSignatureWriter visitTypeArgument(JetSignatureVariance variance)
          Visits a type argument of the last visited class or inner class type.
 void visitTypeVariable(String name, boolean nullable)
          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

JetSignatureWriter

public JetSignatureWriter()
Constructs a new SignatureWriter object.

Method Detail

visitFormalTypeParameter

public JetSignatureVisitor visitFormalTypeParameter(String name,
                                                    TypeInfoVariance variance,
                                                    boolean reified)
Description copied from interface: JetSignatureVisitor
Visits a formal type parameter. TODO should not store reified flag in signature

Specified by:
visitFormalTypeParameter in interface JetSignatureVisitor
Parameters:
name - the name of the formal parameter.

visitFormalTypeParameterEnd

public void visitFormalTypeParameterEnd()
Specified by:
visitFormalTypeParameterEnd in interface JetSignatureVisitor

visitClassBound

public JetSignatureWriter visitClassBound()
Description copied from interface: JetSignatureVisitor
Visits the class bound of the last visited formal type parameter.

Specified by:
visitClassBound in interface JetSignatureVisitor
Returns:
a non null visitor to visit the signature of the class bound.

visitInterfaceBound

public JetSignatureWriter visitInterfaceBound()
Description copied from interface: JetSignatureVisitor
Visits an interface bound of the last visited formal type parameter.

Specified by:
visitInterfaceBound in interface JetSignatureVisitor
Returns:
a non null visitor to visit the signature of the interface bound.

visitSuperclass

public JetSignatureWriter visitSuperclass()
Description copied from interface: JetSignatureVisitor
Visits the type of the super class.

Specified by:
visitSuperclass in interface JetSignatureVisitor
Returns:
a non null visitor to visit the signature of the super class type.

visitInterface

public JetSignatureWriter visitInterface()
Description copied from interface: JetSignatureVisitor
Visits the type of an interface implemented by the class.

Specified by:
visitInterface in interface JetSignatureVisitor
Returns:
a non null visitor to visit the signature of the interface type.

visitParameterType

public JetSignatureWriter visitParameterType()
Description copied from interface: JetSignatureVisitor
Visits the type of a method parameter.

Specified by:
visitParameterType in interface JetSignatureVisitor
Returns:
a non null visitor to visit the signature of the parameter type.

visitReturnType

public JetSignatureWriter visitReturnType()
Description copied from interface: JetSignatureVisitor
Visits the return type of the method.

Specified by:
visitReturnType in interface JetSignatureVisitor
Returns:
a non null visitor to visit the signature of the return type.

visitExceptionType

public JetSignatureWriter visitExceptionType()
Description copied from interface: JetSignatureVisitor
Visits the type of a method exception.

Specified by:
visitExceptionType in interface JetSignatureVisitor
Returns:
a non null visitor to visit the signature of the exception type.

visitBaseType

public void visitBaseType(char descriptor,
                          boolean nullable)
Description copied from interface: JetSignatureVisitor
Visits a signature corresponding to a primitive type.

Specified by:
visitBaseType in interface JetSignatureVisitor
Parameters:
descriptor - the descriptor of the primitive type, or 'V' for void.

visitTypeVariable

public void visitTypeVariable(String name,
                              boolean nullable)
Description copied from interface: JetSignatureVisitor
Visits a signature corresponding to a type variable.

Specified by:
visitTypeVariable in interface JetSignatureVisitor
Parameters:
name - the name of the type variable.

visitArrayType

public JetSignatureWriter visitArrayType(boolean nullable,
                                         JetSignatureVariance wildcard)
Description copied from interface: JetSignatureVisitor
Visits a signature corresponding to an array type.

Specified by:
visitArrayType in interface JetSignatureVisitor
Returns:
a non null visitor to visit the signature of the array element type.

visitClassType

public void visitClassType(String name,
                           boolean nullable,
                           boolean forceReal)
Description copied from interface: JetSignatureVisitor
Starts the visit of a signature corresponding to a class or interface type.

Specified by:
visitClassType in interface JetSignatureVisitor
Parameters:
name - the internal name of the class or interface.

visitInnerClassType

public void visitInnerClassType(String name,
                                boolean nullable,
                                boolean forceReal)
Description copied from interface: JetSignatureVisitor
Visits an inner class.

Specified by:
visitInnerClassType in interface JetSignatureVisitor
Parameters:
name - the full name of the inner class.

visitTypeArgument

public void visitTypeArgument()
Description copied from interface: JetSignatureVisitor
Visits an unbounded type argument of the last visited class or inner class type.

Specified by:
visitTypeArgument in interface JetSignatureVisitor

visitTypeArgument

public JetSignatureWriter visitTypeArgument(JetSignatureVariance variance)
Description copied from interface: JetSignatureVisitor
Visits a type argument of the last visited class or inner class type.

Specified by:
visitTypeArgument in interface JetSignatureVisitor
Parameters:
variance - '+', '-' or '='.
Returns:
a non null visitor to visit the signature of the type argument.

visitEnd

public void visitEnd()
Description copied from interface: JetSignatureVisitor
Ends the visit of a signature corresponding to a class or interface type.

Specified by:
visitEnd in interface JetSignatureVisitor

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2013. All Rights Reserved.