TypeDecl

public final class TypeDecl extends SymbolDecl

A symbol declaration object specialized for types.

Fields

typeSpec

public WrapperTypeSpec typeSpec

Constructors

TypeDecl

public TypeDecl(Tree identTree, WrapperTypeSpec typeSpec)

TypeDecl

public TypeDecl(String name, WrapperTypeSpec typeSpec)

TypeDecl

public TypeDecl(Tree identTree, WrapperTypeSpec typeSpec, Unit inUnit)

Methods

activeTypeDecl

public TypeDecl activeTypeDecl(SymbolTable diffSymbolTable, WrapperTypeSpec activeTypeSpec, String fSuffix)

collectUsedTrees

public void collectUsedTrees(TapList<Tree> toUsedTrees, TapList<TypeSpec> toDejaVu)

Collects into toUsedTrees all expressions that are needed for the declaration of this SymbolDecl.

Parameters
  • toUsedTrees – TapList of used Tree

  • toDejaVu – TapList of TypeSpec

findTypeDecl

public static TypeDecl findTypeDecl(TapList<SymbolDecl> dependsOn)

getTypeDeclName

public String getTypeDeclName()

setTypeDeclName

public void setTypeDeclName(String name, Unit inUnit)

setTypeDeclName

public void setTypeDeclName(String name)

toString

public String toString()

type

public WrapperTypeSpec type()