Exemplo n.º 1
0
  public ASTUnannReferenceType deepClone(ASTUnannReferenceType result) {

    /* generated by template ast.ErrorIfNull*/
    Log.errorIfNull(result, "0xA7006_806 Parameter 'result' must not be null.");

    /* generated by template ast.additionalmethods.DeepCloneWithParameters*/

    super.deepClone(result);

    result.unannClassOrInterfaceType =
        this.unannClassOrInterfaceType.isPresent()
            ? Optional.ofNullable(
                (java8._ast.ASTUnannClassOrInterfaceType)
                    this.unannClassOrInterfaceType.get().deepClone())
            : Optional.empty();
    result.unannTypeVariable =
        this.unannTypeVariable.isPresent()
            ? Optional.ofNullable(
                (java8._ast.ASTUnannTypeVariable) this.unannTypeVariable.get().deepClone())
            : Optional.empty();
    result.unannArrayType =
        this.unannArrayType.isPresent()
            ? Optional.ofNullable(
                (java8._ast.ASTUnannArrayType) this.unannArrayType.get().deepClone())
            : Optional.empty();
    result.symbol =
        this.symbol.isPresent()
            ? Optional.ofNullable((Symbol) this.symbol.get())
            : Optional.empty();
    result.enclosingScope =
        this.enclosingScope.isPresent()
            ? Optional.ofNullable((Scope) this.enclosingScope.get())
            : Optional.empty();
    return result;
  }
Exemplo n.º 2
0
  public ASTTemplateargument deepClone(ASTTemplateargument result) {

    /* generated by template ast.ErrorIfNull*/
    Log.errorIfNull(result, "0xA7006_977 Parameter 'result' must not be null.");

    /* generated by template ast.additionalmethods.DeepCloneWithParameters*/

    super.deepClone(result);

    result.constantexpression =
        this.constantexpression.isPresent()
            ? Optional.ofNullable(
                (cpp14._ast.ASTConstantexpression) this.constantexpression.get().deepClone())
            : Optional.empty();
    result.typeidP =
        this.typeidP.isPresent()
            ? Optional.ofNullable((cpp14._ast.ASTTypeidP) this.typeidP.get().deepClone())
            : Optional.empty();
    result.idexpression =
        this.idexpression.isPresent()
            ? Optional.ofNullable((cpp14._ast.ASTIdexpression) this.idexpression.get().deepClone())
            : Optional.empty();
    result.symbol =
        this.symbol.isPresent()
            ? Optional.ofNullable((Symbol) this.symbol.get())
            : Optional.empty();
    result.enclosingScope =
        this.enclosingScope.isPresent()
            ? Optional.ofNullable((Scope) this.enclosingScope.get())
            : Optional.empty();
    return result;
  }
  public ASTExplicitConstructorInvocation deepClone(ASTExplicitConstructorInvocation result) {

    /* generated by template ast.ErrorIfNull*/
    Log.errorIfNull(result, "0xA7006_650 Parameter 'result' must not be null.");

    /* generated by template ast.additionalmethods.DeepCloneWithParameters*/

    super.deepClone(result);

    result.tHIS =
        this.tHIS.isPresent() ? Optional.ofNullable((String) this.tHIS.get()) : Optional.empty();
    result.expressionName =
        this.expressionName.isPresent()
            ? Optional.ofNullable(
                (java8._ast.ASTExpressionName) this.expressionName.get().deepClone())
            : Optional.empty();
    result.primary =
        this.primary.isPresent()
            ? Optional.ofNullable((java8._ast.ASTPrimary) this.primary.get().deepClone())
            : Optional.empty();
    result.dOT =
        this.dOT.isPresent() ? Optional.ofNullable((String) this.dOT.get()) : Optional.empty();
    result.typeArguments =
        this.typeArguments.isPresent()
            ? Optional.ofNullable(
                (java8._ast.ASTTypeArguments) this.typeArguments.get().deepClone())
            : Optional.empty();
    result.sUPER =
        this.sUPER.isPresent() ? Optional.ofNullable((String) this.sUPER.get()) : Optional.empty();
    result.lPAREN =
        this.lPAREN.isPresent()
            ? Optional.ofNullable((String) this.lPAREN.get())
            : Optional.empty();
    result.argumentListX =
        this.argumentListX.isPresent()
            ? Optional.ofNullable(
                (java8._ast.ASTArgumentListX) this.argumentListX.get().deepClone())
            : Optional.empty();
    result.rPAREN =
        this.rPAREN.isPresent()
            ? Optional.ofNullable((String) this.rPAREN.get())
            : Optional.empty();
    result.sEMI =
        this.sEMI.isPresent() ? Optional.ofNullable((String) this.sEMI.get()) : Optional.empty();
    result.symbol =
        this.symbol.isPresent()
            ? Optional.ofNullable((Symbol) this.symbol.get())
            : Optional.empty();
    result.enclosingScope =
        this.enclosingScope.isPresent()
            ? Optional.ofNullable((Scope) this.enclosingScope.get())
            : Optional.empty();
    return result;
  }
