modules/ballerina-core/src/main/java/org/ballerinalang/model/builder/BLangModelBuilder.java
public void createLiteralTypeAttributeValue(NodeLocation location) {
        Expression expr = exprStack.pop();
        if (!(expr instanceof BasicLiteral)) {
            String errMsg = BLangExceptionHelper.constructSemanticError(expr.getNodeLocation(),
                    SemanticErrors.UNSUPPORTED_ANNOTATION_ATTRIBUTE_VALUE);
            errorMsgs.add(errMsg);
        }
        BasicLiteral basicLiteral = (BasicLiteral) expr;
        BValue value = basicLiteral.getBValue();
        annotationAttributeValues.push(new AnnotationAttributeValue(value, basicLiteral.getTypeName(), location));
    }
/**
     * Create a literal type attribute value.
     * 
     * @param location Location of the value in the source file
     */
Create a literal type attribute value.

@param location Location of the value in the source file
Create a literal type attribute value . @param location Location of the value in the source file
public void createLiteralTypeAttributeValue(NodeLocation location) {
        Expression expr = exprStack.pop();
        if (!(expr instanceof BasicLiteral)) {
            String errMsg = BLangExceptionHelper.constructSemanticError(expr.getNodeLocation(),
                    SemanticErrors.UNSUPPORTED_ANNOTATION_ATTRIBUTE_VALUE);
            errorMsgs.add(errMsg);
        }
        BasicLiteral basicLiteral = (BasicLiteral) expr;
        BValue value = basicLiteral.getBValue();
        annotationAttributeValues.push(new AnnotationAttributeValue(value, basicLiteral.getTypeName(), location));
    }
public void createLiteralTypeAttributeValue ( NodeLocation location ) { Expression expr = exprStack . pop ( ) ; if ( ! ( expr instanceof BasicLiteral ) ) { String errMsg = BLangExceptionHelper . constructSemanticError ( expr . getNodeLocation ( ) , SemanticErrors . UNSUPPORTED_ANNOTATION_ATTRIBUTE_VALUE ) ; errorMsgs . add ( errMsg ) ; } BasicLiteral basicLiteral = ( BasicLiteral ) expr ; BValue value = basicLiteral . getBValue ( ) ; annotationAttributeValues . push ( new AnnotationAttributeValue ( value , basicLiteral . getTypeName ( ) , location ) ) ; }
Create a literal type attribute value.
Create a literal type attribute value .