aicas logo Jamaica 3.4 release 8

sun.reflect.generics.visitor
Class Reifier

java.lang.Object
  extended by sun.reflect.generics.visitor.Reifier
All Implemented Interfaces:
TypeTreeVisitor<Type>

public class Reifier
extends Object
implements TypeTreeVisitor<Type>

Visitor that converts AST to reified types.


Method Summary
 Type getResult()
          Accessor for the result of the last visit by this visitor,
static Reifier make(GenericsFactory f)
          Factory method.
 void visitArrayTypeSignature(ArrayTypeSignature a)
           
 void visitBooleanSignature(BooleanSignature b)
           
 void visitBottomSignature(BottomSignature b)
           
 void visitByteSignature(ByteSignature b)
           
 void visitCharSignature(CharSignature c)
           
 void visitClassTypeSignature(ClassTypeSignature ct)
           
 void visitDoubleSignature(DoubleSignature d)
           
 void visitFloatSignature(FloatSignature f)
           
 void visitFormalTypeParameter(FormalTypeParameter ftp)
           
 void visitIntSignature(IntSignature i)
           
 void visitLongSignature(LongSignature l)
           
 void visitShortSignature(ShortSignature s)
           
 void visitSimpleClassTypeSignature(SimpleClassTypeSignature sct)
           
 void visitTypeVariableSignature(TypeVariableSignature tv)
           
 void visitVoidDescriptor(VoidDescriptor v)
           
 void visitWildcard(Wildcard w)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

make

public static Reifier make(GenericsFactory f)
Factory method. The resulting visitor will convert an AST representing generic signatures into corresponding reflective objects, using the provided factory, f.

Parameters:
f - - a factory that can be used to manufacture reflective objects returned by this visitor
Returns:
A visitor that can be used to reify ASTs representing generic type information into reflective objects

getResult

public Type getResult()
Accessor for the result of the last visit by this visitor,

Specified by:
getResult in interface TypeTreeVisitor<Type>
Returns:
The type computed by this visitor based on its last visit

visitFormalTypeParameter

public void visitFormalTypeParameter(FormalTypeParameter ftp)
Specified by:
visitFormalTypeParameter in interface TypeTreeVisitor<Type>

visitClassTypeSignature

public void visitClassTypeSignature(ClassTypeSignature ct)
Specified by:
visitClassTypeSignature in interface TypeTreeVisitor<Type>

visitArrayTypeSignature

public void visitArrayTypeSignature(ArrayTypeSignature a)
Specified by:
visitArrayTypeSignature in interface TypeTreeVisitor<Type>

visitTypeVariableSignature

public void visitTypeVariableSignature(TypeVariableSignature tv)
Specified by:
visitTypeVariableSignature in interface TypeTreeVisitor<Type>

visitWildcard

public void visitWildcard(Wildcard w)
Specified by:
visitWildcard in interface TypeTreeVisitor<Type>

visitSimpleClassTypeSignature

public void visitSimpleClassTypeSignature(SimpleClassTypeSignature sct)
Specified by:
visitSimpleClassTypeSignature in interface TypeTreeVisitor<Type>

visitBottomSignature

public void visitBottomSignature(BottomSignature b)
Specified by:
visitBottomSignature in interface TypeTreeVisitor<Type>

visitByteSignature

public void visitByteSignature(ByteSignature b)
Specified by:
visitByteSignature in interface TypeTreeVisitor<Type>

visitBooleanSignature

public void visitBooleanSignature(BooleanSignature b)
Specified by:
visitBooleanSignature in interface TypeTreeVisitor<Type>

visitShortSignature

public void visitShortSignature(ShortSignature s)
Specified by:
visitShortSignature in interface TypeTreeVisitor<Type>

visitCharSignature

public void visitCharSignature(CharSignature c)
Specified by:
visitCharSignature in interface TypeTreeVisitor<Type>

visitIntSignature

public void visitIntSignature(IntSignature i)
Specified by:
visitIntSignature in interface TypeTreeVisitor<Type>

visitLongSignature

public void visitLongSignature(LongSignature l)
Specified by:
visitLongSignature in interface TypeTreeVisitor<Type>

visitFloatSignature

public void visitFloatSignature(FloatSignature f)
Specified by:
visitFloatSignature in interface TypeTreeVisitor<Type>

visitDoubleSignature

public void visitDoubleSignature(DoubleSignature d)
Specified by:
visitDoubleSignature in interface TypeTreeVisitor<Type>

visitVoidDescriptor

public void visitVoidDescriptor(VoidDescriptor v)
Specified by:
visitVoidDescriptor in interface TypeTreeVisitor<Type>

aicas logo Jamaica 3.4 release 8

aicas GmbH, Karlsruhe - Germany    www.aicas.com
Copyright 2001-2009 aicas GmbH. All Rights Reserved.