ReferenceTypeSpec

public final class ReferenceTypeSpec extends TypeSpec

A “reference” type to some other type.

Fields

destinationType

public TypeSpec destinationType

The reference destination type.

subAccess

public TapList<String> subAccess

Access info on this destination e.g. “const” etc.

Constructors

ReferenceTypeSpec

public ReferenceTypeSpec(TypeSpec destinationType)

Create a new ref type to destination type, possibly with a C++ array dimension.

Methods

baseTypeName

protected String baseTypeName()

baseTypeSpec

public WrapperTypeSpec baseTypeSpec(boolean stopOnPointer)

copyStopOnComposite

public TypeSpec copyStopOnComposite(Unit publishedUnit)

dump

public void dump()

generateTree

public Tree generateTree(SymbolTable symbolTable, TapList<SymbolDecl> dependsOn, TapList<SymbolDecl> shortNames, boolean useShortNames, TapList<TypeSpec> dejaVu)

nestedLevelType

public TypeSpec nestedLevelType()

setWrappedType

public void setWrappedType(TypeSpec type)

showType

public String showType()

testComparesWith

protected boolean testComparesWith(TypeSpec other, int comparison, TypeSpec toThis, TypeSpec toOther, TapList<TapPair<TypeSpec, TypeSpec>> dejaVu)

toString

public String toString()

updateAfterImports

public void updateAfterImports(SymbolTable symbolTable, TapList<TypeSpec> dejaVu)

wrappedType

public TypeSpec wrappedType()