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

100% Statements 47/47
100% Branches 17/17
100% Functions 7/7
100% Lines 47/47

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 42 43 44 45 46 471x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1189999x 1189999x 1x 1x 155x 155x 1x 1x 1x 461x 461x 1x 1x 69x 69x 1x 1x 75x 75x 1x 1x 70x 70x 1x 1x 76x 76x 1x 1x 1x 1x 1x 1x 1x
export type AbstractTypeData = {
  qualifiedName?: string,
  conversionExit?: string,
  derivedFromConstant?: boolean,
  ddicName?: string,
  RTTIName?: string,
  description?: 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 getDescription(): string | undefined {
    return this.data?.description;
  }
 
  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;
}