연구 설문조사: Blockly 사용 경험을 알려주세요
설문조사 시작
차단 > CodeGenerator > scrubNakedValue
CodeGenerator.scrubNakedValue() 메서드
네이키드 값은 아무것도 연결되지 않은 출력이 있는 최상위 블록입니다. 서브클래스가 이를 재정의할 수 있습니다. 예를 들어 사용자의 언어가 네이키드 값을 허용하지 않는 경우
서명:
scrubNakedValue(line: string): string;
매개변수
매개변수 |
유형 |
설명 |
선 |
문자열 |
생성된 코드 라인입니다. |
반환:
문자열
법적 코드줄입니다.
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2024-08-21(UTC)
[null,null,["최종 업데이트: 2024-08-21(UTC)"],[[["The `scrubNakedValue` method handles code lines with unconnected output blocks (naked values)."],["It transforms these lines into valid code, and subclasses can modify its behavior for languages with restrictions on naked values."],["This method receives a line of generated code as input and returns a modified, legal line of code."]]],[]]