All files / src/abap/types/basic _abstract_type.ts

100% Statements 42/42
72.72% Branches 8/11
100% Functions 6/6
100% Lines 42/42

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 421x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 2349477x 2349477x 1x 1x 149x 149x 1x 1x 1x 271x 271x 1x 1x 56x 56x 1x 1x 58x 58x 1x 1x 62x 62x 1x 1x 1x 1x 1x 1x 1x
export type AbstractTypeData = {
  qualifiedName?: string,
  conversionExit?: string,
  derivedFromConstant?: boolean,
  ddicName?: string,
  RTTIName?: string,
};
 
export abstract class AbstractType {
  protected readonly data: AbstractTypeData | undefined;
 
  public constructor(input?: AbstractTypeData) {
    this.data = input;
  }
 
  public getAbstractTypeData() {
    return this.data;
  }
 
  /** fully qualified symbolic name of the type */
  public getQualifiedName(): string | undefined {
    return this.data?.qualifiedName;
  }
 
  public getRTTIName(): string | undefined {
    return this.data?.RTTIName;
  }
 
  public getConversionExit(): string | undefined {
    return this.data?.conversionExit;
  }
 
  public getDDICName(): string | undefined {
    return this.data?.ddicName;
  }
 
  public abstract toText(level: number): string;
  public abstract toABAP(): string;
  public abstract toCDS(): string;
  public abstract isGeneric(): boolean;
  public abstract containsVoid(): boolean;
}