Exemplo n.º 4
0
  public ASTNoptrnewdeclarator deepClone(ASTNoptrnewdeclarator result) {

    /* generated by template ast.ErrorIfNull*/
    Log.errorIfNull(result, "0xA7006_236 Parameter 'result' must not be null.");

    /* generated by template ast.additionalmethods.DeepCloneWithParameters*/

    super.deepClone(result);

    result.expression =
        this.expression.isPresent()
            ? Optional.ofNullable((cpp14._ast.ASTExpression) this.expression.get().deepClone())
            : Optional.empty();
    result.noptrnewdeclarator =
        this.noptrnewdeclarator.isPresent()
            ? Optional.ofNullable(
                (cpp14._ast.ASTNoptrnewdeclarator) this.noptrnewdeclarator.get().deepClone())
            : Optional.empty();
    result.leftBracketL =
        this.leftBracketL.isPresent()
            ? Optional.ofNullable((String) this.leftBracketL.get())
            : Optional.empty();
    result.constantexpression =
        this.constantexpression.isPresent()
            ? Optional.ofNullable(
                (cpp14._ast.ASTConstantexpression) this.constantexpression.get().deepClone())
            : Optional.empty();
    result.rightBracketL =
        this.rightBracketL.isPresent()
            ? Optional.ofNullable((String) this.rightBracketL.get())
            : Optional.empty();
    result.attributespecifierseq =
        this.attributespecifierseq.isPresent()
            ? Optional.ofNullable(
                (cpp14._ast.ASTAttributespecifierseq) this.attributespecifierseq.get().deepClone())
            : Optional.empty();
    result.symbol =
        this.symbol.isPresent()
            ? Optional.ofNullable((Symbol) this.symbol.get())
            : Optional.empty();
    result.enclosingScope =
        this.enclosingScope.isPresent()
            ? Optional.ofNullable((Scope) this.enclosingScope.get())
            : Optional.empty();
    return result;
  }
  public ASTPrimaryNoNewArray_lf_primary_lfno_arrayAccess_lf_primary deepClone(
      ASTPrimaryNoNewArray_lf_primary_lfno_arrayAccess_lf_primary result) {

    /* generated by template ast.ErrorIfNull*/
    Log.errorIfNull(result, "0xA7006_110 Parameter 'result' must not be null.");

    /* generated by template ast.additionalmethods.DeepCloneWithParameters*/

    super.deepClone(result);

    result.classInstanceCreationExpression_lf_primary =
        this.classInstanceCreationExpression_lf_primary.isPresent()
            ? Optional.ofNullable(
                (java8._ast.ASTClassInstanceCreationExpression_lf_primary)
                    this.classInstanceCreationExpression_lf_primary.get().deepClone())
            : Optional.empty();
    result.fieldAccess_lf_primary =
        this.fieldAccess_lf_primary.isPresent()
            ? Optional.ofNullable(
                (java8._ast.ASTFieldAccess_lf_primary)
                    this.fieldAccess_lf_primary.get().deepClone())
            : Optional.empty();
    result.methodInvocation_lf_primary =
        this.methodInvocation_lf_primary.isPresent()
            ? Optional.ofNullable(
                (java8._ast.ASTMethodInvocation_lf_primary)
                    this.methodInvocation_lf_primary.get().deepClone())
            : Optional.empty();
    result.methodReference_lf_primary =
        this.methodReference_lf_primary.isPresent()
            ? Optional.ofNullable(
                (java8._ast.ASTMethodReference_lf_primary)
                    this.methodReference_lf_primary.get().deepClone())
            : Optional.empty();
    result.symbol =
        this.symbol.isPresent()
            ? Optional.ofNullable((Symbol) this.symbol.get())
            : Optional.empty();
    result.enclosingScope =
        this.enclosingScope.isPresent()
            ? Optional.ofNullable((Scope) this.enclosingScope.get())
            : Optional.empty();
    return result;
  }
Exemplo n.º 6
0
  public ASTUsingdeclaration deepClone(ASTUsingdeclaration result) {

    /* generated by template ast.ErrorIfNull*/
    Log.errorIfNull(result, "0xA7006_130 Parameter 'result' must not be null.");

    /* generated by template ast.additionalmethods.DeepCloneWithParameters*/

    super.deepClone(result);

    result.typenameL =
        this.typenameL.isPresent()
            ? Optional.ofNullable((String) this.typenameL.get())
            : Optional.empty();
    result.nestednamespecifier =
        this.nestednamespecifier.isPresent()
            ? Optional.ofNullable(
                (cpp14._ast.ASTNestednamespecifier) this.nestednamespecifier.get().deepClone())
            : Optional.empty();
    result.usingL =
        this.usingL.isPresent()
            ? Optional.ofNullable((String) this.usingL.get())
            : Optional.empty();
    result.doublecolonL =
        this.doublecolonL.isPresent()
            ? Optional.ofNullable((String) this.doublecolonL.get())
            : Optional.empty();
    result.unqualifiedid =
        this.unqualifiedid.isPresent()
            ? Optional.ofNullable(
                (cpp14._ast.ASTUnqualifiedid) this.unqualifiedid.get().deepClone())
            : Optional.empty();
    result.semiL =
        this.semiL.isPresent() ? Optional.ofNullable((String) this.semiL.get()) : Optional.empty();
    result.symbol =
        this.symbol.isPresent()
            ? Optional.ofNullable((Symbol) this.symbol.get())
            : Optional.empty();
    result.enclosingScope =
        this.enclosingScope.isPresent()
            ? Optional.ofNullable((Scope) this.enclosingScope.get())
            : Optional.empty();
    return result;
  }