function( instVar, prefix ) {
		var code = "[", getCode = "", prop="", defaultGet = "$inst.$prop";
		if (this.defaultGet) defaultGet = defaultGet;
		for (var i=0, l=this.properties.length; i<l; ++i) {
			prop = this.properties[i];
			if (i > 0) code += ",";
			if (this.propCustomGet[prop]) {
				getCode = this.propCustomGet[prop]
					.replace(/\$inst/g, instVar)
					.replace(/\$prop/g, prop);
			} else {
				getCode = defaultGet
					.replace(/\$inst/g, instVar)
					.replace(/\$prop/g, prop);
			}

			// Check if we should embed this property
			if (this.embed.indexOf(prop) === -1) {
				code += "\n" + prefix + getCode;
			} else {
				code += "\n" + prefix + "new BinaryEncoder.FileResource( " + getCode + " )";
			}

		}
		code += "]";
		return code;
	}
function( instVar, prefix ) {
		var code = "[", getCode = "", prop="", defaultGet = "$inst.$prop";
		if (this.defaultGet) defaultGet = defaultGet;
		for (var i=0, l=this.properties.length; i<l; ++i) {
			prop = this.properties[i];
			if (i > 0) code += ",";
			if (this.propCustomGet[prop]) {
				getCode = this.propCustomGet[prop]
					.replace(/\$inst/g, instVar)
					.replace(/\$prop/g, prop);
			} else {
				getCode = defaultGet
					.replace(/\$inst/g, instVar)
					.replace(/\$prop/g, prop);
			}

			// Check if we should embed this property
			if (this.embed.indexOf(prop) === -1) {
				code += "\n" + prefix + getCode;
			} else {
				code += "\n" + prefix + "new BinaryEncoder.FileResource( " + getCode + " )";
			}

		}
		code += "]";
		return code;
	}
function ( instVar , prefix ) { var code = "[" , getCode = "" , prop = "" , defaultGet = "$inst.$prop" ; if ( this . defaultGet ) defaultGet = defaultGet ; for ( var i = 0 , l = this . properties . length ; i < l ; ++ i ) { prop = this . properties [ i ] ; if ( i > 0 ) code += "," ; if ( this . propCustomGet [ prop ] ) { getCode = this . propCustomGet [ prop ] . replace ( / \$inst / g , instVar ) . replace ( / \$prop / g , prop ) ; } else { getCode = defaultGet . replace ( / \$inst / g , instVar ) . replace ( / \$prop / g , prop ) ; } // Check if we should embed this property if ( this . embed . indexOf ( prop ) === - 1 ) { code += "\n" + prefix + getCode ; } else { code += "\n" + prefix + "new BinaryEncoder.FileResource( " + getCode + " )" ; } } code += "]" ; return code ; }
Generate the property getter
Generate the property getter